Skip to content

Commit a51df0e

Browse files
committed
🔥 不再依赖minbox-parent模块
1 parent 1376ffb commit a51df0e

File tree

2 files changed

+96
-29
lines changed

2 files changed

+96
-29
lines changed

api-boot-project/api-boot-dependencies/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<xml-maven-plugin.version>1.0.2</xml-maven-plugin.version>
2222
<minbox-datasource-switch.version>1.0.4</minbox-datasource-switch.version>
2323
<ssh-agent.version>1.0.4</ssh-agent.version>
24+
<maven-jar-plugin.version>3.5.0</maven-jar-plugin.version>
2425
</properties>
2526
<dependencyManagement>
2627
<dependencies>

pom.xml

Lines changed: 95 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
44
<modelVersion>4.0.0</modelVersion>
5-
<parent>
6-
<groupId>org.minbox.framework</groupId>
7-
<artifactId>minbox-parent</artifactId>
8-
<version>1.1.0</version>
9-
<relativePath/>
10-
</parent>
115
<packaging>pom</packaging>
126
<modules>
137
<module>api-boot-project</module>
@@ -19,10 +13,15 @@
1913
<name>ApiBoot Build</name>
2014
<properties>
2115
<revision>2.3.12-SNAPSHOT</revision>
22-
<jdk.version>1.8</jdk.version>
16+
<jdk.version>11</jdk.version>
2317
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2418
<maven.compiler.encoding>UTF-8</maven.compiler.encoding>
2519
<cobertura-maven-plugin.version>2.7</cobertura-maven-plugin.version>
20+
<maven-gpg-plugin.version>3.2.7</maven-gpg-plugin.version>
21+
<maven.source.plugin.version>3.3.1</maven.source.plugin.version>
22+
<maven-javadoc-plugin.version>3.11.1</maven-javadoc-plugin.version>
23+
<flatten-maven-plugin.version>1.2.5</flatten-maven-plugin.version>
24+
<minbox-bom.version>1.1.0</minbox-bom.version>
2625
</properties>
2726
<description>
2827
ApiBoot is a component service solution.
@@ -43,14 +42,21 @@
4342
<email>hengboy@minbox.org</email>
4443
</developer>
4544
</developers>
46-
<!--配置拉取仓库地址-->
45+
<dependencyManagement>
46+
<dependencies>
47+
<dependency>
48+
<groupId>org.minbox.framework</groupId>
49+
<artifactId>minbox-bom</artifactId>
50+
<version>${minbox-bom.version}</version>
51+
<type>pom</type>
52+
<scope>import</scope>
53+
</dependency>
54+
</dependencies>
55+
</dependencyManagement>
4756
<repositories>
4857
<repository>
49-
<id>aliyun-central</id>
50-
<url>https://maven.aliyun.com/repository/central</url>
51-
<releases>
52-
<enabled>true</enabled>
53-
</releases>
58+
<id>central</id>
59+
<url>https://repo.maven.apache.org/maven2</url>
5460
</repository>
5561
<repository>
5662
<id>snapshots</id>
@@ -59,38 +65,98 @@
5965
<enabled>true</enabled>
6066
</snapshots>
6167
</repository>
62-
<repository>
63-
<id>yuqiyu-snapshots</id>
64-
<url>http://maven.yuqiyu.com/repository/maven-snapshots/</url>
65-
<snapshots>
66-
<enabled>true</enabled>
67-
</snapshots>
68-
</repository>
6968
</repositories>
7069
<build>
7170
<plugins>
72-
<!--jdk version-->
7371
<plugin>
7472
<groupId>org.apache.maven.plugins</groupId>
7573
<artifactId>maven-compiler-plugin</artifactId>
76-
<version>3.10.1</version>
74+
<version>3.11.0</version>
7775
<configuration>
7876
<source>${jdk.version}</source>
7977
<target>${jdk.version}</target>
78+
<encoding>${project.build.sourceEncoding}</encoding>
8079
</configuration>
8180
</plugin>
8281
<plugin>
8382
<groupId>org.codehaus.mojo</groupId>
84-
<artifactId>cobertura-maven-plugin</artifactId>
85-
<version>${cobertura-maven-plugin.version}</version>
83+
<artifactId>flatten-maven-plugin</artifactId>
84+
<version>${flatten-maven-plugin.version}</version>
85+
<configuration>
86+
<updatePomFile>true</updatePomFile>
87+
<flattenMode>resolveCiFriendliesOnly</flattenMode>
88+
</configuration>
89+
<executions>
90+
<execution>
91+
<id>flatten</id>
92+
<phase>process-resources</phase>
93+
<goals>
94+
<goal>flatten</goal>
95+
</goals>
96+
</execution>
97+
<execution>
98+
<id>flatten.clean</id>
99+
<phase>clean</phase>
100+
<goals>
101+
<goal>clean</goal>
102+
</goals>
103+
</execution>
104+
</executions>
105+
</plugin>
106+
<!--Source-->
107+
<plugin>
108+
<groupId>org.apache.maven.plugins</groupId>
109+
<artifactId>maven-source-plugin</artifactId>
110+
<version>${maven.source.plugin.version}</version>
111+
<executions>
112+
<execution>
113+
<id>package</id>
114+
<goals>
115+
<goal>jar-no-fork</goal>
116+
</goals>
117+
</execution>
118+
</executions>
119+
</plugin>
120+
<!--Javadoc-->
121+
<plugin>
122+
<groupId>org.apache.maven.plugins</groupId>
123+
<artifactId>maven-javadoc-plugin</artifactId>
124+
<version>${maven-javadoc-plugin.version}</version>
125+
<configuration>
126+
<encoding>${project.build.sourceEncoding}</encoding>
127+
</configuration>
128+
<executions>
129+
<execution>
130+
<id>package</id>
131+
<goals>
132+
<goal>jar</goal>
133+
</goals>
134+
</execution>
135+
</executions>
136+
</plugin>
137+
<plugin>
138+
<groupId>org.sonatype.central</groupId>
139+
<artifactId>central-publishing-maven-plugin</artifactId>
140+
<version>0.9.0</version>
141+
<extensions>true</extensions>
86142
<configuration>
87-
<formats>
88-
<format>html</format>
89-
<format>xml</format>
90-
</formats>
91-
<check />
143+
<publishingServerId>hengyu</publishingServerId>
92144
</configuration>
93145
</plugin>
146+
<!--GPG-->
147+
<plugin>
148+
<artifactId>maven-gpg-plugin</artifactId>
149+
<version>${maven-gpg-plugin.version}</version>
150+
<executions>
151+
<execution>
152+
<id>sign-artifacts</id>
153+
<phase>verify</phase>
154+
<goals>
155+
<goal>sign</goal>
156+
</goals>
157+
</execution>
158+
</executions>
159+
</plugin>
94160
</plugins>
95161
</build>
96162
</project>

0 commit comments

Comments
 (0)