Skip to content

Commit 7198e24

Browse files
authored
Merge pull request #52 from comet-ml/CM-2342-mvn-nexus-staging-dependency-fix
[CM-2342]: Fixed parent POM to move Sonatype plugins dependencies into releases profile.
2 parents c0ba2ab + 6783747 commit 7198e24

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

pom.xml

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -61,19 +61,6 @@
6161
</snapshotRepository>
6262
</distributionManagement>
6363

64-
<dependencies>
65-
<dependency>
66-
<groupId>org.apache.maven.plugins</groupId>
67-
<artifactId>maven-gpg-plugin</artifactId>
68-
<version>3.0.1</version>
69-
</dependency>
70-
<dependency>
71-
<groupId>org.sonatype.plugins</groupId>
72-
<artifactId>nexus-staging-maven-plugin</artifactId>
73-
<version>1.6.8</version>
74-
</dependency>
75-
</dependencies>
76-
7764
<profiles>
7865

7966
<!-- GPG Signature on release -->
@@ -90,6 +77,7 @@
9077
<plugin>
9178
<groupId>org.apache.maven.plugins</groupId>
9279
<artifactId>maven-gpg-plugin</artifactId>
80+
<version>3.0.1</version>
9381
<executions>
9482
<execution>
9583
<id>sign-artifacts</id>
@@ -109,14 +97,16 @@
10997
</plugins>
11098
</build>
11199
</profile>
112-
100+
101+
<!-- Release to maven central -->
113102
<profile>
114103
<id>releases</id>
115104
<build>
116105
<plugins>
117106
<plugin>
118107
<groupId>org.sonatype.plugins</groupId>
119108
<artifactId>nexus-staging-maven-plugin</artifactId>
109+
<version>1.6.8</version>
120110
<executions>
121111
<execution>
122112
<id>default-deploy</id>
@@ -181,7 +171,7 @@
181171
<plugin>
182172
<groupId>org.sonatype.plugins</groupId>
183173
<artifactId>nexus-staging-maven-plugin</artifactId>
184-
<version>1.6.7</version>
174+
<version>1.6.8</version>
185175
<extensions>true</extensions>
186176
<executions>
187177
<execution>

0 commit comments

Comments
 (0)