Add pom snippet for the service archive.

This commit is contained in:
Manuele Simi 2019-07-13 14:47:45 -04:00
parent d92a040b74
commit 6ea1d8ceed
2 changed files with 24 additions and 1 deletions

View File

@ -14,4 +14,9 @@ List of available templates:
* [descriptor.xml](gCubeComponents/descriptor.xml)
* It supports the creation of an archive with the binary artifacts generated by the content of the repository. Customizable if needed.
All of them must be placed in the root directory of the Git repository.
All of them must be placed in the root directory of the Git repository.
We also provide few snippets useful for common tasks during the Maven build:
* [service_archive.xml](gCubeComponents/snippets/service_archive.xml)
* Execute the maven-assembly-plugin to create the service archive for the component.

View File

@ -0,0 +1,18 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptors>
<descriptor>descriptor.xml</descriptor>
</descriptors>
</configuration>
<executions>
<execution>
<id>servicearchive</id>
<phase>install</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>