Skip to content

Commit 3b64296

Browse files
committed
Fixing issues found by Maven Central.
1 parent 8cfded7 commit 3b64296

File tree

5 files changed

+154
-18
lines changed

5 files changed

+154
-18
lines changed

commons/pom.xml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,34 @@
146146
<autoReleaseAfterClose>true</autoReleaseAfterClose>
147147
</configuration>
148148
</plugin>
149+
<plugin>
150+
<groupId>org.apache.maven.plugins</groupId>
151+
<artifactId>maven-javadoc-plugin</artifactId>
152+
<version>3.1.1</version>
153+
<executions>
154+
<execution>
155+
<id>attach-javadocs</id>
156+
<goals>
157+
<goal>jar</goal>
158+
</goals>
159+
<phase>package</phase>
160+
</execution>
161+
</executions>
162+
</plugin>
163+
<plugin>
164+
<groupId>org.apache.maven.plugins</groupId>
165+
<artifactId>maven-source-plugin</artifactId>
166+
<version>3.3.0</version>
167+
<executions>
168+
<execution>
169+
<id>attach-sources</id>
170+
<goals>
171+
<goal>jar-no-fork</goal>
172+
</goals>
173+
<phase>package</phase>
174+
</execution>
175+
</executions>
176+
</plugin>
149177
</plugins>
150178
</build>
151179
<distributionManagement>

library/pom.xml

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,11 @@
99
<version>0.2.0-SNAPSHOT</version>
1010
<relativePath>../parent-pom</relativePath>
1111
</parent>
12-
1312
<artifactId>library</artifactId>
1413
<packaging>jar</packaging>
1514
<name>Poly API client library</name>
1615
<url>https://polyapi.io</url>
1716
<description>Java client library for Poly API</description>
18-
1917
<developers>
2018
<developer>
2119
<id>polyapi</id>
@@ -25,15 +23,13 @@
2523
<organizationUrl>https://polyapi.io</organizationUrl>
2624
</developer>
2725
</developers>
28-
2926
<licenses>
3027
<license>
3128
<name>MIT</name>
3229
<distribution>repo</distribution>
3330
<url>https://spdx.org/licenses/MIT.html</url>
3431
</license>
3532
</licenses>
36-
3733
<dependencies>
3834
<dependency>
3935
<groupId>io.polyapi</groupId>
@@ -96,7 +92,6 @@
9692
<version>20231013</version>
9793
</dependency>
9894
</dependencies>
99-
10095
<build>
10196
<plugins>
10297
<plugin>
@@ -150,6 +145,34 @@
150145
<autoReleaseAfterClose>true</autoReleaseAfterClose>
151146
</configuration>
152147
</plugin>
148+
<plugin>
149+
<groupId>org.apache.maven.plugins</groupId>
150+
<artifactId>maven-javadoc-plugin</artifactId>
151+
<version>3.1.1</version>
152+
<executions>
153+
<execution>
154+
<id>attach-javadocs</id>
155+
<goals>
156+
<goal>jar</goal>
157+
</goals>
158+
<phase>package</phase>
159+
</execution>
160+
</executions>
161+
</plugin>
162+
<plugin>
163+
<groupId>org.apache.maven.plugins</groupId>
164+
<artifactId>maven-source-plugin</artifactId>
165+
<version>3.3.0</version>
166+
<executions>
167+
<execution>
168+
<id>attach-sources</id>
169+
<goals>
170+
<goal>jar-no-fork</goal>
171+
</goals>
172+
<phase>package</phase>
173+
</execution>
174+
</executions>
175+
</plugin>
153176
</plugins>
154177
</build>
155178
<distributionManagement>

parent-pom/pom.xml

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
<name>Poly API Java parent POM</name>
1111
<url>https://polyapi.io</url>
1212
<description>Java client library for Poly API</description>
13-
1413
<developers>
1514
<developer>
1615
<id>polyapi</id>
@@ -20,15 +19,18 @@
2019
<organizationUrl>https://polyapi.io</organizationUrl>
2120
</developer>
2221
</developers>
23-
2422
<licenses>
2523
<license>
2624
<name>MIT</name>
2725
<distribution>repo</distribution>
2826
<url>https://spdx.org/licenses/MIT.html</url>
2927
</license>
3028
</licenses>
31-
29+
<scm>
30+
<connection>scm:git:[email protected]:polyapi/polyapi-java.git</connection>
31+
<developerConnection>scm:git:[email protected]:polyapi/polyapi-java.git</developerConnection>
32+
<url>https://github.com/polyapi/polyapi-java</url>
33+
</scm>
3234
<properties>
3335
<maven.compiler.source>17</maven.compiler.source>
3436
<maven.compiler.target>17</maven.compiler.target>
@@ -37,7 +39,6 @@
3739
<slf4j.version>2.0.9</slf4j.version>
3840
<powermock.version>2.0.9</powermock.version>
3941
</properties>
40-
4142
<dependencies>
4243

