Spring model inspection of component-scan base-package fails

Hi,

I have set up my project using annotations and springs component-scan.
This works perfectly fine, everything is scanned and works as a charm.

However IntelliJ is always bugging me with this warning "Spring model inspection" on my component-scan base-package.
Basicly my base-package is red.

So for some reason intellij is unable to resolve my base package?
But this must be an error since my webapp works just fine?

The warning goes away if i remove one of my dependecies from my pom.xml. So it seems as this dependecy somehow breaks intellij's spring-model inspection.

Any ideas on how to fix or correct this? Removeing the dependency is not an option.

Thanks for your help!

Using idea 11.1.3 btw.



Attachment(s):
error.png
5 comments
Comment actions Permalink

Hello Erik,

what scope does the dependency you remove to make it work have? Does changing the scope e.g. to runtime or provided help? Does it contain entries for the package(s) you're referring to in your <component-scan>?

Yann

0
Comment actions Permalink

Hi and thanks for you reply!  The scope of the dependecy is compile. I tried to change it to all the other scopes but no luck with that. The dependency does not contain any reference to my base package and uses å separate base itself. The only similarity is that  They both start with "no" in the group id.  Base package=no.myapp.test Dependency groupid=no.otherapp.testing  What could it be....

0
Comment actions Permalink

Could you please file a ticket a http://youtrack.jetbrains.com/issues/IDEA and attach your zipped project (you can set visibility for attachments to "developers only" if it contains confidential information).

Thanks,
Yann

0
Comment actions Permalink

Sure i'll get back to you on monday and try to do as you request. Thanks!

0
Comment actions Permalink

Posted my issue yesterday:
http://youtrack.jetbrains.com/issue/IDEA-93875

Seems like there is some sort of error when foldernames has dots in them.
Look at the issue for more info.

Thanks!

0

Please sign in to leave a comment.