Hi Sepbot,
Consolidating all the approaches to deploy a third party jar file for the application as below-
First approach:
1) Include the dependency for third party library in maven. This will make the build successful.
<dependencies>
<dependency>
<groupId>org.erlang.otp</groupId>
<artifactId>jinterface</artifactId>
<version>1.5.3</version>
</dependency>
</dependencies>
2) Export the thirdparty package you want to use.
<build>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<instructions>
<Export-Package>
com.ericsson.otp.erlang.*
</Export-Package>
</instructions>
</configuration>
</plugin>
</plugins>
</build>
Second approach:
1) Convert the third party jar file into osgi bundle
2) Add the bundle to application zip file by editing the pom.xml in xx-app directory
3) Edit plan file in xx-app directory to add the new bundle
Third approach:
1) Create a new repository under opt/sdn/virgo/repository
2) Edit org.eclipse.virgo.repository.properties to specify new repo
3) Convert third party jar files into osgi bundles and deploy them into the new repo through virgo admin console
Please let us know if your problem is solved.
Please feel free to reply incase you have more questions around the same topic or open a new thread if new topic.
If you feel your question has been answered, please do let us know by marking this response as an accepted solution.
Thanks
HP SDN Team