I do not have ready to use solution but some ideas that might help. The following seems to work for WARs:
- Create a self-contained eclipse-repository artifact with your RCP features
- Within the WAR project’s pom the maven-dependency-plugin unpacks the eclipse repositories zip into a directory and the maven-resources-plugin copies the jars into the WEB-INF/lib directory which will be packed into the war by the maven war plugin:
<?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"
<!—This are the maven coordinates of the eclipse update site -->
Von: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] Im Auftrag von sparsick@xxxxxx
Gesendet: Donnerstag, 16. März 2017 14:19
Betreff: [tycho-user] Building an EAR artifact based on the Manifest-First approach
Hello mailing list,
We use Maven Tycho for building our RCP application, that consits of one product, several features and severel eclipse plugins. We use the Manifest-first approach, so that our POMs don't have any dependencies information. It works like a charm. But now some of the eclipse plugins / bundle should be reused in a server application. The deplyoment artifact should be an EAR file. My first thought was to use the maven-ear-plugin. But it doesn't help me to pack a full deployable EAR artifact, because without the dependency information in the reused bundle's POM, the maven-ear-plugin can't collect the all needed dependencies. My next idea was to change the build of the bundle to the classical POM-first approach combinated with the maven-bundle-plugin for the the MANIFEST.MF generation. This idea wasn't accepted by my colleagues because they don't want to have two approachs for creating the MANIFEST.MF. So my question to you is, does anyone know how to build an full deployable EAR artifact based on the dependency information in the MANIFEST.MF of the bundles?
Thank you and best regards,
_______________________________________________ tycho-user mailing list tycho-user@xxxxxxxxxxx To change your delivery options, retrieve your password, or unsubscribe from this list, visit