Skip to content

Commit cb59bb1

Browse files
committed
Refactor the pom.xml
1 parent a7e184a commit cb59bb1

File tree

3 files changed

+58
-43
lines changed

3 files changed

+58
-43
lines changed

aliyun-spring-boot-dependencies/pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,19 @@
127127
<artifactId>aliyun-oss-spring-boot-starter</artifactId>
128128
<version>${revision}</version>
129129
</dependency>
130+
130131
<dependency>
131132
<groupId>com.alibaba.cloud</groupId>
132133
<artifactId>aliyun-rds-spring-boot-starter</artifactId>
133134
<version>${revision}</version>
134135
</dependency>
135136

137+
<dependency>
138+
<groupId>com.alibaba.cloud</groupId>
139+
<artifactId>aliyun-schedulerx-spring-boot-starter</artifactId>
140+
<version>${revision}</version>
141+
</dependency>
142+
136143
<dependency>
137144
<groupId>com.alibaba.cloud</groupId>
138145
<artifactId>aliyun-sms-spring-boot-starter</artifactId>

aliyun-spring-boot-parent/pom.xml

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,10 @@
3131
<maven-source-plugin.version>3.0.1</maven-source-plugin.version>
3232
<maven-javadoc-plugin.version>3.1.1</maven-javadoc-plugin.version>
3333
<maven-jar-plugin.version>3.0.2</maven-jar-plugin.version>
34-
<maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
35-
<flatten-maven-plugin.version>1.1.0</flatten-maven-plugin.version>
3634
<maven-deploy-plugin.version>2.8.2</maven-deploy-plugin.version>
3735
<maven-surefire-plugin.version>2.21.0</maven-surefire-plugin.version>
3836
<gmavenplus-plugin.version>1.6</gmavenplus-plugin.version>
3937
<maven-jacoco-plugin.version>0.8.3</maven-jacoco-plugin.version>
40-
<maven-deploy-plugin.version>2.8.2</maven-deploy-plugin.version>
4138
</properties>
4239

4340
<dependencyManagement>
@@ -145,46 +142,6 @@
145142
</execution>
146143
</executions>
147144
</plugin>
148-
149-
<plugin>
150-
<groupId>org.apache.maven.plugins</groupId>
151-
<artifactId>maven-gpg-plugin</artifactId>
152-
<version>${maven-gpg-plugin.version}</version>
153-
<executions>
154-
<execution>
155-
<phase>verify</phase>
156-
<goals>
157-
<goal>sign</goal>
158-
</goals>
159-
</execution>
160-
</executions>
161-
</plugin>
162-
163-
<plugin>
164-
<groupId>org.codehaus.mojo</groupId>
165-
<artifactId>flatten-maven-plugin</artifactId>
166-
<version>${flatten-maven-plugin.version}</version>
167-
<configuration>
168-
<updatePomFile>true</updatePomFile>
169-
<flattenMode>resolveCiFriendliesOnly</flattenMode>
170-
</configuration>
171-
<executions>
172-
<execution>
173-
<id>flatten</id>
174-
<phase>process-resources</phase>
175-
<goals>
176-
<goal>flatten</goal>
177-
</goals>
178-
</execution>
179-
<execution>
180-
<id>flatten.clean</id>
181-
<phase>clean</phase>
182-
<goals>
183-
<goal>clean</goal>
184-
</goals>
185-
</execution>
186-
</executions>
187-
</plugin>
188145
</plugins>
189146
</build>
190147
</profile>

pom.xml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,58 @@
8888

8989
<properties>
9090
<revision>1.0.0</revision>
91+
<maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
92+
<flatten-maven-plugin.version>1.1.0</flatten-maven-plugin.version>
9193
</properties>
9294

95+
<profiles>
96+
<profile>
97+
<id>release</id>
98+
<build>
99+
<plugins>
100+
<plugin>
101+
<groupId>org.apache.maven.plugins</groupId>
102+
<artifactId>maven-gpg-plugin</artifactId>
103+
<version>${maven-gpg-plugin.version}</version>
104+
<executions>
105+
<execution>
106+
<phase>verify</phase>
107+
<goals>
108+
<goal>sign</goal>
109+
</goals>
110+
</execution>
111+
</executions>
112+
</plugin>
113+
114+
<plugin>
115+
<groupId>org.codehaus.mojo</groupId>
116+
<artifactId>flatten-maven-plugin</artifactId>
117+
<version>${flatten-maven-plugin.version}</version>
118+
<configuration>
119+
<updatePomFile>true</updatePomFile>
120+
<flattenMode>resolveCiFriendliesOnly</flattenMode>
121+
</configuration>
122+
<executions>
123+
<execution>
124+
<id>flatten</id>
125+
<phase>process-resources</phase>
126+
<goals>
127+
<goal>flatten</goal>
128+
</goals>
129+
</execution>
130+
<execution>
131+
<id>flatten.clean</id>
132+
<phase>clean</phase>
133+
<goals>
134+
<goal>clean</goal>
135+
</goals>
136+
</execution>
137+
</executions>
138+
</plugin>
139+
</plugins>
140+
</build>
141+
</profile>
142+
</profiles>
143+
93144

94145
</project>

0 commit comments

Comments
 (0)