Skip to content

Commit

Permalink
Preparing pom.xml for release
Browse files Browse the repository at this point in the history
  • Loading branch information
svanteschubert committed Oct 6, 2019
1 parent 5e169fe commit 5c529cd
Show file tree
Hide file tree
Showing 9 changed files with 407 additions and 221 deletions.
37 changes: 18 additions & 19 deletions generator/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -136,46 +136,45 @@
</scm>

<profiles>
<!-- Profile for deploying to the Sonatype repository, which
requires GPG signatures
see
https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide
https://docs.sonatype.org/display/Repository/How+To+Generate+PGP+Signatures+With+Maven
https://issues.sonatype.org/browse/OSSRH-960
-->
<!-- Profile for deploying to the Sonatype repository, which
requires GPG signatures
see
https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide
https://docs.sonatype.org/display/Repository/How+To+Generate+PGP+Signatures+With+Maven
https://issues.sonatype.org/browse/OSSRH-960
-->
<!-- GPG Signature on release -->
<profile>
<id>release</id>
<id>release-sign-artifacts</id>
<activation>
<property>
<name>performRelease</name>
<value>true</value>
<name>gpg.keyname</name>
</property>
</activation>
<build>
<plugins>
<!-- see http://maven.apache.org/plugins/maven-gpg-plugin/usage.html -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<id>sign-artifacts</id>
<id>release-sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
<configuration>
<!-- Add GPG passphrase in Maven settings.xml under .m2 home, see
https://dzone.com/articles/publish-your-artifacts-to-maven-central -->
<keyname>${gpg.keyname}</keyname>
<passphraseServerId>${gpg.keyname}</passphraseServerId>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<!-- <distributionManagement>
<site>
<id>odfdom</id>
<name>ODFDOM Java Toolkit Project</name>
<url>dav:https://odftoolkit.org/website/odfdom/${project.version}/codegeneration/schema2template-pom</url>
</site>
</distributionManagement> -->
</profile>
<profile>
<id>doclint-java8-disable</id>
Expand Down
52 changes: 52 additions & 0 deletions generator/schema2template-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,61 @@
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<!-- Profile for deploying to the Sonatype repository, which
requires GPG signatures
see
https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide
https://docs.sonatype.org/display/Repository/How+To+Generate+PGP+Signatures+With+Maven
https://issues.sonatype.org/browse/OSSRH-960
-->
<!-- GPG Signature on release -->
<profile>
<id>release-sign-artifacts</id>
<activation>
<property>
<name>gpg.keyname</name>
</property>
</activation>
<build>
<plugins>
<!-- see http://maven.apache.org/plugins/maven-gpg-plugin/usage.html -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<executions>
<execution>
<id>release-sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
<configuration>
<!-- Add GPG passphrase in Maven settings.xml under .m2 home, see
https://dzone.com/articles/publish-your-artifacts-to-maven-central -->
<keyname>${gpg.keyname}</keyname>
<passphraseServerId>${gpg.keyname}</passphraseServerId>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>doclint-java8-disable</id>
<activation>
Expand Down
64 changes: 58 additions & 6 deletions generator/schema2template/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<version>1.0.0-SNAPSHOT</version>
</parent>

<!-- The Basics -->
<!-- The Basics -->
<artifactId>schema2template</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>jar</packaging>
Expand Down Expand Up @@ -71,7 +71,7 @@
<maven.build.timestamp.format>yyyy-MM-dd'T'HH:mm:ss</maven.build.timestamp.format>
</properties>

<!-- Build Settings -->
<!-- Build Settings -->
<build>
<extensions>
<extension>
Expand Down Expand Up @@ -110,7 +110,7 @@
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<!-- Explizit version required for fix on systemPropertyVariables -->
<!-- Explizit version required for fix on systemPropertyVariables -->
<version>2.19.1</version>
<configuration>
<systemPropertyVariables>
Expand Down Expand Up @@ -174,6 +174,18 @@
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<reporting>
Expand All @@ -183,8 +195,8 @@
<version>3.1</version>
<configuration>
<doctitle>Schema2template</doctitle>
<!-- JDK 8 as workaround for exception,
see https://bugs.openjdk.java.net/browse/JDK-8212233 -->
<!-- JDK 8 as workaround for exception,
see https://bugs.openjdk.java.net/browse/JDK-8212233 -->
<source>8</source>
<windowtitle>Schema2template v${project.version} - https://odftoolkit.org/</windowtitle>
<additionalOptions>${javadoc.opts}</additionalOptions>
Expand All @@ -194,6 +206,46 @@
</plugins>
</reporting>
<profiles>
<!-- Profile for deploying to the Sonatype repository, which
requires GPG signatures
see
https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide
https://docs.sonatype.org/display/Repository/How+To+Generate+PGP+Signatures+With+Maven
https://issues.sonatype.org/browse/OSSRH-960
-->
<!-- GPG Signature on release -->
<profile>
<id>release-sign-artifacts</id>
<activation>
<property>
<name>gpg.keyname</name>
</property>
</activation>
<build>
<plugins>
<!-- see http://maven.apache.org/plugins/maven-gpg-plugin/usage.html -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<executions>
<execution>
<id>release-sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
<configuration>
<!-- Add GPG passphrase in Maven settings.xml under .m2 home, see
https://dzone.com/articles/publish-your-artifacts-to-maven-central -->
<keyname>${gpg.keyname}</keyname>
<passphraseServerId>${gpg.keyname}</passphraseServerId>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>doclint-java8-disable</id>
<activation>
Expand All @@ -204,7 +256,7 @@
</properties>
</profile>
</profiles>
<!-- More Project Information -->
<!-- More Project Information -->
<name>XML Schema to Template Mapping Tool: Library</name>
<description>XML Schema to Template Mapping Tool: Library</description>
<organization>
Expand Down
23 changes: 11 additions & 12 deletions odfdom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@
</plugin>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<version>3.0.1</version>
<version>3.1.0</version>
<executions>
<execution>
<id>attach-sources</id>
Expand Down Expand Up @@ -646,39 +646,38 @@
https://docs.sonatype.org/display/Repository/How+To+Generate+PGP+Signatures+With+Maven
https://issues.sonatype.org/browse/OSSRH-960
-->
<!-- GPG Signature on release -->
<profile>
<id>release-sign-artifacts</id>
<activation>
<property>
<name>performRelease</name>
<value>true</value>
<name>gpg.keyname</name>
</property>
</activation>
<build>
<plugins>
<!-- see http://maven.apache.org/plugins/maven-gpg-plugin/usage.html -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<id>release-sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
<configuration>
<!-- Add GPG passphrase in Maven settings.xml under .m2 home, see
https://dzone.com/articles/publish-your-artifacts-to-maven-central -->
<keyname>${gpg.keyname}</keyname>
<passphraseServerId>${gpg.keyname}</passphraseServerId>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<!-- <distributionManagement>
<site>
<id>odfdom</id>
<name>ODFDOM Java Toolkit Project</name>
<url>dav:https://odftoolkit.org/website/odfdom/${project.version}/odfdom</url>
</site>
</distributionManagement> -->
</profile>
</profiles>
</project>
Loading

0 comments on commit 5c529cd

Please sign in to comment.