Skip to content

Commit

Permalink
Update pom.xml for publishing to Maven Central
Browse files Browse the repository at this point in the history
  • Loading branch information
jv-asana committed Aug 30, 2022
1 parent 6d90685 commit 095c848
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,22 @@
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.1</version>
<configuration>
<tagNameFormat>@{project.version}</tagNameFormat>
</configuration>
<dependencies>
<dependency>
<groupId>org.apache.maven.shared</groupId>
<artifactId>maven-invoker</artifactId>
<version>2.2</version>
</dependency>
</dependencies>
</plugin>

<!-- The below plugins are useful when debugging locally to be able to run an
example, bringing in the proper CLASSPATHs of all dependencies, from the actual
final JAR file instead of the intermediate .class files. -->
Expand Down Expand Up @@ -180,6 +196,9 @@ final JAR file instead of the intermediate .class files. -->
<profiles>
<profile>
<id>release</id>
<properties>
<gpg.executable>gpg</gpg.executable>
</properties>
<build>
<plugins>
<plugin>
Expand All @@ -195,6 +214,12 @@ final JAR file instead of the intermediate .class files. -->
</goals>
</execution>
</executions>
<configuration>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</plugin>

<plugin>
Expand Down Expand Up @@ -224,6 +249,7 @@ final JAR file instead of the intermediate .class files. -->
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
Expand Down

0 comments on commit 095c848

Please sign in to comment.