Skip to content

Commit 21e8109

Browse files
Heiko KieselWeltraumschaf
authored andcommitted
Update pom.xml
Signed-off-by: Heiko Kiesel <heiko.kiesel@iteratec.com>
1 parent 040254d commit 21e8109

File tree

1 file changed

+121
-45
lines changed

1 file changed

+121
-45
lines changed

pom.xml

Lines changed: 121 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
43
<modelVersion>4.0.0</modelVersion>
54

65
<groupId>io.securecodebox</groupId>
@@ -13,6 +12,13 @@
1312
</description>
1413
<url>https://github.com/secureCodeBox/defectdojo-client-java</url>
1514

15+
<licenses>
16+
<license>
17+
<name>The Apache License, Version 2.0</name>
18+
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
19+
</license>
20+
</licenses>
21+
1622
<organization>
1723
<name>secureCodeBox</name>
1824
<url>https://www.securecodebox.io/</url>
@@ -23,8 +29,8 @@
2329
</prerequisites>
2430

2531
<scm>
26-
<connection>scm:git:git://github.com/secureCodeBox/defectdojo-client-java.git</connection>
27-
<developerConnection>scm:git:git@github.com/secureCodeBox/defectdojo-client-java.git</developerConnection>
32+
<connection>scm:git:https://github.com/secureCodeBox/defectdojo-client-java.git</connection>
33+
<developerConnection>scm:git:https://github.com/secureCodeBox/defectdojo-client-java.git</developerConnection>
2834
<url>https://github.com/secureCodeBox/defectdojo-client-java.git</url>
2935
<tag>HEAD</tag>
3036
</scm>
@@ -65,7 +71,7 @@
6571
<project.build.version.target>17</project.build.version.target>
6672
<sonar.jacoco.reportPaths>${project.build.directory}/jacoco.exec</sonar.jacoco.reportPaths>
6773

68-
<!-- Dependnecy versions: -->
74+
<!-- Dependency versions: -->
6975
<com.fasterxml.jackson.version>2.15.2</com.fasterxml.jackson.version>
7076
<org.springframework.version>5.3.28</org.springframework.version>
7177
<org.mockito.version>5.4.0</org.mockito.version>
@@ -166,6 +172,48 @@
166172
</dependency>
167173
</dependencies>
168174

175+
<distributionManagement>
176+
<snapshotRepository>
177+
<id>ossrh</id>
178+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
179+
</snapshotRepository>
180+
<repository>
181+
<id>ossrh</id>
182+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
183+
</repository>
184+
</distributionManagement>
185+
186+
<profiles>
187+
<profile>
188+
<id>release</id>
189+
<build>
190+
<plugins>
191+
<plugin>
192+
<artifactId>maven-gpg-plugin</artifactId>
193+
<version>3.1.0</version>
194+
<executions>
195+
<execution>
196+
<id>sign-artifacts</id>
197+
<phase>verify</phase>
198+
<goals>
199+
<goal>sign</goal>
200+
</goals>
201+
<configuration>
202+
<!-- This is required to make sure the plugin does not stop asking for -->
203+
<!-- user input on the passphrase -->
204+
<gpgArguments>
205+
<arg>--pinentry-mode</arg>
206+
<arg>loopback</arg>
207+
</gpgArguments>
208+
</configuration>
209+
</execution>
210+
</executions>
211+
</plugin>
212+
</plugins>
213+
</build>
214+
</profile>
215+
</profiles>
216+
169217
<build>
170218
<pluginManagement>
171219
<plugins>
@@ -183,25 +231,17 @@
183231
</plugin>
184232

185233
<plugin>
186-
<artifactId>maven-javadoc-plugin</artifactId>
187-
<version>3.5.0</version>
188-
<configuration>
189-
<bottom>
190-
Copyright &amp;copy; {currentYear} the secureCodeBox Authors. All Rights Reserved.
191-
</bottom>
192-
193-
<doctitle>${project.name} - ${project.version}</doctitle>
194-
<windowtitle>${project.name} - ${project.version}</windowtitle>
195-
<show>private</show>
196-
<charset>${project.build.sourceEncoding}</charset>
197-
<docencoding>${project.build.sourceEncoding}</docencoding>
198-
<source>${project.build.version.source}</source>
199-
200-
<links>
201-
<link>https://docs.oracle.com/en/java/javase/17/docs/api/</link>
202-
</links>
203-
<failOnError>false</failOnError>
204-
</configuration>
234+
<artifactId>maven-source-plugin</artifactId>
235+
<version>3.3.0</version>
236+
<executions>
237+
<execution>
238+
<!-- https://central.sonatype.org/publish/publish-maven/#javadoc-and-sources-attachments -->
239+
<id>attach-sources</id>
240+
<goals>
241+
<goal>jar-no-fork</goal>
242+
</goals>
243+
</execution>
244+
</executions>
205245
</plugin>
206246

