Skip to content

Commit 2c6c7d4

Browse files
committed
separate profile for releasing
1 parent a5db822 commit 2c6c7d4

File tree

1 file changed

+24
-14
lines changed

1 file changed

+24
-14
lines changed

pom.xml

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -120,23 +120,33 @@
120120
<autoReleaseAfterClose>true</autoReleaseAfterClose>
121121
</configuration>
122122
</plugin>
123-
<plugin>
124-
<groupId>org.apache.maven.plugins</groupId>
125-
<artifactId>maven-gpg-plugin</artifactId>
126-
<version>1.5</version>
127-
<executions>
128-
<execution>
129-
<id>sign-artifacts</id>
130-
<phase>verify</phase>
131-
<goals>
132-
<goal>sign</goal>
133-
</goals>
134-
</execution>
135-
</executions>
136-
</plugin>
137123
</plugins>
138124
</build>
139125

126+
<profiles>
127+
<profile>
128+
<id>release</id>
129+
<build>
130+
<plugins>
131+
<plugin>
132+
<groupId>org.apache.maven.plugins</groupId>
133+
<artifactId>maven-gpg-plugin</artifactId>
134+
<version>1.5</version>
135+
<executions>
136+
<execution>
137+
<id>sign-artifacts</id>
138+
<phase>verify</phase>
139+
<goals>
140+
<goal>sign</goal>
141+
</goals>
142+
</execution>
143+
</executions>
144+
</plugin>
145+
</plugins>
146+
</build>
147+
</profile>
148+
</profiles>
149+
140150
<dependencies>
141151
<dependency>
142152
<groupId>org.apache.maven.enforcer</groupId>

0 commit comments

Comments
 (0)