Skip to content

Commit

Permalink
chore: fix to deploy to GitHub Packages (#180)
Browse files Browse the repository at this point in the history
Update maven-deploy-plugin to be used during `stage` for deployment to
GitHub Packages, this plugin is excluded from `release` to Maven Central

Replaced maven-deploy-plugin version 3.1.1 with 3.1.2 and added
configuration for GitHub package repository. Restored lifecycle
exclusion for default-deploy phase ensuring no impact on the build
process.
  • Loading branch information
pflynn-virtru authored Oct 7, 2024
1 parent 713cb2b commit 8220dbf
Showing 1 changed file with 25 additions and 12 deletions.
37 changes: 25 additions & 12 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -233,18 +233,6 @@
</execution>
</executions>
</plugin>
<!-- Exclude from lifecycle, phase none -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>3.1.1</version>
<executions>
<execution>
<id>default-deploy</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
Expand Down Expand Up @@ -276,6 +264,19 @@
</snapshots>
</repository>
</distributionManagement>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>3.1.2</version>
<configuration>
<repositoryId>github-pkg</repositoryId>
<url>https://maven.pkg.github.com/opentdf/java-sdk</url>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>release</id>
Expand All @@ -300,6 +301,18 @@
<publishingServerId>central</publishingServerId>
</configuration>
</plugin>
<!-- Exclude from lifecycle, phase none -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>3.1.2</version>
<executions>
<execution>
<id>default-deploy</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
Expand Down

0 comments on commit 8220dbf

Please sign in to comment.