I'm having a problem using Maven to build an EAR file for an application
that makes calls to the OBR API. What seems to be happening is that as
soon as I add the OBR API as a maven dependency...

 

            <dependency>

                  <groupId>org.apache.felix</groupId>

                  <artifactId>org.osgi.service.obr</artifactId>

                  <version>1.0.2</version>

            </dependency>

 

...maven automatically adds "org.osgi.core-1.0.1.jar" to the EAR file.
My application then falls over when it tries to call Bundle.getVersion()
as that method isn't present in the 1.0 core API.

 

Why is Maven including that version of the core API? Is there some way I
can tell it not to?

 

Regards,

 

Nick

 

Reply via email to