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.

Reply via email to