3737 <url >https://github.com/purejava/keepassxc-proxy-access/tree/master</url >
3838 </scm >
3939
40+ <distributionManagement >
41+ <snapshotRepository >
42+ <id >ossrh</id >
43+ <url >https://oss.sonatype.org/content/repositories/snapshots</url >
44+ </snapshotRepository >
45+ <repository >
46+ <id >ossrh</id >
47+ <url >https://oss.sonatype.org/service/local/staging/deploy/maven2/</url >
48+ </repository >
49+ </distributionManagement >
50+
4051 <properties >
4152 <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
53+ <maven .compiler.source>1.9</maven .compiler.source>
54+ <maven .compiler.target>1.9</maven .compiler.target>
4255
4356 <tweetnacl .version>1.1.2</tweetnacl .version>
4457 <junixsocket .version>2.3.3</junixsocket .version>
116129 </dependencies >
117130
118131 <build >
132+ <pluginManagement ><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
133+ <plugins >
134+ <!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
135+ <plugin >
136+ <artifactId >maven-clean-plugin</artifactId >
137+ <version >3.1.0</version >
138+ </plugin >
139+ <!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
140+ <plugin >
141+ <artifactId >maven-resources-plugin</artifactId >
142+ <version >3.1.0</version >
143+ <configuration >
144+ <includeEmptyDirs >false</includeEmptyDirs >
145+ </configuration >
146+ </plugin >
147+ <plugin >
148+ <artifactId >maven-compiler-plugin</artifactId >
149+ <version >3.8.1</version >
150+ </plugin >
151+ <plugin >
152+ <artifactId >maven-surefire-plugin</artifactId >
153+ <version >3.0.0-M5</version >
154+ </plugin >
155+ <plugin >
156+ <artifactId >maven-jar-plugin</artifactId >
157+ <version >3.2.0</version >
158+ <configuration >
159+ <skipIfEmpty >true</skipIfEmpty >
160+ </configuration >
161+ </plugin >
162+ <plugin >
163+ <artifactId >maven-install-plugin</artifactId >
164+ <version >3.0.0-M1</version >
165+ </plugin >
166+ <plugin >
167+ <artifactId >maven-deploy-plugin</artifactId >
168+ <version >3.0.0-M1</version >
169+ </plugin >
170+ <!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle -->
171+ <plugin >
172+ <artifactId >maven-site-plugin</artifactId >
173+ <version >3.9.1</version >
174+ </plugin >
175+ <plugin >
176+ <artifactId >maven-project-info-reports-plugin</artifactId >
177+ <version >3.1.1</version >
178+ </plugin >
179+ </plugins >
180+ </pluginManagement >
181+
119182 <plugins >
120183 <plugin >
121184 <groupId >org.apache.maven.plugins</groupId >
122185 <artifactId >maven-compiler-plugin</artifactId >
123186 <version >3.8.1</version >
124187 <configuration >
125- <release >14</release >
188+ <source >14</source >
189+ <target >14</target >
126190 </configuration >
127191 </plugin >
128192 <plugin >
129193 <groupId >org.apache.maven.plugins</groupId >
130- <artifactId >maven-surefire-plugin</artifactId >
131- <version >3.0.0-M5</version >
132- </plugin >
133- <plugin >
134194 <artifactId >maven-source-plugin</artifactId >
135195 <version >3.2.0</version >
136196 <executions >
143203 </executions >
144204 </plugin >
145205 <plugin >
206+ <groupId >org.apache.maven.plugins</groupId >
146207 <artifactId >maven-javadoc-plugin</artifactId >
147208 <version >3.2.0</version >
148209 <executions >
151212 <goals >
152213 <goal >jar</goal >
153214 </goals >
215+ <configuration >
216+ <failOnError >false</failOnError >
217+ </configuration >
154218 </execution >
155219 </executions >
220+ </plugin >
221+ <plugin >
222+ <groupId >org.apache.maven.plugins</groupId >
223+ <artifactId >maven-gpg-plugin</artifactId >
224+ <version >1.6</version >
225+ <executions >
226+ <execution >
227+ <id >sign-artifacts</id >
228+ <phase >verify</phase >
229+ <goals >
230+ <goal >sign</goal >
231+ </goals >
232+ <configuration >
233+ <gpgArguments >
234+ <arg >--pinentry-mode</arg >
235+ <arg >loopback</arg >
236+ </gpgArguments >
237+ </configuration >
238+ </execution >
239+ </executions >
240+ </plugin >
241+ <plugin >
242+ <groupId >org.sonatype.plugins</groupId >
243+ <artifactId >nexus-staging-maven-plugin</artifactId >
244+ <version >1.6.8</version >
245+ <extensions >true</extensions >
156246 <configuration >
157- <quiet >true</quiet >
158- <release >14</release >
159- <tags >
160- <!-- workaround for "unknown tag: implNote", see https://blog.codefx.org/java/new-javadoc-tags/#Maven -->
161- <tag >
162- <name >apiNote</name >
163- <placement >a</placement >
164- <head >API Note:</head >
165- </tag >
166- <tag >
167- <name >implSpec</name >
168- <placement >a</placement >
169- <head >Implementation Requirements:</head >
170- </tag >
171- <tag >
172- <name >implNote</name >
173- <placement >a</placement >
174- <head >Implementation Note:</head >
175- </tag >
176- <tag >
177- <name >param</name >
178- </tag >
179- <tag >
180- <name >return</name >
181- </tag >
182- <tag >
183- <name >throws</name >
184- </tag >
185- <tag >
186- <name >since</name >
187- </tag >
188- <tag >
189- <name >version</name >
190- </tag >
191- <tag >
192- <name >serialData</name >
193- </tag >
194- <tag >
195- <name >see</name >
196- </tag >
197- </tags >
247+ <serverId >ossrh</serverId >
248+ <nexusUrl >https://oss.sonatype.org/</nexusUrl >
249+ <!-- Set this to true and the release will automatically proceed and sync to Central Repository will follow -->
250+ <autoReleaseAfterClose >false</autoReleaseAfterClose >
198251 </configuration >
199252 </plugin >
253+ <plugin >
254+ <groupId >org.apache.maven.plugins</groupId >
255+ <artifactId >maven-surefire-plugin</artifactId >
256+ <version >2.22.2</version >
257+ <dependencies >
258+ <!-- https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-engine -->
259+ <dependency >
260+ <groupId >org.junit.jupiter</groupId >
261+ <artifactId >junit-jupiter-engine</artifactId >
262+ <version >5.7.0</version >
263+ </dependency >
264+ </dependencies >
265+ </plugin >
200266 </plugins >
201267 </build >
202-
203- <profiles >
204- <profile >
205- <id >sign</id >
206- <build >
207- <plugins >
208- <plugin >
209- <artifactId >maven-gpg-plugin</artifactId >
210- <version >1.6</version >
211- <executions >
212- <execution >
213- <id >sign-artifacts</id >
214- <phase >verify</phase >
215- <goals >
216- <goal >sign</goal >
217- </goals >
218- <configuration >
219- <gpgArguments >
220- <arg >--pinentry-mode</arg >
221- <arg >loopback</arg >
222- </gpgArguments >
223- </configuration >
224- </execution >
225- </executions >
226- </plugin >
227- </plugins >
228- </build >
229- </profile >
230-
231- <profile >
232- <id >deploy-central</id >
233- <distributionManagement >
234- <repository >
235- <id >ossrh</id >
236- <name >Maven Central</name >
237- <url >https://oss.sonatype.org/service/local/staging/deploy/maven2/</url >
238- </repository >
239- </distributionManagement >
240- <build >
241- <plugins >
242- <plugin >
243- <groupId >org.sonatype.plugins</groupId >
244- <artifactId >nexus-staging-maven-plugin</artifactId >
245- <version >1.6.8</version >
246- <extensions >true</extensions >
247- <configuration >
248- <serverId >ossrh</serverId >
249- <nexusUrl >https://oss.sonatype.org/</nexusUrl >
250- <autoReleaseAfterClose >false</autoReleaseAfterClose >
251- </configuration >
252- </plugin >
253- </plugins >
254- </build >
255- </profile >
256-
257- <profile >
258- <id >deploy-github</id >
259- <distributionManagement >
260- <repository >
261- <id >github</id >
262- <name >GitHub Packages</name >
263- <url >https://maven.pkg.github.com/purejava/keepassxc-proxy-access</url >
264- </repository >
265- </distributionManagement >
266- </profile >
267-
268- </profiles >
269268</project >
0 commit comments