Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Commit ea53d7e

Browse files
committed
Refactored pom.xml
1 parent 9ff5094 commit ea53d7e

File tree

1 file changed

+106
-32
lines changed

1 file changed

+106
-32
lines changed

pom.xml

Lines changed: 106 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,84 @@
55

66
<groupId>com.xdev-software</groupId>
77
<artifactId>xapi-db-mysql-5</artifactId>
8-
<version>0.0.1-SNAPSHOT</version>
8+
<version>1.0.0-SNAPSHOT</version>
99
<packaging>jar</packaging>
1010

1111
<name>SqlEngine Database Adapter MySQL 5</name>
12+
<description>SqlEngine Database Adapter MySQL 5</description>
13+
<url>https://github.com/xdev-software/xapi-db-mysql-5</url>
1214

15+
<scm>
16+
<url>https://github.com/xdev-software/xapi-db-mysql-5</url>
17+
<connection>https://github.com/xdev-software/xapi-db-mysql-5.git</connection>
18+
</scm>
1319

20+
<inceptionYear>2003</inceptionYear>
21+
22+
<organization>
23+
<name>XDEV Software</name>
24+
<url>https://xdev-software.com</url>
25+
</organization>
26+
27+
<developers>
28+
<developer>
29+
<name>XDEV Software</name>
30+
<organization>XDEV Software</organization>
31+
<url>https://www.xdev-software.com</url>
32+
</developer>
33+
</developers>
34+
1435
<licenses>
1536
<license>
1637
<name>GNU Lesser General Public License version 3</name>
1738
<url>https://www.gnu.org/licenses/lgpl-3.0.en.html</url>
39+
<distribution>repo</distribution>
1840
</license>
19-
</licenses>
41+
</licenses>
2042

2143
<properties>
44+
<javaVersion>1.8</javaVersion>
45+
2246
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2347
<license.licenseName>lgpl_v3</license.licenseName>
24-
<maven.compiler.source>1.8</maven.compiler.source>
25-
<maven.compiler.target>1.8</maven.compiler.target>
48+
<maven.compiler.source>${javaVersion}</maven.compiler.source>
49+
<maven.compiler.target>${javaVersion}</maven.compiler.target>
2650
</properties>
2751

28-
<organization>
29-
<name>XDEV Software</name>
30-
<url>https://xdev-software.com</url>
31-
</organization>
32-
<inceptionYear>2003</inceptionYear>
52+
<repositories>
53+
<!-- The order of definitions matters. Explicitly defining central here
54+
to make sure it has the highest priority. -->
55+
<repository>
56+
<id>central</id>
57+
<url>https://repo.maven.apache.org/maven2</url>
58+
<snapshots>
59+
<enabled>false</enabled>
60+
</snapshots>
61+
</repository>
62+
</repositories>
63+
64+
<pluginRepositories>
65+
<!-- The order of definitions matters. Explicitly defining central here
66+
to make sure it has the highest priority. -->
67+
<pluginRepository>
68+
<id>central</id>
69+
<url>https://repo.maven.apache.org/maven2</url>
70+
<snapshots>
71+
<enabled>false</enabled>
72+
</snapshots>
73+
</pluginRepository>
74+
</pluginRepositories>
75+
76+
<distributionManagement>
77+
<snapshotRepository>
78+
<id>ossrh</id>
79+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
80+
</snapshotRepository>
81+
<repository>
82+
<id>ossrh</id>
83+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
84+
</repository>
85+
</distributionManagement>
3386

3487
<dependencies>
3588
<dependency>
@@ -47,65 +100,54 @@
47100
<dependency>
48101
<groupId>junit</groupId>
49102
<artifactId>junit</artifactId>
50-
<version>4.13.1</version>
103+
<version>4.13.2</version>
51104
<scope>test</scope>
52105
</dependency>
53106
</dependencies>
54107

