Permalink
Browse files

Modified configuration for maven, added support for preparing artifac…

…ts in order to deploy them into Maven Central Repository.

Signed-off-by: Indrek Jentson <indrek.jentson@cgi.com>
  • Loading branch information...
Indrek Jentson
Indrek Jentson committed Jul 12, 2017
1 parent 7085e0f commit 30329a8b78a5947a538d9da162d429f90b6e909a
Showing with 112 additions and 6 deletions.
  1. +4 −3 AUTHORS
  2. +108 −3 pom.xml
View
@@ -1,9 +1,10 @@
Developer:
Developers:
Martin Beldman <martin@codeborne.com>
Aho Augasmägi <aho@codeborne.com>
Risto Alas <risto.alas@nortal.com>
Mihkel Selgal <mihkel.selgal@nortal.com>
Rainer Villido <rainer.villido@nortal.com>
Allan Juhanson <allan.juhanson@nortal.com>
Andrei Smirnov <andrei.smirnov@cgi.com>
Indrek Jentson <indrek.jentson@cgi.com>
Margus Kamlat <margus.kamlat@cgi.com>
Indrek Jentson <indrek.jentson@cgi.com>
Margus Kamlat <margus.kamlat@cgi.com>
View
111 pom.xml
@@ -25,6 +25,63 @@
<system>Pivotal</system>
<url>https://www.pivotaltracker.com/n/projects/1110130</url>
</issueManagement>
<developers>
<developer>
<name>Rainer Villido</name>
<email>Rainer.Villido at Nortal.com</email>
<organization>Nortal</organization>
<organizationUrl>http://www.nortal.com</organizationUrl>
</developer>
<developer>
<name>Mihkel Selgal</name>
<email>Mihkel.Selgal at Nortal.com</email>
<organization>Nortal</organization>
<organizationUrl>http://www.nortal.com</organizationUrl>
</developer>
<developer>
<name>Risto Alas</name>
<email>Risto.Alas at Nortal.com</email>
<organization>Nortal</organization>
<organizationUrl>http://www.nortal.com</organizationUrl>
</developer>
<developer>
<name>Aho Augasmägi</name>
<email>aho at codeborne.com</email>
<organization>Codeborne</organization>
<organizationUrl>http://www.codeborne.com</organizationUrl>
</developer>
<developer>
<name>Allan Juhanson</name>
<email>Allan.Juhanson at Nortal.com</email>
<organization>Nortal</organization>
<organizationUrl>http://www.nortal.com</organizationUrl>
</developer>
<developer>
<name>Martin Beldman</name>
<email>martin at codeborne.com</email>
<organization>Codeborne</organization>
<organizationUrl>http://www.codeborne.com</organizationUrl>
</developer>
<developer>
<name>Andrei Smirnov</name>
<email>andrei.smirnov at cgi.com</email>
<organization>CGI Eesti</organization>
<organizationUrl>https://www.cgi.ee</organizationUrl>
</developer>
<developer>
<name>Indrek Jentson</name>
<email>indrek.jentson at cgi.com</email>
<organization>CGI Eesti</organization>
<organizationUrl>https://www.cgi.ee</organizationUrl>
</developer>
<developer>
<name>Margus Kamlat</name>
<email>margus.kamlat at cgi.com</email>
<organization>CGI Eesti</organization>
<organizationUrl>https://www.cgi.ee</organizationUrl>
</developer>
</developers>
<properties>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
@@ -38,6 +95,7 @@
<dss.util.build>${project.basedir}/build/</dss.util.build>
<dss.util.lib>${project.basedir}/utility-package-lib</dss.util.lib>
<dss.zip.lib>${project.basedir}/zip-package-lib</dss.zip.lib>
<argLine>-Dfile.encoding=UTF-8</argLine>
</properties>
<profiles>
@@ -77,7 +135,6 @@
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
<argLine>@{argLine} -Dfile.encoding=UTF-8</argLine>
</configuration>
</plugin>
<plugin>
@@ -674,7 +731,16 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.0.2</version>
<executions>
<execution>
<id>main</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<classifier>library</classifier>
<excludes>
<exclude>prototype/**</exclude>
</excludes>
@@ -691,6 +757,8 @@
</manifestSections>
</archive>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
@@ -727,7 +795,6 @@
<additionalClasspathElement>${project.basedir}/lib/esteidtestcerts.jar</additionalClasspathElement>
</additionalClasspathElements>
<!-- Default test configuration -->
<argLine>@{argLine} -Dfile.encoding=UTF-8</argLine>
</configuration>
</plugin>
@@ -769,6 +836,25 @@
<zip destfile="${project.basedir}/target/${project.artifactId}-${project.version}-util.zip"
basedir="${dss.util.build}/util"/>
<delete dir="${dss.util.build}/util"/>
<copy tofile="${project.basedir}/target/${project.artifactId}-${project.version}.pom">
<fileset dir="${project.basedir}" includes="**/pom.xml"/>
</copy>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
<execution>
<id>ant-bundle-jar</id>
<phase>install</phase>
<configuration>
<target>
<jar jarfile="${project.basedir}/target/${project.artifactId}-${project.version}-bundle.jar">
<fileset dir="target" includes="**/digidoc4j-*.jar" excludes="*-library.jar"/>
<fileset dir="target" includes="**/*.pom"/>
<fileset dir="target" includes="**/*.asc" excludes="*-library.*.asc"/>
</jar>
</target>
</configuration>
<goals>
@@ -814,6 +900,20 @@
<artifactId>maven-install-plugin</artifactId>
<version>2.5.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
@@ -881,7 +981,7 @@
<version>2.5.3</version>
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
<tagNameFormat>@{project.version}</tagNameFormat>
<tagNameFormat>${project.version}</tagNameFormat>
</configuration>
</plugin>
<plugin>
@@ -918,6 +1018,11 @@
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
</plugin>
</plugins>
</pluginManagement>
</build>

0 comments on commit 30329a8

Please sign in to comment.