Skip to content

Commit 4e4bc00

Browse files
committed
build: use 'release' profie to publish
1 parent 845f088 commit 4e4bc00

File tree

1 file changed

+69
-62
lines changed

1 file changed

+69
-62
lines changed

pom.xml

Lines changed: 69 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -118,69 +118,76 @@
118118
<autoVersionSubmodules>true</autoVersionSubmodules>
119119
</configuration>
120120
</plugin>
121-
<plugin>
122-
<groupId>org.sonatype.plugins</groupId>
123-
<artifactId>nexus-staging-maven-plugin</artifactId>
124-
<version>1.6.7</version>
125-
<extensions>true</extensions>
126-
<configuration>
127-
<serverId>ossrh</serverId>
128-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
129-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
130-
</configuration>
131-
</plugin>
132-
<plugin>
133-
<groupId>org.apache.maven.plugins</groupId>
134-
<artifactId>maven-source-plugin</artifactId>
135-
<version>2.2.1</version>
136-
<executions>
137-
<execution>
138-
<id>attach-sources</id>
139-
<goals>
140-
<goal>jar-no-fork</goal>
141-
</goals>
142-
</execution>
143-
</executions>
144-
</plugin>
145-
<plugin>
146-
<groupId>org.apache.maven.plugins</groupId>
147-
<artifactId>maven-javadoc-plugin</artifactId>
148-
<version>2.9.1</version>
149-
<configuration>
150-
<show>private</show>
151-
<nohelp>true</nohelp>
152-
<charset>UTF-8</charset>
153-
<encoding>UTF-8</encoding>
154-
<docencoding>UTF-8</docencoding>
155-
<additionalparam>-Xdoclint:none</additionalparam>
156-
</configuration>
157-
<executions>
158-
<execution>
159-
<id>attach-javadocs</id>
160-
<goals>
161-
<goal>jar</goal>
162-
</goals>
163-
</execution>
164-
</executions>
165-
</plugin>
166-
<plugin>
167-
<groupId>org.apache.maven.plugins</groupId>
168-
<artifactId>maven-gpg-plugin</artifactId>
169-
<version>1.5</version>
170-
<executions>
171-
<execution>
172-
<phase>verify</phase>
173-
<goals>
174-
<goal>sign</goal>
175-
</goals>
176-
<configuration>
177-
<keyname>0x7D65CFC9</keyname>
178-
<passphraseServerId>0x7D65CFC9</passphraseServerId>
179-
</configuration>
180-
</execution>
181-
</executions>
182-
</plugin>
183121
</plugins>
184122
</build>
185123

124+
<profiles>
125+
<profile>
126+
<id>release</id>
127+
<build>
128+
<plugins>
129+
130+
<plugin>
131+
<groupId>org.sonatype.plugins</groupId>
132+
<artifactId>nexus-staging-maven-plugin</artifactId>
133+
<version>1.6.7</version>
134+
<extensions>true</extensions>
135+
<configuration>
136+
<serverId>ossrh</serverId>
137+
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
138+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
139+
</configuration>
140+
</plugin>
141+
<plugin>
142+
<groupId>org.apache.maven.plugins</groupId>
143+
<artifactId>maven-source-plugin</artifactId>
144+
<version>2.2.1</version>
145+
<executions>
146+
<execution>
147+
<id>attach-sources</id>
148+
<goals>
149+
<goal>jar-no-fork</goal>
150+
</goals>
151+
</execution>
152+
</executions>
153+
</plugin>
154+
<plugin>
155+
<groupId>org.apache.maven.plugins</groupId>
156+
<artifactId>maven-javadoc-plugin</artifactId>
157+
<version>2.9.1</version>
158+
<configuration>
159+
<show>private</show>
160+
<nohelp>true</nohelp>
161+
<charset>UTF-8</charset>
162+
<encoding>UTF-8</encoding>
163+
<docencoding>UTF-8</docencoding>
164+
<additionalparam>-Xdoclint:none</additionalparam>
165+
</configuration>
166+
<executions>
167+
<execution>
168+
<id>attach-javadocs</id>
169+
<goals>
170+
<goal>jar</goal>
171+
</goals>
172+
</execution>
173+
</executions>
174+
</plugin>
175+
<plugin>
176+
<groupId>org.apache.maven.plugins</groupId>
177+
<artifactId>maven-gpg-plugin</artifactId>
178+
<version>1.5</version>
179+
<executions>
180+
<execution>
181+
<phase>verify</phase>
182+
<goals>
183+
<goal>sign</goal>
184+
</goals>
185+
</execution>
186+
</executions>
187+
</plugin>
188+
</plugins>
189+
</build>
190+
</profile>
191+
</profiles>
192+
186193
</project>

0 commit comments

Comments
 (0)