Skip to content

Commit

Permalink
Tidy up POM for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
tilln committed Mar 29, 2021
1 parent 174797b commit 7b81768
Showing 1 changed file with 83 additions and 0 deletions.
83 changes: 83 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
<packaging>jar</packaging>
<version>1.8-SNAPSHOT</version>
<name>${project.artifactId}</name>
<description>Apache JMeter plugin for signing, encrypting and decrypting SOAP messages (WS-Security)</description>
<url>https://github.com/tilln/jmeter-wssecurity</url>

<licenses>
<license>
Expand All @@ -26,6 +28,15 @@
<developerConnection>scm:git:[email protected]:tilln/jmeter-wssecurity.git</developerConnection>
</scm>

<developers>
<developer>
<name>Till Neunast</name>
<email>[email protected]</email>
<organization>Breakpoint</organization>
<organizationUrl>http://breakpoint.co.nz</organizationUrl>
</developer>
</developers>

<dependencies>
<dependency>
<groupId>org.apache.wss4j</groupId>
Expand Down Expand Up @@ -85,4 +96,76 @@
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>publish</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.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>2.9.1</version>
<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>
<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://s01.oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
</build>
<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
</profile>
</profiles>

</project>

0 comments on commit 7b81768

Please sign in to comment.