55-
56108
<build>
57109
<plugins>
58-
59110
<plugin>
60111
<groupId>org.apache.maven.plugins</groupId>
61112
<artifactId>maven-clean-plugin</artifactId>
62113
<version>3.1.0</version>
63114
</plugin>
115+
64116
<plugin>
65117
<groupId>org.apache.maven.plugins</groupId>
66118
<artifactId>maven-deploy-plugin</artifactId>
67119
<version>3.0.0-M1</version>
68120
</plugin>
121+
69122
<plugin>
70123
<groupId>org.apache.maven.plugins</groupId>
71124
<artifactId>maven-install-plugin</artifactId>
72125
<version>3.0.0-M1</version>
73126
</plugin>
127+
74128
<plugin>
75129
<groupId>org.apache.maven.plugins</groupId>
76130
<artifactId>maven-jar-plugin</artifactId>
77131
<version>3.2.0</version>
78132
</plugin>
133+
79134
<plugin>
80135
<groupId>org.apache.maven.plugins</groupId>
81136
<artifactId>maven-resources-plugin</artifactId>
82137
<version>3.2.0</version>
83138
</plugin>
139+
84140
<plugin>
85141
<groupId>org.apache.maven.plugins</groupId>
86142
<artifactId>maven-site-plugin</artifactId>
87143
<version>3.9.1</version>
88144
</plugin>
89145

90-
<plugin>
91-
<groupId>org.apache.maven.plugins</groupId>
92-
<artifactId>maven-source-plugin</artifactId>
93-
<version>3.2.1</version>
94-
<executions>
95-
<execution>
96-
<id>attach-sources</id>
97-
<phase>verify</phase>
98-
<goals>
99-
<goal>jar-no-fork</goal>
100-
</goals>
101-
</execution>
102-
</executions>
103-
</plugin>
104-
105146
<plugin>
106147
<artifactId>maven-surefire-plugin</artifactId>
107148
<version>3.0.0-M5</version>
108149
</plugin>
150+
109151
<plugin>
110152
<groupId>org.apache.maven.plugins</groupId>
111153
<artifactId>maven-enforcer-plugin</artifactId>
@@ -122,7 +164,7 @@
122164
<version>3.5.4</version>
123165
</requireMavenVersion>
124166
<requireJavaVersion>
125-
<version>1.8</version>
167+
<version>${javaVersion}</version>
126168
</requireJavaVersion>
127169
</rules>
128170
</configuration>
@@ -135,8 +177,8 @@
135177
<version>3.8.1</version>
136178
<configuration>
137179
<compilerId>eclipse</compilerId>
138-
<source>1.8</source>
139-
<target>1.8</target>
180+
<source>${javaVersion}</source>
181+
<target>${javaVersion}</target>
140182
</configuration>
141183
<dependencies>
142184
<dependency>
@@ -151,7 +193,6 @@
151193
<groupId>org.codehaus.mojo</groupId>
152194
<artifactId>license-maven-plugin</artifactId>
153195
<version>2.0.0</version>
154-
155196
<executions>
156197
<execution>
157198
<id>first</id>
@@ -168,7 +209,40 @@
168209
</execution>
169210
</executions>
170211
</plugin>
171-
212+
213+
<plugin>
214+
<groupId>org.apache.maven.plugins</groupId>
215+
<artifactId>maven-javadoc-plugin</artifactId>
216+
<version>3.3.0</version>
217+
<executions>
218+
<execution>
219+
<id>attach-javadocs</id>
220+
<phase>verify</phase>
221+
<goals>
222+
<goal>jar</goal>
223+
</goals>
224+
</execution>
225+
</executions>
226+
<configuration>
227+
<quiet>true</quiet>
228+
<doclint>none</doclint>
229+
</configuration>
230+
</plugin>
231+
232+
<plugin>
233+
<groupId>org.apache.maven.plugins</groupId>
234+
<artifactId>maven-source-plugin</artifactId>
235+
<version>3.2.1</version>
236+
<executions>
237+
<execution>
238+
<id>attach-sources</id>
239+
<phase>verify</phase>
240+
<goals>
241+
<goal>jar-no-fork</goal>
242+
</goals>
243+
</execution>
244+
</executions>
245+
</plugin>
172246
</plugins>
173247
</build>
174248

0 commit comments

Comments
 (0)