Skip to content

Commit 44c8245

Browse files
author
Komal Yadav
committed
Set up Maven profiles for release and snapshot
updated
1 parent eb69b33 commit 44c8245

File tree

1 file changed

+40
-11
lines changed

1 file changed

+40
-11
lines changed

pom.xml

Lines changed: 40 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -282,17 +282,6 @@
282282
</execution>
283283
</executions>
284284
</plugin>
285-
<plugin>
286-
<groupId>org.sonatype.central</groupId>
287-
<artifactId>central-publishing-maven-plugin</artifactId>
288-
<version>0.8.0</version>
289-
<extensions>true</extensions>
290-
<configuration>
291-
<publishingServerId>sonatype.release</publishingServerId>
292-
<autoPublish>false</autoPublish>
293-
<ignorePublishedComponents>true</ignorePublishedComponents>
294-
</configuration>
295-
</plugin>
296285
</plugins>
297286
</build>
298287

@@ -301,6 +290,17 @@
301290
<id>coverage</id>
302291
<build>
303292
<plugins>
293+
<plugin>
294+
<groupId>org.sonatype.central</groupId>
295+
<artifactId>central-publishing-maven-plugin</artifactId>
296+
<version>0.8.0</version>
297+
<extensions>true</extensions>
298+
<configuration>
299+
<publishingServerId>sonatype.release</publishingServerId>
300+
<autoPublish>false</autoPublish>
301+
<ignorePublishedComponents>true</ignorePublishedComponents>
302+
</configuration>
303+
</plugin>
304304
<plugin>
305305
<groupId>org.apache.maven.plugins</groupId>
306306
<artifactId>maven-site-plugin</artifactId>
@@ -338,6 +338,35 @@
338338
<!-- Profile for release. Includes building of source and javadoc jars. -->
339339
<profile>
340340
<id>release</id>
341+
<build>
342+
<plugins>
343+
<plugin>
344+
<groupId>org.sonatype.central</groupId>
345+
<artifactId>central-publishing-maven-plugin</artifactId>
346+
<version>0.8.0</version>
347+
<extensions>true</extensions>
348+
<configuration>
349+
<publishingServerId>sonatype.release</publishingServerId>
350+
<autoPublish>false</autoPublish>
351+
<ignorePublishedComponents>true</ignorePublishedComponents>
352+
</configuration>
353+
</plugin>
354+
</plugins>
355+
</build>
356+
</profile>
357+
358+
<profile>
359+
<id>version-release</id>
360+
<distributionManagement>
361+
<repository>
362+
<id>artifact-registry</id>
363+
<url>artifactregistry://us-maven.pkg.dev/oss-exit-gate-prod/cloud-data-fusion--mavencentral</url>
364+
</repository>
365+
</distributionManagement>
366+
</profile>
367+
368+
<profile>
369+
<id>common-artifacts</id>
341370
<build>
342371
<plugins>
343372
<!-- GPG signature -->

0 commit comments

Comments
 (0)