|
37 | 37 | <maven-shade-plugin.version>3.6.0</maven-shade-plugin.version> |
38 | 38 | <maven-install-plugin.version>3.1.4</maven-install-plugin.version> |
39 | 39 | <!-- deploy maven repository --> |
40 | | - <nexus-staging-maven-plugin.version>1.6.13</nexus-staging-maven-plugin.version> |
41 | 40 | <maven-deploy-plugin.version>3.1.1</maven-deploy-plugin.version> |
42 | 41 | <maven-source-plugin.version>3.3.0</maven-source-plugin.version> |
43 | 42 | <maven-javadoc-plugin.version>3.5.0</maven-javadoc-plugin.version> |
44 | 43 | <maven-gpg-plugin.version>3.1.0</maven-gpg-plugin.version> |
45 | | - <versions-maven-plugin.version>2.16.0</versions-maven-plugin.version> |
| 44 | + <central-publishing-maven-plugin.version>0.8.0</central-publishing-maven-plugin.version> |
46 | 45 | <!-- encoding and java version --> |
47 | 46 | <project.build.sourceEncoding>${file.encoding}</project.build.sourceEncoding> |
48 | 47 | <maven.compiler.encoding>${file.encoding}</maven.compiler.encoding> |
|
179 | 178 | <version>${maven-jar-plugin.version}</version> |
180 | 179 | </plugin> |
181 | 180 |
|
| 181 | + |
| 182 | + <!-- deploy to maven repository should specify these tag.(部署到maven中央仓库必须指定下面的标签) --> |
182 | 183 | <plugin> |
183 | 184 | <groupId>org.apache.maven.plugins</groupId> |
184 | 185 | <artifactId>maven-deploy-plugin</artifactId> |
185 | 186 | <version>${maven-deploy-plugin.version}</version> |
186 | 187 | </plugin> |
| 188 | + |
| 189 | + <plugin> |
| 190 | + <groupId>org.apache.maven.plugins</groupId> |
| 191 | + <artifactId>maven-source-plugin</artifactId> |
| 192 | + <version>${maven-source-plugin.version}</version> |
| 193 | + <executions> |
| 194 | + <execution> |
| 195 | + <id>attach-sources</id> |
| 196 | + <goals> |
| 197 | + <goal>jar-no-fork</goal> |
| 198 | + </goals> |
| 199 | + </execution> |
| 200 | + </executions> |
| 201 | + </plugin> |
| 202 | + |
| 203 | + <plugin> |
| 204 | + <groupId>org.apache.maven.plugins</groupId> |
| 205 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 206 | + <version>${maven-javadoc-plugin.version}</version> |
| 207 | + <executions> |
| 208 | + <execution> |
| 209 | + <id>attach-javadocs</id> |
| 210 | + <goals> |
| 211 | + <goal>jar</goal> |
| 212 | + </goals> |
| 213 | + </execution> |
| 214 | + </executions> |
| 215 | + </plugin> |
| 216 | + |
| 217 | + <plugin> |
| 218 | + <groupId>org.apache.maven.plugins</groupId> |
| 219 | + <artifactId>maven-gpg-plugin</artifactId> |
| 220 | + <version>${maven-gpg-plugin.version}</version> |
| 221 | + <executions> |
| 222 | + <execution> |
| 223 | + <id>sign-artifacts</id> |
| 224 | + <phase>verify</phase> |
| 225 | + <goals> |
| 226 | + <goal>sign</goal> |
| 227 | + </goals> |
| 228 | + <configuration> |
| 229 | + <gpgArguments> |
| 230 | + <arg>--pinentry-mode</arg> |
| 231 | + <arg>loopback</arg> |
| 232 | + </gpgArguments> |
| 233 | + </configuration> |
| 234 | + </execution> |
| 235 | + </executions> |
| 236 | + </plugin> |
| 237 | + |
| 238 | + <plugin> |
| 239 | + <groupId>org.sonatype.central</groupId> |
| 240 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 241 | + <version>${central-publishing-maven-plugin.version}</version> |
| 242 | + <extensions>true</extensions> |
| 243 | + <configuration> |
| 244 | + <publishingServerId>central</publishingServerId> |
| 245 | + <autoPublish>true</autoPublish> |
| 246 | + </configuration> |
| 247 | + </plugin> |
| 248 | + |
187 | 249 | </plugins> |
188 | 250 | </build> |
189 | 251 |
|
|
213 | 275 | </license> |
214 | 276 | </licenses> |
215 | 277 |
|
216 | | - <scm> |
217 | | - <connection>https://github.com/zfoo-project/zfoo.git</connection> |
218 | | - < developerConnection>scm:git:ssh:// [email protected]:zfoo-project/zfoo.git</ developerConnection> |
219 | | - <url>https://github.com/zfoo-project/zfoo</url> |
220 | | - </scm> |
221 | | - |
222 | | - <profiles> |
223 | | - <profile> |
224 | | - <id>ossrh</id> |
225 | | - <build> |
226 | | - <plugins> |
227 | | - <plugin> |
228 | | - <groupId>org.sonatype.plugins</groupId> |
229 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
230 | | - <version>${nexus-staging-maven-plugin.version}</version> |
231 | | - <extensions>true</extensions> |
232 | | - <configuration> |
233 | | - <serverId>ossrh</serverId> |
234 | | - <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl> |
235 | | - <autoReleaseAfterClose>true</autoReleaseAfterClose> |
236 | | - </configuration> |
237 | | - </plugin> |
238 | | - |
239 | | - <plugin> |
240 | | - <groupId>org.apache.maven.plugins</groupId> |
241 | | - <artifactId>maven-source-plugin</artifactId> |
242 | | - <version>${maven-source-plugin.version}</version> |
243 | | - <executions> |
244 | | - <execution> |
245 | | - <id>attach-sources</id> |
246 | | - <goals> |
247 | | - <goal>jar-no-fork</goal> |
248 | | - </goals> |
249 | | - </execution> |
250 | | - </executions> |
251 | | - </plugin> |
252 | | - |
253 | | - <plugin> |
254 | | - <groupId>org.apache.maven.plugins</groupId> |
255 | | - <artifactId>maven-javadoc-plugin</artifactId> |
256 | | - <version>${maven-javadoc-plugin.version}</version> |
257 | | - <executions> |
258 | | - <execution> |
259 | | - <id>attach-javadocs</id> |
260 | | - <goals> |
261 | | - <goal>jar</goal> |
262 | | - </goals> |
263 | | - </execution> |
264 | | - </executions> |
265 | | - </plugin> |
266 | | - |
267 | | - <plugin> |
268 | | - <groupId>org.apache.maven.plugins</groupId> |
269 | | - <artifactId>maven-gpg-plugin</artifactId> |
270 | | - <version>${maven-gpg-plugin.version}</version> |
271 | | - <executions> |
272 | | - <execution> |
273 | | - <id>sign-artifacts</id> |
274 | | - <phase>verify</phase> |
275 | | - <goals> |
276 | | - <goal>sign</goal> |
277 | | - </goals> |
278 | | - </execution> |
279 | | - </executions> |
280 | | - </plugin> |
281 | | - |
282 | | - </plugins> |
283 | | - </build> |
284 | | - |
285 | | - <distributionManagement> |
286 | | - <repository> |
287 | | - <id>ossrh</id> |
288 | | - <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
289 | | - </repository> |
290 | | - </distributionManagement> |
291 | | - </profile> |
292 | | - </profiles> |
293 | 278 | </project> |
0 commit comments