Hi everybody, I have noticed that when using Embed-Dependency, if it occurs that one of the packages in the embedded library is either exported or declared as private, classes of this package are also put in the jar, so that they are present twice in the bundle classpath (once in the embedded jar, and once directly in the bundle).. Is that possible to avoid this, if so how ? As an illustration, I'm including a pom.xml that builds a bundle embedding log4j (this is derivated from the felix log4j bundle). Thanks in advance, Anne
Anne Gérodolle FT/RD/MAPS/AMS/SUME architecture de systèmes répartis distributed system architecture +33 4 76 76 41 78 [EMAIL PROTECTED]
<<orange_logo.gif>>
<<ampersand.gif>>
<?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/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>test</groupId> <artifactId>embedded-log4j</artifactId> <version>1.2.12</version> <packaging>bundle</packaging> <name>${pkgArtifactId} bundle</name> <description> This bundle simply embeds log4j-1.2.12.jar. </description> <pluginRepositories> <pluginRepository> <id>apache.snapshots</id> <name>Apache Snapshot Repository</name> <url>http://people.apache.org/repo/m2-snapshot-repository</url> <releases> <enabled>false</enabled> </releases> </pluginRepository> </pluginRepositories> <dependencies> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.12</version> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <version>1.1.0-SNAPSHOT</version> <extensions>true</extensions> <configuration> <instructions> <Bundle-SymbolicName> ${pom.artifactId} </Bundle-SymbolicName> <Export-Package>org.apache.log4j</Export-Package> <Private-Package> org.apache.log4j.lf5.* </Private-Package> <Import-Package> !javax.mail, !javax.management, !javax.jms, !javax.*, !com.sun.jdmk.comm, * </Import-Package> <Embed-Dependency>*</Embed-Dependency> <!-- <Bundle-Classpath>.,log4j-1.2.12.jar </Bundle-Classpath> --> </instructions> </configuration> </plugin> </plugins> </build> </project>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

