Yeah, I just set it from ‘error’ to ‘warning’ in the project settings and now the behavior seems to be the same as IntelliJ 13.0. I usually just build from the command-line anyway, but using the IntelliJ IDE for development is nice.
Rob On 22 Apr 2014, at 02:21, Alexander Klimetschek <[email protected]> wrote: > I think this is the "Osmorc" plugin providing the OSGi facet support. I saw > those warnings as well (with Intellij 13.1) and have it disabled. (Same for > Spring OSGi and dmServer Support plugins that pop up when I search for "osgi" > in Plugins). Then I don't have any OSGi facets nor inspections. This is fine > for me, I haven't seen any benefit of those OSGi integrations with IntelliJ > so far, too many false positives. (Happy to be convinced otherwise :)) > > Cheers, > Alex > > On 19.04.2014, at 02:16, Robert A. Decker <[email protected]> wrote: > >> Hello, >> >> After I think about a year I’m about to start up another sling project. I’ve >> used IntelliJ in the past for sling development, but now with IntelliJ 13.1 >> it seems to be more picky on dependencies. >> >> For example, in my parent pom I have: >> <dependency> >> <groupId>org.apache.felix</groupId> >> <artifactId>org.apache.felix.scr</artifactId> >> <version>1.8.2</version> >> <scope>provided</scope> >> </dependency> >> And in my bundle pom: >> <dependency> >> <groupId>org.apache.felix</groupId> >> <artifactId>org.apache.felix.scr.annotations</artifactId> >> </dependency> >> >> In the IntelliJ UI when looking at the pom.xml of the bundle the felix >> dependency is highlighted in yellow with the message “Dependency is not OSGI >> ready”, which is what IntelliJ has always done in the past. >> >> However, when I try to use these annotations (Component, Service, Activate, >> etc) I get compile errors in intelliJ: >> “The package is not exported by the bundle dependencies” >> >> >> In IntelliJ I can change this to a warning: >> http://stackoverflow.com/questions/21465166/how-to-configure-osgi-in-intellij-when-its-handled-by-maven >> >> >> Is this what you’ve done? Or is there another way around this? >> >> Rob > >
