It's my understanding from previous discussion on this list, that I can use a little bit of <Embedded-Dependency> magic to create a manifest for a WAR bundle that includes a Bundle-ClassPath: header for the various dependencies. But, so far, I can't get Bundle-ClassPath into the generated MANIFEST.MF.

Here's what the pertinent parts of my pom.xml file look like:

     <plugin>
       <groupId>org.apache.felix</groupId>
       <artifactId>maven-bundle-plugin</artifactId>
       <version>1.4.1</version>
       <extensions>true</extensions>
       <configuration>
         <supportedProjectTypes>
           <param>jar</param>
           <param>bundle</param>
           <param>war</param>
         </supportedProjectTypes>
         <instructions>
<Embed-Dependency>*;scope=compile|runtime;inline=false</Embed-Dependency>
           <Embed-Directory>WEB-INF/lib</Embed-Directory>
           <Embed-Transitive>true</Embed-Transitive>
           <Private-Package>com.semantra.*</Private-Package>
         </instructions>
       </configuration>
       <executions>
         <execution>
           <id>bundle-manifest</id>
           <phase>process-classes</phase>
<goals> <goal>manifest</goal> </goals> </execution> </executions> </plugin>

When I do the build, I get a MANIFEST.MF in target/classes/META-INF, but it doesn't have a Bundle-ClassPath header.

I've also tried to add the following instruction:

<Bundle-ClassPath>.,WEB-INF/classes,{maven-dependencies}</Bundle-ClassPath>


This results in a Bundle-ClassPath header that contains exactly what is specified above...that is, {maven-dependencies} is not expanded.

What am I doing/understanding incorrectly?


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

Reply via email to