Hide
added a comment -
ledge-maven-assemblies module was created, with content-jar.xml descriptor for generating separate jars with /content resources
projects that provide such resources should exclude them in <resources> section and enable maven-assembly-plugin like this:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<dependencies>
<dependency>
<groupId>org.objectledge</groupId>
<artifactId>ledge-maven-assemblies</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>content-jar</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>content-jar.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
The next step is providing composite-war descriptor capable of consuming those artifacts
Show
added a comment - ledge-maven-assemblies module was created, with content-jar.xml descriptor for generating separate jars with /content resources
projects that provide such resources should exclude them in <resources> section and enable maven-assembly-plugin like this:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<dependencies>
<dependency>
<groupId>org.objectledge</groupId>
<artifactId>ledge-maven-assemblies</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>content-jar</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>content-jar.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
The next step is providing composite-war descriptor capable of consuming those artifacts
projects that provide such resources should exclude them in <resources> section and enable maven-assembly-plugin like this:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<dependencies>
<dependency>
<groupId>org.objectledge</groupId>
<artifactId>ledge-maven-assemblies</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>content-jar</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>content-jar.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
The next step is providing composite-war descriptor capable of consuming those artifacts