Issue Details (XML | Word | Printable)

Key: LEDGE-155
Type: Sub-task Sub-task
Status: Closed Closed
Resolution: Fixed/Completed
Priority: Major Major
Assignee: Unassigned
Reporter: Rafał Krzewski
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ObjectLedge
LEDGE-130

develop an equivalent of M1 ledge-maven-plugin repackage-content goal using M1 maven-assembly-plugin

Created: 2009-08-15 01:34   Updated: 2009-08-16 19:55
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified


 All   Comments   Work Log   Change History   FishEye   Crucible      Sort Order: Ascending order - Click to sort in descending order
Rafał Krzewski added a comment - 2009-08-15 01:45
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

Rafał Krzewski added a comment - 2009-08-16 19:54
composite-war.xml assembly descriptor was added to ledge-maven-assemblies. Example usage:

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-assembly-plugin</artifactId>
        <dependencies>
          <dependency>
            <groupId>org.objectledge</groupId>
            <artifactId>ledge-maven-assemblies</artifactId>
            <version>${versions.ledge}</version>
          </dependency>
        </dependencies>
        <executions>
          <execution>
            <id>composite-war</id>
            <phase>package</phase>
            <goals>
              <goal>single</goal>
            </goals>
            <configuration>
              <appendAssemblyId>false</appendAssemblyId>
              <descriptors>
                <descriptor>composite-war.xml</descriptor>
              </descriptors>
            </configuration>
          </execution>
        </executions>
      </plugin>

Rafał Krzewski added a comment - 2009-08-16 19:55
done