Hi,
Sorry for posting again and again about the same issue, but I just have problems getting it done.

I fixed a couple of things in my pom file now using the patch of the bundle plugin (felix 308). I did set up a very simple maven project (basically a simple artifact), imported log4j as dependency, set the packaging to "bundle" and set the dependencies the following way: I use <Embed-Dependency>*<Embed-Dependency> and <Embed-Transitive>true</Embed-Transitive>

still, the bundle cant be started, because of the following missing dependencies:

 Missing imported package com.sun.jdmk.comm_0.0.0.
 Missing imported package javax.jms_0.0.0.
 Missing imported package javax.mail_0.0.0.
 Missing imported package javax.mail.internet_0.0.0.

my (very simple) POM file can be found below:

<?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>TestLog4j</groupId>
 <artifactId>TestLog4j</artifactId>
 <packaging>bundle</packaging>
 <name>TestLog4j</name>
 <version>1.0-SNAPSHOT</version>
 <url>http://maven.apache.org</url>
 <build>
   <plugins>
     <plugin>
       <groupId>org.apache.felix</groupId>
       <artifactId>maven-bundle-plugin</artifactId>
       <version>3.1.0-SNAPSHOT</version>
       <extensions>true</extensions>
       <configuration>
<instructions> <Private-Package>*</Private-Package> <Embed-Transitive>true</Embed-Transitive> <Embed-Dependency> *
           </Embed-Dependency>
         </instructions>
       </configuration>
     </plugin>
</plugins> </build>
 <dependencies>
   <dependency>
     <groupId>junit</groupId>
     <artifactId>junit</artifactId>
     <version>3.8.1</version>
     <scope>test</scope>
   </dependency>
   <dependency>
     <groupId>log4j</groupId>
     <artifactId>log4j</artifactId>
     <version>1.2.14</version>
   </dependency>
 </dependencies>
</project>

is there any problem in the pom?

greetings, arash



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to