Skip to content

Commit 36a811c

Browse files
committed
Added required infos to POM, enabled source jars, javadoc and flattening
1 parent 2c7f31e commit 36a811c

File tree

4 files changed

+151
-4
lines changed

4 files changed

+151
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
.classpath
33
*.settings/
44
**/target/
5+
.flattened-pom.xml
56

67

78

bcprov/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111

1212
<artifactId>sshsig-bcprov</artifactId>
1313

14+
<properties>
15+
<maven.deploy.skip>true</maven.deploy.skip>
16+
</properties>
17+
1418
<dependencies>
1519
<dependency>
1620
<groupId>de.profhenry.sshsig</groupId>

i2pcrypto/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111

1212
<artifactId>sshsig.i2pcrypto</artifactId>
1313

14+
<properties>
15+
<maven.deploy.skip>true</maven.deploy.skip>
16+
</properties>
17+
1418
<dependencies>
1519
<dependency>
1620
<groupId>de.profhenry.sshsig</groupId>

pom.xml

Lines changed: 142 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,67 @@
11
<project xmlns="http://maven.apache.org/POM/4.0.0"
22
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">
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
4+
child.project.url.inherit.append.path="false">
45
<modelVersion>4.0.0</modelVersion>
56

67
<groupId>de.profhenry.sshsig</groupId>
78
<artifactId>sshsig-parent</artifactId>
89
<version>1.0.0-SNAPSHOT</version>
910
<packaging>pom</packaging>
1011

12+
<description>
13+
Java implementation of the OpenSSH lightweight signature (and verification) ability.
14+
</description>
15+
<url>https://github.com/profhenry/sshsig</url>
16+
<inceptionYear>2023</inceptionYear>
17+
1118
<licenses>
1219
<license>
13-
<name>Apache License 2.0</name>
20+
<name>Apache-2.0</name>
1421
<url>http://www.spdx.org/licenses/Apache-2.0</url>
22+
<distribution>repo</distribution>
1523
</license>
1624
</licenses>
1725

26+
<developers>
27+
<developer>
28+
<id>profhenry</id>
29+
<name>Jan Henrik Wiesner</name>
30+
<email>github@profhenry.de</email>
31+
<timezone>Europe/Berlin</timezone>
32+
</developer>
33+
</developers>
34+
35+
<scm child.scm.connection.inherit.append.path="false"
36+
child.scm.developerConnection.inherit.append.path="false"
37+
child.scm.url.inherit.append.path="false">
38+
<connection>scm:git:git@github.com:profhenry/sshsig.git</connection>
39+
<url>https://github.com/profhenry/sshsig.git</url>
40+
<developerConnection>scm:git:git@github.com:profhenry/sshsig.git</developerConnection>
41+
<tag>HEAD</tag>
42+
</scm>
43+
44+
<issueManagement>
45+
<system>github</system>
46+
<url>https://github.com/profhenry/sshsig/issues</url>
47+
</issueManagement>
48+
49+
<ciManagement>
50+
<system>github-actions</system>
51+
<url>https://github.com/profhenry/sshsig/actions/workflows/maven.yml</url>
52+
</ciManagement>
53+
54+
<distributionManagement>
55+
<repository>
56+
<id>ossrh</id>
57+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
58+
</repository>
59+
<snapshotRepository>
60+
<id>ossrh</id>
61+
<url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url>
62+
</snapshotRepository>
63+
</distributionManagement>
64+
1865
<properties>
1966
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2067
<maven.compiler.target>1.8</maven.compiler.target>
@@ -94,15 +141,47 @@
94141
<plugin>
95142
<groupId>org.apache.maven.plugins</groupId>
96143
<artifactId>maven-surefire-plugin</artifactId>
97-
<version>3.1.2</version>
144+
<version>3.2.2</version>
145+
</plugin>
146+
<plugin>
147+
<groupId>org.apache.maven.plugins</groupId>
148+
<artifactId>maven-toolchains-plugin</artifactId>
149+
<version>3.1.0</version>
150+
</plugin>
151+
<plugin>
152+
<groupId>org.apache.maven.plugins</groupId>
153+
<artifactId>maven-source-plugin</artifactId>
154+
<version>3.3.0</version>
155+
</plugin>
156+
<plugin>
157+
<groupId>org.apache.maven.plugins</groupId>
158+
<artifactId>maven-javadoc-plugin</artifactId>
159+
<version>3.6.3</version>
160+
</plugin>
161+
<plugin>
162+
<groupId>org.apache.maven.plugins</groupId>
163+
<artifactId>maven-deploy-plugin</artifactId>
164+
<version>3.1.1</version>
165+
<configuration>
166+
<deployAtEnd>true</deployAtEnd>
167+
</configuration>
168+
</plugin>
169+
<plugin>
170+
<groupId>org.codehaus.mojo</groupId>
171+
<artifactId>flatten-maven-plugin</artifactId>
172+
<version>1.5.0</version>
173+
</plugin>
174+
<plugin>
175+
<groupId>org.apache.maven.plugins</groupId>
176+
<artifactId>maven-release-plugin</artifactId>
177+
<version>3.0.1</version>
98178
</plugin>
99179
</plugins>
100180
</pluginManagement>
101181
<plugins>
102182
<plugin>
103183
<groupId>org.apache.maven.plugins</groupId>
104184
<artifactId>maven-toolchains-plugin</artifactId>
105-
<version>3.1.0</version>
106185
<executions>
107186
<execution>
108187
<goals>
@@ -118,6 +197,65 @@
118197
</toolchains>
119198
</configuration>
120199
</plugin>
200+
<plugin>
201+
<groupId>org.apache.maven.plugins</groupId>
202+
<artifactId>maven-source-plugin</artifactId>
203+
<executions>
204+
<execution>
205+
<id>attach-sources</id>
206+
<goals>
207+
<goal>jar-no-fork</goal>
208+
</goals>
209+
</execution>
210+
</executions>
211+
</plugin>
212+
<plugin>
213+
<groupId>org.apache.maven.plugins</groupId>
214+
<artifactId>maven-javadoc-plugin</artifactId>
215+
<executions>
216+
<execution>
217+
<id>attach-javadocs</id>
218+
<goals>
219+
<goal>aggregate-no-fork</goal>
220+
</goals>
221+
</execution>
222+
</executions>
223+
</plugin>
224+
<plugin>
225+
<groupId>org.codehaus.mojo</groupId>
226+
<artifactId>flatten-maven-plugin</artifactId>
227+
<configuration>
228+
<flattenMode>oss</flattenMode>
229+
<flattenDependencyMode>all</flattenDependencyMode>
230+
<pomElements>
231+
<inceptionYear>expand</inceptionYear>
232+
</pomElements>
233+
</configuration>
234+
<executions>
235+
<execution>
236+
<id>flatten</id>
237+
<phase>process-resources</phase>
238+
<goals>
239+
<goal>flatten</goal>
240+
</goals>
241+
</execution>
242+
<execution>
243+
<id>flatten.clean</id>
244+
<phase>clean</phase>
245+
<goals>
246+
<goal>clean</goal>
247+
</goals>
248+
</execution>
249+
</executions>
250+
</plugin>
251+
<plugin>
252+
<groupId>org.apache.maven.plugins</groupId>
253+
<artifactId>maven-deploy-plugin</artifactId>
254+
<configuration>
255+
<skip>true</skip>
256+
</configuration>
257+
<inherited>false</inherited>
258+
</plugin>
121259
</plugins>
122260
</build>
123261

0 commit comments

Comments
 (0)