|
107 | 107 |
|
108 | 108 | <build> |
109 | 109 | <plugins> |
110 | | - |
111 | | - <plugin> |
112 | | - <groupId>org.apache.maven.plugins</groupId> |
113 | | - <artifactId>maven-release-plugin</artifactId> |
114 | | - <version>2.5.1</version> |
115 | | - </plugin> |
116 | | - |
117 | | - <plugin> |
118 | | - <artifactId>maven-compiler-plugin</artifactId> |
119 | | - <version>3.5.1</version> |
120 | | - <configuration> |
121 | | - <source>${jdkVersion}</source> |
122 | | - <target>${jdkVersion}</target> |
123 | | - <compilerVersion>1.5</compilerVersion> |
124 | | - <showDeprecation>true</showDeprecation> |
125 | | - <showWarnings>true</showWarnings> |
126 | | - <debug>true</debug> |
127 | | - <fork>true</fork> |
128 | | - <compilerArgs> |
129 | | - <arg>-Xlint:unchecked</arg> |
130 | | - </compilerArgs> |
131 | | - </configuration> |
132 | | - </plugin> |
133 | | - |
134 | 110 | <plugin> |
135 | | - <groupId>com.github.github</groupId> |
136 | | - <artifactId>site-maven-plugin</artifactId> |
137 | | - <version>0.12</version> |
138 | | - <configuration> |
139 | | - <message>Creating site for ${project.version}</message> |
140 | | - <server>github</server> |
141 | | - </configuration> |
142 | | - <executions> |
143 | | - <execution> |
144 | | - <goals> |
145 | | - <goal>site</goal> |
146 | | - </goals> |
147 | | - <phase>site</phase> |
148 | | - </execution> |
149 | | - </executions> |
150 | | - </plugin> |
151 | | - |
152 | | - <plugin> |
153 | | - <groupId>org.apache.maven.plugins</groupId> |
154 | | - <artifactId>maven-surefire-plugin</artifactId> |
155 | | - <version>2.17</version> |
| 111 | + <groupId>org.sonatype.plugins</groupId> |
| 112 | + <artifactId>nexus-staging-maven-plugin</artifactId> |
| 113 | + <version>1.6.7</version> |
| 114 | + <extensions>true</extensions> |
156 | 115 | <configuration> |
157 | | - <groups>cn.jpush.api.FastTests</groups> |
158 | | - <argLine>-Dfile.encoding=UTF-8</argLine> |
159 | | - <excludes> |
160 | | - <exclude>**/mock/*Test.java</exclude> |
161 | | - </excludes> |
| 116 | + <serverId>ossrh</serverId> |
| 117 | + <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl> |
| 118 | + <autoReleaseAfterClose>true</autoReleaseAfterClose> |
162 | 119 | </configuration> |
163 | | - <dependencies> |
164 | | - <dependency> |
165 | | - <groupId>org.apache.maven.surefire</groupId> |
166 | | - <artifactId>surefire-junit47</artifactId> |
167 | | - <version>2.17</version> |
168 | | - </dependency> |
169 | | - </dependencies> |
170 | 120 | </plugin> |
171 | | - |
172 | | - <!-- 参考 https://docs.github.com/cn/actions/language-and-framework-guides/publishing-java-packages-with-maven#about-package-configuration --> |
173 | | - <!-- 参考 https://github.com/actions/setup-java --> |
174 | | - <!-- 参考 https://central.sonatype.org/pages/apache-maven.html --> |
175 | | - |
176 | | - <!-- Javadoc和源代码附件 --> |
177 | 121 | <plugin> |
178 | 122 | <groupId>org.apache.maven.plugins</groupId> |
179 | 123 | <artifactId>maven-source-plugin</artifactId> |
|
200 | 144 | </execution> |
201 | 145 | </executions> |
202 | 146 | </plugin> |
203 | | - |
204 | | - <!-- GPG签名组件 --> |
205 | 147 | <plugin> |
206 | 148 | <groupId>org.apache.maven.plugins</groupId> |
207 | 149 | <artifactId>maven-gpg-plugin</artifactId> |
|
213 | 155 | <goals> |
214 | 156 | <goal>sign</goal> |
215 | 157 | </goals> |
| 158 | + <configuration> |
| 159 | + <!-- Prevent gpg from using pinentry programs --> |
| 160 | + <gpgArguments> |
| 161 | + <arg>--pinentry-mode</arg> |
| 162 | + <arg>loopback</arg> |
| 163 | + </gpgArguments> |
| 164 | + </configuration> |
216 | 165 | </execution> |
217 | 166 | </executions> |
218 | 167 | </plugin> |
219 | | - |
220 | | - <!-- Nexus Staging Maven插件,用于部署和发布 --> |
221 | | - <plugin> |
222 | | - <groupId>org.sonatype.plugins</groupId> |
223 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
224 | | - <version>1.6.7</version> |
225 | | - <extensions>true</extensions> |
226 | | - <configuration> |
227 | | - <serverId>ossrh</serverId> |
228 | | - <nexusUrl>https://oss.sonatype.org/</nexusUrl> |
229 | | - <!-- 手动release --> |
230 | | - <autoReleaseAfterClose>false</autoReleaseAfterClose> |
231 | | - </configuration> |
232 | | - </plugin> |
233 | | - |
234 | 168 | </plugins> |
235 | 169 | </build> |
236 | 170 |
|
237 | 171 | <distributionManagement> |
238 | 172 | <snapshotRepository> |
239 | 173 | <id>ossrh</id> |
240 | | - <url>https://oss.sonatype.org/content/repositories/snapshots/</url> |
| 174 | + <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url> |
241 | 175 | </snapshotRepository> |
242 | 176 | <repository> |
243 | 177 | <id>ossrh</id> |
244 | | - <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
| 178 | + <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
245 | 179 | </repository> |
246 | 180 | </distributionManagement> |
247 | 181 |
|
248 | | - <reporting> |
249 | | - <plugins> |
250 | | - |
251 | | - <plugin> |
252 | | - <groupId>org.apache.maven.plugins</groupId> |
253 | | - <artifactId>maven-project-info-reports-plugin</artifactId> |
254 | | - <version>2.8.1</version> |
255 | | - <reportSets> |
256 | | - <reportSet> |
257 | | - <reports> |
258 | | - <report>dependencies</report> |
259 | | - <report>license</report> |
260 | | - <report>scm</report> |
261 | | - </reports> |
262 | | - </reportSet> |
263 | | - </reportSets> |
264 | | - </plugin> |
265 | | - |
266 | | - <plugin> |
267 | | - <groupId>org.apache.maven.plugins</groupId> |
268 | | - <artifactId>maven-javadoc-plugin</artifactId> |
269 | | - <version>2.10.3</version> |
270 | | - <configuration> |
271 | | - <overview>resources/javadoc-overview.html</overview> |
272 | | - </configuration> |
273 | | - </plugin> |
274 | | - |
275 | | - </plugins> |
276 | | - </reporting> |
277 | | - |
278 | 182 | </project> |
0 commit comments