Skip to content

Commit

Permalink
Overwriting maven-deploy-plugin ID 'default-deploy' otherwise all del…
Browse files Browse the repository at this point in the history
…iverable will be uploaded twice
  • Loading branch information
svanteschubert committed Dec 20, 2023
1 parent 192fb5a commit cdd7900
Showing 1 changed file with 6 additions and 25 deletions.
31 changes: 6 additions & 25 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>

<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
Expand All @@ -18,26 +17,24 @@
specific language governing permissions and limitations
under the License.
-->

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.odftoolkit</groupId>
<artifactId>odftoolkit</artifactId>
<version>0.13.0-SNAPSHOT</version>
<packaging>pom</packaging>

<parent>
<groupId>org.apache</groupId>
<artifactId>apache</artifactId>
<version>31</version>
<relativePath />
</parent>

<properties>
<javadoc.bottom>Copyright © {inceptionYear}–2018 Apache Software Foundation; Copyright © 2018–{currentYear} {organizationName}. All rights reserved.</javadoc.bottom>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- explicitly setting JDK version for compiler source & target -->
<jdk.version>11</jdk.version> <!-- all three JDK versions should not differ -->
<jdk.version>11</jdk.version>
<!-- all three JDK versions should not differ -->
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<!-- ANT driven release bundle creation: 3 ZIPs for the complete Toolkit for binaries, documentation and sources -->
Expand All @@ -60,7 +57,6 @@
<maven.javadoc.failOnError>false</maven.javadoc.failOnError>
<maven.build.timestamp.format>yyyy-MM-dd'T'HH:mm:ss</maven.build.timestamp.format>
</properties>

<!-- At root project level defining dependencies useable across all projects.
Making version management easy and consistent! -->
<dependencyManagement>
Expand Down Expand Up @@ -187,15 +183,13 @@
</dependency>
</dependencies>
</dependencyManagement>

<modules>
<module>taglets</module>
<module>generator</module>
<module>xslt-runner</module>
<module>odfdom</module>
<module>validator</module>
</modules>

<name>The ODF Toolkit</name>
<description>
The ODF Toolkit is a set of Java modules that allow
Expand All @@ -215,17 +209,14 @@
<url>https://github.com/tdf/odftoolkit.git</url>
<tag>HEAD</tag>
</scm>

<issueManagement>
<system>GitHub Issues</system>
<url>https://github.com/tdf/odftoolkit/issues</url>
</issueManagement>

<ciManagement>
<system>travis</system>
<url>https://travis-ci.community</url>
</ciManagement>

<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
Expand All @@ -242,7 +233,6 @@
<url>https://odftoolkit.org/reports/${project.version}/</url>
</site>
</distributionManagement>

<developers>
<developer>
<id>svanteschubert</id>
Expand Down Expand Up @@ -280,7 +270,6 @@
<timezone>+1</timezone>
</developer>
</developers>

<mailingLists>
<mailingList>
<!--
Expand All @@ -292,11 +281,10 @@
<subscribe>[email protected]</subscribe>
<unsubscribe>[email protected]</unsubscribe>
<archive>https://listarchives.odftoolkit.org/dev/</archive>
<name>dev.odftoolkit.org</name> <!-- List-Id -->
<name>dev.odftoolkit.org</name>
<!-- List-Id -->
</mailingList>
</mailingLists>


<build>
<pluginManagement>
<plugins>
Expand Down Expand Up @@ -416,7 +404,6 @@
<!-- see https://github.com/ec4j/editorconfig-maven-plugin/blob/master/ec4j-lint-api/src/main/java/org/ec4j/maven/lint/api/Constants.java#L37 -->
<!-- See https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties -->
<!-- !!! 'mvn editorconfig:format' fixes format via command line!!! -->

<!-- You can exclude further files from processing: -->
<!--<exclude>src/main/**/*.whatever</exclude>-->
<exclude>target</exclude>
Expand All @@ -429,7 +416,8 @@
<version>2.8.2</version>
<executions>
<execution>
<id>maven-deploy</id>
<!-- any other ID will cause the deployment to happen twice -->
<id>default-deploy</id>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
Expand Down Expand Up @@ -579,7 +567,6 @@
</plugins>
</build>
</profile>

<!-- The purpose of the following profile is to make a SonaType Maven release.
PRECONDITION:
1) You need to have a GPG Signature specified:
Expand Down Expand Up @@ -630,7 +617,6 @@
<mkdir dir="${release.tmpdir.bin}" />
<mkdir dir="${release.tmpdir.doc}" />
<mkdir dir="${release.tmpdir.src}" />

<!-- COLLECT FILES OF BUNDLES -->
<!-- collect binary artefacts -->
<copy todir="${release.tmpdir.bin}" flatten="true">
Expand Down Expand Up @@ -677,12 +663,10 @@
<exclude name="**/.idea" />
</fileset>
</copy>

<!-- ZIP FILES to 3 BUNDLES -->
<zip basedir="${release.tmpdir.bin}" destfile="${basedir}/target/${release.zip.bin}" />
<zip basedir="${release.tmpdir.doc}" destfile="${basedir}/target/${release.zip.doc}" />
<zip basedir="${release.tmpdir.src}" destfile="${basedir}/target/${release.zip.src}" />

<!-- SIGN 3 BUNDLES -->
<checksum algorithm="SHA-512" fileext=".sha">
<fileset dir="${basedir}/target">
Expand All @@ -691,7 +675,6 @@
<include name="*.tar.bz2" />
</fileset>
</checksum>

<!-- MOVE THE 3 BUNDLES -->
<move todir="${release.dir.bin}">
<fileset dir="${basedir}/target">
Expand All @@ -708,11 +691,9 @@
<include name="*-src.*" />
</fileset>
</move>

<!-- DELETE TEMPORARY DIRECTORIES>-->
<delete quiet="true" dir="${basedir}/target/archive-tmp" />
<delete quiet="true" dir="${release.tmpdir}" />

<echo>*** The release has been prepared in: ${release.dir} ***</echo>
</target>
</configuration>
Expand Down

0 comments on commit cdd7900

Please sign in to comment.