Skip to content

Commit 8220dbf

Browse files
chore: fix to deploy to GitHub Packages (#180)
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.
1 parent 713cb2b commit 8220dbf

File tree

1 file changed

+25
-12
lines changed

1 file changed

+25
-12
lines changed

pom.xml

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -233,18 +233,6 @@
233233
</execution>
234234
</executions>
235235
</plugin>
236-
<!-- Exclude from lifecycle, phase none -->
237-
<plugin>
238-
<groupId>org.apache.maven.plugins</groupId>
239-
<artifactId>maven-deploy-plugin</artifactId>
240-
<version>3.1.1</version>
241-
<executions>
242-
<execution>
243-
<id>default-deploy</id>
244-
<phase>none</phase>
245-
</execution>
246-
</executions>
247-
</plugin>
248236
</plugins>
249237
</build>
250238
<profiles>
@@ -276,6 +264,19 @@
276264
</snapshots>
277265
</repository>
278266
</distributionManagement>
267+
<build>
268+
<plugins>
269+
<plugin>
270+
<groupId>org.apache.maven.plugins</groupId>
271+
<artifactId>maven-deploy-plugin</artifactId>
272+
<version>3.1.2</version>
273+
<configuration>
274+
<repositoryId>github-pkg</repositoryId>
275+
<url>https://maven.pkg.github.com/opentdf/java-sdk</url>
276+
</configuration>
277+
</plugin>
278+
</plugins>
279+
</build>
279280
</profile>
280281
<profile>
281282
<id>release</id>
@@ -300,6 +301,18 @@
300301
<publishingServerId>central</publishingServerId>
301302
</configuration>
302303
</plugin>
304+
<!-- Exclude from lifecycle, phase none -->
305+
<plugin>
306+
<groupId>org.apache.maven.plugins</groupId>
307+
<artifactId>maven-deploy-plugin</artifactId>
308+
<version>3.1.2</version>
309+
<executions>
310+
<execution>
311+
<id>default-deploy</id>
312+
<phase>none</phase>
313+
</execution>
314+
</executions>
315+
</plugin>
303316
</plugins>
304317
</build>
305318
</profile>

0 commit comments

Comments
 (0)