Skip to content

Commit

Permalink
Fix configuration for release plugin
Browse files Browse the repository at this point in the history
Motivation:

We did miss to configure the release plugin correctly and so the automatic release will fail

Modifications:

Add configuration to be able to obtain the keyname and phassphrase

Result:

Release action will work
  • Loading branch information
normanmaurer committed Dec 11, 2023
1 parent 1f7a16d commit 532fea5
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@
<test.argLine>-D_</test.argLine>
<bundleNativeCode />
<crossCompile />
<release.gpg.keyname />
<release.gpg.passphrase />
</properties>

<build>
Expand Down Expand Up @@ -340,13 +342,26 @@
</plugin>
<plugin>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
<configuration>
<useReleaseProfile>false</useReleaseProfile>
<arguments>-P restricted-release,sonatype-oss-release,full</arguments>
<arguments>-P restricted-release,sonatype-oss-release -Dgpg.keyname=${release.gpg.keyname} -Dgpg.passphrase=${release.gpg.passphrase}</arguments>
<autoVersionSubmodules>true</autoVersionSubmodules>
<allowTimestampedSnapshots>false</allowTimestampedSnapshots>
<tagNameFormat>${project.artifactId}-@{project.version}</tagNameFormat>
</configuration>
<dependencies>
<dependency>
<groupId>org.apache.maven.scm</groupId>
<artifactId>maven-scm-api</artifactId>
<version>1.9.4</version>
</dependency>
<dependency>
<groupId>org.apache.maven.scm</groupId>
<artifactId>maven-scm-provider-gitexe</artifactId>
<version>1.9.4</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
Expand Down

0 comments on commit 532fea5

Please sign in to comment.