forked from gCubeCI/Templates
Add pom snippet for the service archive.
This commit is contained in:
parent
d92a040b74
commit
6ea1d8ceed
|
@ -15,3 +15,8 @@ List of available templates:
|
||||||
* It supports the creation of an archive with the binary artifacts generated by the content of the repository. Customizable if needed.
|
* 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.
|
|
@ -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>
|
Loading…
Reference in New Issue