Skip to content

Commit 70a7c41

Browse files
Prepare for first release to nexus
1 parent 578a1a9 commit 70a7c41

File tree

1 file changed

+109
-1
lines changed

1 file changed

+109
-1
lines changed

pom.xml

Lines changed: 109 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,39 @@
77
<description>Dependency free Java library to parse nmap xml output into POJO</description>
88
<properties>
99
<maven.compiler.release>17</maven.compiler.release>
10+
<maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
11+
<maven-surefire-plugin.version>3.0.0-M4</maven-surefire-plugin.version>
12+
<maven-release-plugin.version>3.0.0-M1</maven-release-plugin.version>
13+
<maven-javadoc-plugin.version>3.2.0</maven-javadoc-plugin.version>
14+
<sonar-maven-plugin.version>3.7.0.1746</sonar-maven-plugin.version>
15+
<nexus-staging-maven-plugin.version>1.6.13</nexus-staging-maven-plugin.version>
16+
<maven-source-plugin.version>3.2.0</maven-source-plugin.version>
17+
<maven-gpg-plugin.version>3.0.1</maven-gpg-plugin.version>
1018
</properties>
19+
<url>https://github.com/martinspielmann/java-nmap-xml-parser</url>
20+
21+
<licenses>
22+
<license>
23+
<name>The Apache Software License, Version 2.0</name>
24+
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
25+
<distribution>repo</distribution>
26+
</license>
27+
</licenses>
28+
29+
<scm>
30+
<connection>scm:git:[email protected]:martinspielmann/java-nmap-xml-parser.git</connection>
31+
<developerConnection>scm:git:[email protected]:martinspielmann/java-nmap-xml-parser.git</developerConnection>
32+
<url>https://github.com/martinspielmann/java-nmap-xml-parser</url>
33+
</scm>
34+
35+
<developers>
36+
<developer>
37+
<id>martinspielmann</id>
38+
<name>Martin Spielmann</name>
39+
<email>[email protected]</email>
40+
</developer>
41+
</developers>
42+
1143
<dependencies>
1244
<dependency>
1345
<groupId>org.junit.jupiter</groupId>
@@ -21,11 +53,87 @@
2153
<plugin>
2254
<groupId>org.apache.maven.plugins</groupId>
2355
<artifactId>maven-compiler-plugin</artifactId>
24-
<version>3.8.0</version>
56+
<version>${maven-compiler-plugin.version}</version>
2557
<configuration>
2658
<release>${maven.compiler.release}</release>
2759
</configuration>
2860
</plugin>
61+
<plugin>
62+
<groupId>org.apache.maven.plugins</groupId>
63+
<artifactId>maven-release-plugin</artifactId>
64+
<version>${maven-release-plugin.version}</version>
65+
</plugin>
2966
</plugins>
3067
</build>
68+
69+
<profiles>
70+
<profile>
71+
<id>ossrh</id>
72+
<build>
73+
<plugins>
74+
<plugin>
75+
<groupId>org.sonatype.plugins</groupId>
76+
<artifactId>nexus-staging-maven-plugin</artifactId>
77+
<version>${nexus-staging-maven-plugin.version}</version>
78+
<extensions>true</extensions>
79+
<configuration>
80+
<serverId>ossrh</serverId>
81+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
82+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
83+
</configuration>
84+
</plugin>
85+
<plugin>
86+
<groupId>org.apache.maven.plugins</groupId>
87+
<artifactId>maven-source-plugin</artifactId>
88+
<version>${maven-source-plugin.version}</version>
89+
<executions>
90+
<execution>
91+
<id>attach-sources</id>
92+
<goals>
93+
<goal>jar-no-fork</goal>
94+
</goals>
95+
</execution>
96+
</executions>
97+
</plugin>
98+
<plugin>
99+
<groupId>org.apache.maven.plugins</groupId>
100+
<artifactId>maven-javadoc-plugin</artifactId>
101+
<version>${maven-javadoc-plugin.version}</version>
102+
<executions>
103+
<execution>
104+
<id>attach-javadocs</id>
105+
<goals>
106+
<goal>jar</goal>
107+
</goals>
108+
</execution>
109+
</executions>
110+
</plugin>
111+
<plugin>
112+
<groupId>org.apache.maven.plugins</groupId>
113+
<artifactId>maven-gpg-plugin</artifactId>
114+
<version>${maven-gpg-plugin.version}</version>
115+
<executions>
116+
<execution>
117+
<id>sign-artifacts</id>
118+
<phase>verify</phase>
119+
<goals>
120+
<goal>sign</goal>
121+
</goals>
122+
</execution>
123+
</executions>
124+
</plugin>
125+
</plugins>
126+
</build>
127+
<distributionManagement>
128+
<snapshotRepository>
129+
<id>ossrh</id>
130+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
131+
</snapshotRepository>
132+
<repository>
133+
<id>ossrh</id>
134+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
135+
</repository>
136+
</distributionManagement>
137+
</profile>
138+
</profiles>
31139
</project>

0 commit comments

Comments
 (0)