I am confused with your pom.xml:
1. Why do you have to execute manifest goal of maven-bundle-plugin when
your packaging type is bundle?
2. Even if you want to run manifest goal, why do you tie it to
process-resources phase? Should it not be run after source is compiled,
which means in process-classes phase?
3. What are the packages inside the original jar? Do they all start
with pattern "org.jasypt*" ? If yes, then try doing just this:
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>1.4.1</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Export-Package>
org.jasypt*
</Export-Package>
<Embed-Dependency>
*;scope=compile|runtime;inline=true
</Embed-Dependency>
</instructions>
</configuration>
Thanks,
Sahoo
Danny Lin wrote:
Hello,
I am trying to convert the Jasypt 1.4.1 library to an osgi compliant bundle;
however, I am getting errors when I try to export the packages in the
libraries. Am I doing something wrong in my pom.xml? I keep getting the
following error:
[WARNING] Warning building bundle foo.bar.org.jasypt:jasypt:bundle:1.4.1 :
Instructions for Export-Package that are never used: org\.jasypt.*
[WARNING] Warning building bundle foo.bar.org.jasypt:jasypt:bundle:1.4.1 :
Superfluous export-package instructions: [org.jasypt*]
[WARNING] Warning building bundle foo.bar.org.jasypt:jasypt:bundle:1.4.1 : Did
not find matching referal for *
<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>foo.bar.org.jasypt</groupId>
<artifactId>jasypt</artifactId>
<version>1.4.1</version>
<packaging>bundle</packaging>
<name>${pom.artifactId}</name>
<build>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>1.2.1</version>
<extensions>true</extensions>
<configuration>
<manifestLocation>
src/main/resources/META-INF
</manifestLocation>
<instructions>
<Export-Package>
org.jasypt*
</Export-Package>
<Embed-Dependency>
*;scope=compile|runtime;inline=false
</Embed-Dependency>
</instructions>
</configuration>
<executions>
<execution>
<id>manifest</id>
<goals>
<goal>manifest</goal>
</goals>
<phase>process-resources</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
<scm>
<connection>${p4.cerberus}/MAIN/${project.artifactId}</connection>
<developerConnection>${scm.connection}</developerConnection>
<tag>HEAD</tag>
</scm>
<dependencies>
<dependency>
<groupId>org.jasypt</groupId>
<artifactId>jasypt</artifactId>
<version>1.4.1</version>
</dependency>
</dependencies>
</project>
Danny Hao-Yei Lin
Software Engineer
Trion World Network, Inc.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]