the module dependencies is useless with maven-bundle-plugin in OSGI
I created a project with maven, with the module named 'example2' and module named 'example2b', and the example2b need example2 to compile at compile time.
i didn't deploy the example2, so example2b can not use maven dependencies, and i use intellij dependencies, F4 -> add -> module dependency.
and CTRL + SHIFT + F9, nothing happened, there were still compile error, and the example2 was also still in the example2b's dependencise
the example2b source code is http://felix.apache.org/site/apache-felix-tutorial-example-2b.html
the example2 source code is http://felix.apache.org/site/apache-felix-tutorial-example-2.html
i like to use intellij very much, it's easy and have much fun, so please to fix it or tell me something.
the maven pom.xml is like
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>felix-toturial</artifactId>
<groupId>com.imbeneo.felix</groupId>
<version>0.1.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>example2b</artifactId>
<packaging>bundle</packaging>
<dependencies>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.core</artifactId>
<version>4.2.0</version>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/java</directory>
</resource>
</resources>
<testResources>
<testResource>
<directory>src/main/test</directory>
</testResource>
</testResources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<compilerVersion>1.6</compilerVersion>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.3.4</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-Name>French dictionary</Bundle-Name>
<Bundle-Description>A bundle that registers a French dictionary service</Bundle-Description>
<Bundle-Vendor>Apache Felix</Bundle-Vendor>
<Bundle-Version>1.0.0</Bundle-Version>
<Bundle-Activator>tutorial.example2b.Activator</Bundle-Activator>
<Import-Package>org.osgi.framework, tutorial.example2.service</Import-Package>
</instructions>
<obrRepository>
file:///${pom.basedir}/../dev
</obrRepository>
<remoteOBR>repo-rel</remoteOBR>
<prefixUrl>file:///${pom.basedir}/../releases</prefixUrl>
<ignoreLock>true</ignoreLock>
</configuration>
</plugin>
</plugins>
</build>
<distributionManagement>
<repository>
<id>repo-rel</id>
<url>file:///${pom.basedir}/../releases</url>
</repository>
</distributionManagement>
</project>
Please sign in to leave a comment.
so, you do not understand what i wrote cause my poor english?