1

Since a very long time I'm using STS (eclipse) to code on jenkins and jenkins-plugins.

But since I upgraded to the latest version (STS 3.8.1) I'm not able to do so anymore... The reason is an error I get when ever I import a jenkins-plugin project (maven based, e.g. https://github.com/jenkinsci/config-file-provider-plugin/):

Only a type can be imported. com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl resolves to a package

While the message is true about the fact that there is a package called the same as a class, this is the case for many many classes in the source of Jenkins. This is actually a convention, all resources belonging to a specific class have to be places in a package with the same name as the class.

Is there anything I can do to ignore this error?

5
  • Does the class exist and is it public? Maybe problem with different jars- then a classpath change, dependency reordering might help. Commented Aug 9, 2016 at 18:03
  • Related: stackoverflow.com/questions/9584086/… Commented Aug 9, 2016 at 18:09
  • It looks like your compiler is buggy. I can't speak to whether there is a way to intimidate it into not being buggy, but if you're community-minded then you might consider filing a bug report. Meanwhile, consider downgrading to a version that does not exhibit this bug. Commented Aug 9, 2016 at 18:20
  • @JoopEggen the classes do exist and they are public Commented Aug 9, 2016 at 18:32
  • @JohnBollinger created an issue for STS issuetracker.springsource.com/browse/STS-4392 Commented Aug 10, 2016 at 5:31

1 Answer 1

4

its a bug in eclipse and hopefully fixed soon: https://bugs.eclipse.org/bugs/show_bug.cgi?id=495598

Sign up to request clarification or add additional context in comments.

1 Comment

It has been fixed in Eclipse 4.6.2 (Neon.2).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.