|
34 | 34 |
|
35 | 35 | <distributionManagement> |
36 | 36 | <snapshotRepository> |
37 | | - <id>ossrh</id> |
38 | | - <name>Sonatype Nexus snapshot repository</name> |
39 | | - <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
| 37 | + <id>sonatype-nexus-snapshots</id> |
| 38 | + <name>Sonatype Nexus Snapshots</name> |
| 39 | + <url>https://oss.sonatype.org/content/repositories/snapshots/</url> |
40 | 40 | </snapshotRepository> |
| 41 | + <repository> |
| 42 | + <id>sonatype-nexus-staging</id> |
| 43 | + <name>Nexus Release Repository</name> |
| 44 | + <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
| 45 | + </repository> |
41 | 46 | </distributionManagement> |
42 | 47 |
|
43 | 48 | <parent> |
|
65 | 70 | <version>1.6.3</version> |
66 | 71 | <extensions>true</extensions> |
67 | 72 | <configuration> |
68 | | - <serverId>ossrh</serverId> |
| 73 | + <serverId>sonatype-nexus-staging</serverId> |
69 | 74 | <nexusUrl>https://oss.sonatype.org/</nexusUrl> |
70 | 75 | <autoReleaseAfterClose>true</autoReleaseAfterClose> |
71 | 76 | </configuration> |
|
99 | 104 | <artifactId>maven-release-plugin</artifactId> |
100 | 105 | <version>2.2.2</version> |
101 | 106 | </plugin> |
102 | | - <plugin> |
103 | | - <groupId>org.apache.maven.plugins</groupId> |
104 | | - <artifactId>maven-deploy-plugin</artifactId> |
105 | | - <version>2.7</version> |
106 | | - </plugin> |
107 | 107 | </plugins> |
| 108 | + <pluginManagement> |
| 109 | + <plugins> |
| 110 | + <plugin> |
| 111 | + <groupId>org.apache.maven.plugins</groupId> |
| 112 | + <artifactId>maven-release-plugin</artifactId> |
| 113 | + <version>2.2.2</version> |
| 114 | + <configuration> |
| 115 | + <useReleaseProfile>false</useReleaseProfile> |
| 116 | + <arguments>-Psonatype-oss-release</arguments> |
| 117 | + </configuration> |
| 118 | + </plugin> |
| 119 | + </plugins> |
| 120 | + </pluginManagement> |
108 | 121 | </build> |
| 122 | + <profiles> |
| 123 | + <profile> |
| 124 | + <id>sonatype-oss-release</id> |
| 125 | + <build> |
| 126 | + <plugins> |
| 127 | + <plugin> |
| 128 | + <groupId>org.apache.maven.plugins</groupId> |
| 129 | + <artifactId>maven-source-plugin</artifactId> |
| 130 | + </plugin> |
| 131 | + <plugin> |
| 132 | + <groupId>org.apache.maven.plugins</groupId> |
| 133 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 134 | + </plugin> |
| 135 | + <plugin> |
| 136 | + <groupId>org.apache.maven.plugins</groupId> |
| 137 | + <artifactId>maven-gpg-plugin</artifactId> |
| 138 | + <executions> |
| 139 | + <execution> |
| 140 | + <id>sign-artifacts</id> |
| 141 | + <phase>verify</phase> |
| 142 | + <goals> |
| 143 | + <goal>sign</goal> |
| 144 | + </goals> |
| 145 | + </execution> |
| 146 | + </executions> |
| 147 | + </plugin> |
| 148 | + </plugins> |
| 149 | + </build> |
| 150 | + </profile> |
| 151 | + </profiles> |
109 | 152 | <dependencies> |
110 | 153 | <dependency> |
111 | 154 | <groupId>org.json</groupId> |
|
0 commit comments