diff options
author | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2019-12-10 08:52:24 +0100 |
---|---|---|
committer | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2019-12-10 08:52:24 +0100 |
commit | cf01ed53c99960c88483ae9a000b2284421f281b (patch) | |
tree | 894b10916bc3ca5671267291ea2405d06476e61a /connector | |
parent | 6e2eef88e7f28a8589faf0ebc8027ef4af334f30 (diff) | |
download | National_eIDAS_Gateway-cf01ed53c99960c88483ae9a000b2284421f281b.tar.gz National_eIDAS_Gateway-cf01ed53c99960c88483ae9a000b2284421f281b.tar.bz2 National_eIDAS_Gateway-cf01ed53c99960c88483ae9a000b2284421f281b.zip |
add assembly plugin to build release packages
Diffstat (limited to 'connector')
-rw-r--r-- | connector/pom.xml | 22 | ||||
-rw-r--r-- | connector/src/assembly/assembly_dir.xml | 49 | ||||
-rw-r--r-- | connector/src/assembly/assembly_zip.xml | 49 |
3 files changed, 120 insertions, 0 deletions
diff --git a/connector/pom.xml b/connector/pom.xml index af1d5947..52addf4d 100644 --- a/connector/pom.xml +++ b/connector/pom.xml @@ -134,6 +134,28 @@ </dependencies> </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-assembly-plugin</artifactId> + <configuration> + <descriptors> + <descriptor>src/assembly/assembly_dir.xml</descriptor> + <descriptor>src/assembly/assembly_zip.xml</descriptor> + </descriptors> + <finalName>${project.artifactId}-${project.version}</finalName> + <outputDirectory>${project.parent.build.directory}</outputDirectory> + </configuration> + <executions> + <execution> + <id>make-assembly</id> + <phase>package</phase> + <goals> + <goal>single</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> </build> </project> diff --git a/connector/src/assembly/assembly_dir.xml b/connector/src/assembly/assembly_dir.xml new file mode 100644 index 00000000..cba3ed24 --- /dev/null +++ b/connector/src/assembly/assembly_dir.xml @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="UTF-8"?> +<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd"> + <id>dir</id> + <formats> + <format>dir</format> + </formats> + <includeBaseDirectory>false</includeBaseDirectory> + <files> + <file> + <source>${project.build.directory}/${project.build.finalName}.war</source> + <outputDirectory>./</outputDirectory> + </file> + </files> + <fileSets> + <fileSet> + <directory>${project.parent.basedir}</directory> + <outputDirectory>./</outputDirectory> + <includes> + <include>LICENSES.txt</include> + </includes> + <useDefaultExcludes>true</useDefaultExcludes> + </fileSet> + <fileSet> + <directory>${project.parent.basedir}/licenses</directory> + <outputDirectory>./licenses</outputDirectory> + </fileSet> + <fileSet> + <directory>${project.build.directory}/thirdparty_licenses</directory> + <outputDirectory>./licenses</outputDirectory> + </fileSet> + <fileSet> + <directory>${project.parent.basedir}/basicConfig/</directory> + <outputDirectory>./config</outputDirectory> + <excludes> + <exclude>**/extconfig/**</exclude> + </excludes> + </fileSet> + <fileSet> + <directory>${project.parent.basedir}/infos/</directory> + <outputDirectory>./infos</outputDirectory> + <includes> + <!-- include>README.md</include--> + <include>readme_${project.version}.txt</include> + </includes> + </fileSet> + </fileSets> +</assembly> diff --git a/connector/src/assembly/assembly_zip.xml b/connector/src/assembly/assembly_zip.xml new file mode 100644 index 00000000..579da2e1 --- /dev/null +++ b/connector/src/assembly/assembly_zip.xml @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="UTF-8"?> +<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd"> + <id>dist</id> + <formats> + <format>zip</format> + </formats> + <includeBaseDirectory>false</includeBaseDirectory> + <files> + <file> + <source>${project.build.directory}/${project.build.finalName}.war</source> + <outputDirectory>./</outputDirectory> + </file> + </files> + <fileSets> + <fileSet> + <directory>${project.parent.basedir}</directory> + <outputDirectory>./</outputDirectory> + <includes> + <include>LICENSES.txt</include> + </includes> + <useDefaultExcludes>true</useDefaultExcludes> + </fileSet> + <fileSet> + <directory>${project.parent.basedir}/licenses</directory> + <outputDirectory>./licenses</outputDirectory> + </fileSet> + <fileSet> + <directory>${project.build.directory}/thirdparty_licenses</directory> + <outputDirectory>./licenses</outputDirectory> + </fileSet> + <fileSet> + <directory>${project.parent.basedir}/basicConfig/</directory> + <outputDirectory>./config</outputDirectory> + <excludes> + <exclude>**/extconfig/**</exclude> + </excludes> + </fileSet> + <fileSet> + <directory>${project.parent.basedir}/infos/</directory> + <outputDirectory>./infos</outputDirectory> + <includes> + <!-- include>README.md</include --> + <include>readme_${project.version}.txt</include> + </includes> + </fileSet> + </fileSets> +</assembly> |