4344
<!-- JUnit dependencies -->
@@ -133,6 +134,34 @@
133134
<autoReleaseAfterClose>true</autoReleaseAfterClose>
134135
</configuration>
135136
</plugin>
137+
<plugin>
138+
<groupId>org.apache.maven.plugins</groupId>
139+
<artifactId>maven-javadoc-plugin</artifactId>
140+
<version>3.1.1</version>
141+
<executions>
142+
<execution>
143+
<id>attach-javadocs</id>
144+
<goals>
145+
<goal>jar</goal>
146+
</goals>
147+
<phase>package</phase>
148+
</execution>
149+
</executions>
150+
</plugin>
151+
<plugin>
152+
<groupId>org.apache.maven.plugins</groupId>
153+
<artifactId>maven-source-plugin</artifactId>
154+
<version>3.3.0</version>
155+
<executions>
156+
<execution>
157+
<id>attach-sources</id>
158+
<goals>
159+
<goal>jar-no-fork</goal>
160+
</goals>
161+
<phase>package</phase>
162+
</execution>
163+
</executions>
164+
</plugin>
136165
</plugins>
137166
</build>
138167
<distributionManagement>

polyapi-maven-plugin/pom.xml

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,11 @@
99
<version>0.2.0-SNAPSHOT</version>
1010
<relativePath>../parent-pom</relativePath>
1111
</parent>
12-
1312
<artifactId>polyapi-maven-plugin</artifactId>
1413
<packaging>maven-plugin</packaging>
1514
<name>Poly API Maven plugin</name>
1615
<url>https://polyapi.io</url>
1716
<description>Maven plugin to run handle Poly API functions.</description>
18-
1917
<developers>
2018
<developer>
2119
<id>polyapi</id>
@@ -25,15 +23,13 @@
2523
<organizationUrl>https://polyapi.io</organizationUrl>
2624
</developer>
2725
</developers>
28-
2926
<licenses>
3027
<license>
3128
<name>MIT</name>
3229
<distribution>repo</distribution>
3330
<url>https://spdx.org/licenses/MIT.html</url>
3431
</license>
3532
</licenses>
36-
3733
<dependencies>
3834
<dependency>
3935
<groupId>org.apache.maven</groupId>
@@ -155,6 +151,34 @@
155151
<autoReleaseAfterClose>true</autoReleaseAfterClose>
156152
</configuration>
157153
</plugin>
154+
<plugin>
155+
<groupId>org.apache.maven.plugins</groupId>
156+
<artifactId>maven-javadoc-plugin</artifactId>
157+
<version>3.1.1</version>
158+
<executions>
159+
<execution>
160+
<id>attach-javadocs</id>
161+
<goals>
162+
<goal>jar</goal>
163+
</goals>
164+
<phase>package</phase>
165+
</execution>
166+
</executions>
167+
</plugin>
168+
<plugin>
169+
<groupId>org.apache.maven.plugins</groupId>
170+
<artifactId>maven-source-plugin</artifactId>
171+
<version>3.3.0</version>
172+
<executions>
173+
<execution>
174+
<id>attach-sources</id>
175+
<goals>
176+
<goal>jar-no-fork</goal>
177+
</goals>
178+
<phase>package</phase>
179+
</execution>
180+
</executions>
181+
</plugin>
158182
</plugins>
159183
</build>
160184
<distributionManagement>

pom.xml

Lines changed: 37 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
6-
76
<groupId>io.polyapi</groupId>
87
<artifactId>polyapi-java</artifactId>
98
<version>0.2.0-SNAPSHOT</version>
@@ -14,25 +13,30 @@
1413
<module>library</module>
1514
<module>polyapi-maven-plugin</module>
1615
</modules>
17-
1816
<name>Poly API Java libraries</name>
1917
<url>https://polyapi.io</url>
2018
<description>Java libraries for Poly API</description>
21-
19+
<developers>
20+
<developer>
21+
<id>polyapi</id>
22+
<name>PolyAPI</name>
23+
<email>[email protected]</email>
24+
<organization>PolyAPI</organization>
25+
<organizationUrl>https://polyapi.io</organizationUrl>
26+
</developer>
27+
</developers>
2228
<licenses>
2329
<license>
2430
<name>MIT</name>
2531
<distribution>repo</distribution>
2632
<url>https://spdx.org/licenses/MIT.html</url>
2733
</license>
2834
</licenses>
29-
3035
<scm>
3136
<connection>scm:git:[email protected]:polyapi/polyapi-java.git</connection>
3237
<developerConnection>scm:git:[email protected]:polyapi/polyapi-java.git</developerConnection>
3338
<url>https://github.com/polyapi/polyapi-java</url>
3439
</scm>
35-
3640
<build>
3741
<plugins>
3842
<plugin>
@@ -80,6 +84,34 @@
8084
<autoReleaseAfterClose>true</autoReleaseAfterClose>
8185
</configuration>
8286
</plugin>
87+
<plugin>
88+
<groupId>org.apache.maven.plugins</groupId>
89+
<artifactId>maven-javadoc-plugin</artifactId>
90+
<version>3.1.1</version>
91+
<executions>
92+
<execution>
93+
<id>attach-javadocs</id>
94+
<goals>
95+
<goal>jar</goal>
96+
</goals>
97+
<phase>package</phase>
98+
</execution>
99+
</executions>
100+
</plugin>
101+
<plugin>
102+
<groupId>org.apache.maven.plugins</groupId>
103+
<artifactId>maven-source-plugin</artifactId>
104+
<version>3.3.0</version>
105+
<executions>
106+
<execution>
107+
<id>attach-sources</id>
108+
<goals>
109+
<goal>jar-no-fork</goal>
110+
</goals>
111+
<phase>package</phase>
112+
</execution>
113+
</executions>
114+
</plugin>
83115
</plugins>
84116
</build>
85117
<distributionManagement>

0 commit comments

Comments
 (0)