207247
<plugin>
@@ -234,26 +274,11 @@
234274
<plugin>
235275
<artifactId>maven-release-plugin</artifactId>
236276
<version>3.0.1</version>
237-
</plugin>
238-
239-
<plugin>
240-
<artifactId>maven-gpg-plugin</artifactId>
241-
<version>3.1.0</version>
242-
</plugin>
243-
244-
<plugin>
245-
<artifactId>maven-source-plugin</artifactId>
246-
<version>3.3.0</version>
247-
<executions>
248-
<execution>
249-
<!-- https://maven.apache.org/plugin-developers/cookbook/attach-source-javadoc-artifacts.html -->
250-
<id>attach-sources</id>
251-
252-
<goals>
253-
<goal>jar</goal>
254-
</goals>
255-
</execution>
256-
</executions>
277+
<configuration>
278+
<checkModificationExcludes>
279+
<checkModificationExclude>mvnw</checkModificationExclude> <!-- skip wrapper -->
280+
</checkModificationExcludes>
281+
</configuration>
257282
</plugin>
258283

259284
<plugin>
@@ -287,22 +312,73 @@
287312
<artifactId>maven-surefire-plugin</artifactId>
288313
<version>3.1.2</version>
289314
</plugin>
315+
316+
<plugin>
317+
<groupId>org.sonatype.plugins</groupId>
318+
<artifactId>nexus-staging-maven-plugin</artifactId>
319+
<version>1.6.13</version>
320+
<extensions>true</extensions>
321+
<configuration>
322+
<serverId>ossrh</serverId>
323+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
324+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
325+
</configuration>
326+
</plugin>
327+
328+
<plugin>
329+
<artifactId>maven-javadoc-plugin</artifactId>
330+
<version>3.5.0</version>
331+
<executions>
332+
<execution>
333+
<id>attach-javadocs</id>
334+
<goals>
335+
<goal>jar</goal>
336+
</goals>
337+
</execution>
338+
</executions>
339+
<configuration>
340+
<bottom>
341+
Copyright &amp;copy; {currentYear} the secureCodeBox Authors. All Rights Reserved.
342+
</bottom>
343+
344+
<doctitle>${project.name} - ${project.version}</doctitle>
345+
<windowtitle>${project.name} - ${project.version}</windowtitle>
346+
<show>private</show>
347+
<charset>${project.build.sourceEncoding}</charset>
348+
<docencoding>${project.build.sourceEncoding}</docencoding>
349+
<source>${project.build.version.source}</source>
350+
351+
<links>
352+
<link>https://docs.oracle.com/en/java/javase/17/docs/api/</link>
353+
</links>
354+
<failOnError>false</failOnError>
355+
</configuration>
356+
</plugin>
290357
</plugins>
291358
</pluginManagement>
292359

293360
<plugins>
361+
<plugin>
362+
<artifactId>maven-surefire-plugin</artifactId>
363+
</plugin>
364+
294365
<plugin>
295366
<artifactId>maven-source-plugin</artifactId>
296367
</plugin>
297368

298369
<plugin>
299-
<artifactId>maven-surefire-plugin</artifactId>
370+
<artifactId>maven-javadoc-plugin</artifactId>
300371
</plugin>
301372

302373
<plugin>
303374
<groupId>org.jacoco</groupId>
304375
<artifactId>jacoco-maven-plugin</artifactId>
305376
</plugin>
377+
378+
<plugin>
379+
<groupId>org.sonatype.plugins</groupId>
380+
<artifactId>nexus-staging-maven-plugin</artifactId>
381+
</plugin>
306382
</plugins>
307383
</build>
308384
</project>

0 commit comments

Comments
 (0)