Skip to content
This repository has been archived by the owner on Jul 13, 2022. It is now read-only.

Commit

Permalink
Merge pull request #38 from Hygieia/rvema-patch-1
Browse files Browse the repository at this point in the history
Fix maven deploy
  • Loading branch information
rvema authored Sep 10, 2020
2 parents 4f416c4 + 4ea95db commit 7cfe9e7
Showing 1 changed file with 103 additions and 136 deletions.
239 changes: 103 additions & 136 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,23 @@
</dependencies>

<build>
<defaultGoal>clean verify apache-rat:check japicmp:cmp checkstyle:check spotbugs:check javadoc:javadoc</defaultGoal>
<finalName>${project.artifactId}</finalName>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<includes>
<include>**/version.properties</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
<filtering>false</filtering>
<excludes>
<exclude>**/version.properties</exclude>
</excludes>
</resource>
</resources>
<finalName>${artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
Expand All @@ -161,24 +176,6 @@
<target>${java.compilation.target}</target>
</configuration>
</plugin>
<plugin>
<groupId>com.github.siom79.japicmp</groupId>
<artifactId>japicmp-maven-plugin</artifactId>
<version>0.13.1</version>
<configuration>
<parameter>
<onlyModified>true</onlyModified>
<breakBuildOnBinaryIncompatibleModifications>${japicmp.breakBuildOnBinaryIncompatibleModifications}</breakBuildOnBinaryIncompatibleModifications>
<breakBuildOnSourceIncompatibleModifications>${japicmp.breakBuildOnSourceIncompatibleModifications}</breakBuildOnSourceIncompatibleModifications>
<!-- skip japicmp on "mvn site" - use "mvn package site" to include report -->
<ignoreMissingNewVersion>true</ignoreMissingNewVersion>
<reportOnlyFilename>true</reportOnlyFilename>
<skipPomModules>true</skipPomModules>
<ignoreMissingClasses>false</ignoreMissingClasses>
</parameter>
<skip>${japicmp.skip}</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
Expand All @@ -187,7 +184,7 @@
<configLocation>src/devops/checkstyle.xml</configLocation>
<suppressionsLocation>src/devops/checkstyle-suppressions.xml</suppressionsLocation>
<encoding>UTF-8</encoding>
<consoleOutput>true</consoleOutput>
<consoleOutput>false</consoleOutput>
<failsOnError>true</failsOnError>
<linkXRef>false</linkXRef>
</configuration>
Expand All @@ -207,10 +204,9 @@
<version>${apache.rat.plugin.version}</version>
<configuration>
<excludes>
<exclude>**.tests/**</exclude>
<exclude>**logs/**</exclude>
<exclude>**site-content/**</exclude>
<exclude>RELEASE-NOTES.txt</exclude>
<exclude>.tests/**</exclude>
<exclude>.tests/**</exclude>
<exclude>logs/**</exclude>
<exclude>src/test/resources/org/tmatesoft/svn/test/apache.config.template</exclude>
<exclude>src/test/resources/org/tmatesoft/svn/test/test.properties.template</exclude>
<exclude>src/test/resources/org/tmatesoft/svn/test/svnserve.config.template</exclude>
Expand All @@ -235,22 +231,6 @@
<targetJdk>${java.compilation.target}</targetJdk>
</configuration>
</plugin>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>docker-maven-plugin</artifactId>
<configuration>
<skipDockerBuild>false</skipDockerBuild>
<imageName>hygieia-build-jenkins-collector</imageName>
<dockerDirectory>${project.basedir}/docker</dockerDirectory>
<resources>
<resource>
<targetPath>/</targetPath>
<directory>${project.build.directory}</directory>
<include>${project.build.finalName}.jar</include>
</resource>
</resources>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
Expand Down Expand Up @@ -354,7 +334,9 @@
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven.javadoc.plugin.version}</version>
<configuration>
<extdirs>src/test</extdirs>
<failOnError>false</failOnError>
<failOnWarnings>false</failOnWarnings>
<excludes>**/*Test*.java</excludes>
</configuration>
</plugin>
<plugin>
Expand Down Expand Up @@ -390,28 +372,15 @@
<groupId>com.github.siom79.japicmp</groupId>
<artifactId>japicmp-maven-plugin</artifactId>
<version>0.13.1</version>
<configuration>
<parameter>
<onlyModified>true</onlyModified>
<breakBuildOnBinaryIncompatibleModifications>${japicmp.breakBuildOnBinaryIncompatibleModifications}</breakBuildOnBinaryIncompatibleModifications>
<breakBuildOnSourceIncompatibleModifications>${japicmp.breakBuildOnSourceIncompatibleModifications}</breakBuildOnSourceIncompatibleModifications>
<!-- skip japicmp on "mvn site" - use "mvn package site" to include report -->
<skipPomModules>true</skipPomModules>
<ignoreMissingNewVersion>true</ignoreMissingNewVersion>
<reportOnlyFilename>true</reportOnlyFilename>
</parameter>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<version>${apache.rat.plugin.version}</version>
<configuration>
<excludes>
<exclude>**.tests/**</exclude>
<exclude>**logs/**</exclude>
<exclude>**site-content/**</exclude>
<exclude>RELEASE-NOTES.txt</exclude>
<exclude>.tests/**</exclude>
<exclude>logs/**</exclude>
<exclude>src/test/resources/org/tmatesoft/svn/test/apache.config.template</exclude>
<exclude>src/test/resources/org/tmatesoft/svn/test/test.properties.template</exclude>
<exclude>src/test/resources/org/tmatesoft/svn/test/svnserve.config.template</exclude>
Expand Down Expand Up @@ -465,7 +434,7 @@
<template>release-notes.vm</template>
<templateDirectory>src/changes</templateDirectory>
<issueLinkTemplatePerSystem>
<github>http://github.com/Hygieia/hygieia-build-jenkins-collector/issues/%ISSUE%</github>
<github>http://github.com/Hygieia/${repository.name}/issues/%ISSUE%</github>
</issueLinkTemplatePerSystem>
</configuration>
<reportSets>
Expand Down Expand Up @@ -569,80 +538,6 @@
</plugins>
</build>
</profile>
<profile>
<id>test-deploy</id>
<properties>
<altDeploymentRepository>id::default::file:target/deploy</altDeploymentRepository>
</properties>
</profile>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.8</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
<autoDropAfterRelease>true</autoDropAfterRelease>
<stagingProfileId>26a9600c05a6d3</stagingProfileId>
</configuration>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>create-javadoc-jar</id>
<goals>
<goal>javadoc</goal>
<goal>jar</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
<configuration>
<source>${maven.compiler.source}</source>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-test-sources</id>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>setup-checkout</id>
<activation>
Expand All @@ -665,19 +560,19 @@
<configuration>
<tasks>
<exec executable="git">
<arg line="clone -b gh-pages --single-branch ${site.publish.url} ${site.publish.checkout.directory}" />
<arg line="clone -b gh-pages --single-branch ${site.publish.url} ${site.publish.checkout.directory}"/>
</exec>

<exec executable="git" dir="site-content">
<arg line="fetch origin gh-pages" />
<arg line="fetch origin gh-pages"/>
</exec>

<exec executable="git" dir="site-content">
<arg line="reset --hard origin/gh-pages" />
<arg line="reset --hard origin/gh-pages"/>
</exec>

<pathconvert pathsep=" " property="dirs">
<dirset dir="${site.publish.checkout.directory}" includes="*" />
<dirset dir="${site.publish.checkout.directory}" includes="*"/>
</pathconvert>
</tasks>
</configuration>
Expand Down Expand Up @@ -707,6 +602,78 @@
</plugins>
</build>
</profile>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.8</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
<autoDropAfterRelease>true</autoDropAfterRelease>
<stagingProfileId>26a9600c05a6d3</stagingProfileId>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven.javadoc.plugin.version}</version>
<configuration>
<doclint>none</doclint>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

</project>

0 comments on commit 7cfe9e7

Please sign in to comment.