Skip to content

Commit

Permalink
chore(pom): cleanup pom:
Browse files Browse the repository at this point in the history
- cola-samples/craftsman
  - add missing `test` scope
  - reorder dependencies
  - remove unused dependencies
- cola-archetypes
  - use `maven.deploy.skip` property to simplify `maven-deploy-plugin` config
  - reorder dependencies
  - remove unused dependencies
  • Loading branch information
oldratlee committed Aug 2, 2022
1 parent ed0e277 commit 56999f0
Show file tree
Hide file tree
Showing 18 changed files with 72 additions and 145 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@
<groupId>${groupId}</groupId>
<artifactId>${rootArtifactId}-infrastructure</artifactId>
</dependency>

<dependency>
<groupId>com.alibaba.cola</groupId>
<artifactId>cola-component-catchlog-starter</artifactId>
</dependency>

<!-- JSR 303 Validation -->
<dependency>
<groupId>org.hibernate.validator</groupId>
Expand All @@ -40,17 +42,4 @@
</dependency>
<!-- JSR 303 Validation End-->
</dependencies>

<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
<name>${artifactId}</name>

<dependencies>
<dependency>
<groupId>${groupId}</groupId>
<artifactId>${rootArtifactId}-client</artifactId>
</dependency>

<!-- COLA components -->
<dependency>
<groupId>com.alibaba.cola</groupId>
Expand All @@ -23,22 +28,5 @@
<artifactId>cola-component-exception</artifactId>
</dependency>
<!-- COLA components End-->
<dependency>
<groupId>${groupId}</groupId>
<artifactId>${rootArtifactId}-client</artifactId>
</dependency>
</dependencies>

<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<groupId>${groupId}</groupId>
<artifactId>${rootArtifactId}-domain</artifactId>
</dependency>

<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>${groupId}</groupId>
Expand All @@ -13,6 +14,7 @@
<maven.compiler.target>${maven.compiler.source}</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.deploy.skip>true</maven.deploy.skip>

<cola.components.version>4.4.0-SNAPSHOT</cola.components.version>

Expand Down Expand Up @@ -43,16 +45,6 @@

<dependencyManagement>
<dependencies>
<!--COLA components-->
<dependency>
<groupId>com.alibaba.cola</groupId>
<artifactId>cola-components-bom</artifactId>
<version>${cola.components.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<!--COLA components End-->

<!--Project modules-->
<dependency>
<groupId>${groupId}</groupId>
Expand All @@ -76,7 +68,13 @@
</dependency>
<!--Project modules End-->

<!--Spring Boot-->
<dependency>
<groupId>com.alibaba.cola</groupId>
<artifactId>cola-components-bom</artifactId>
<version>${cola.components.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
Expand All @@ -89,7 +87,6 @@
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>${mybatis-starter.version}</version>
</dependency>
<!--Spring Boot End-->

<!--Validation API-->
<!--
Expand All @@ -109,11 +106,6 @@
<!--Validation API End -->

<!-- Misc -->
<dependency>
<groupId>org.reflections</groupId>
<artifactId>reflections</artifactId>
<version>0.10.2</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
Expand Down Expand Up @@ -144,10 +136,9 @@
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
<version>3.0.0</version>
</plugin>

<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<groupId>${groupId}</groupId>
<artifactId>${rootArtifactId}-app</artifactId>
</dependency>

<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<groupId>${groupId}</groupId>
<artifactId>${rootArtifactId}-app</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
Expand All @@ -27,17 +28,4 @@
<scope>test</scope>
</dependency>
</dependencies>

<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@
<groupId>${groupId}</groupId>
<artifactId>${rootArtifactId}-infrastructure</artifactId>
</dependency>

<dependency>
<groupId>com.alibaba.cola</groupId>
<artifactId>cola-component-catchlog-starter</artifactId>
</dependency>

<!-- JSR 303 Validation -->
<dependency>
<groupId>org.hibernate.validator</groupId>
Expand All @@ -40,17 +42,4 @@
</dependency>
<!-- JSR 303 Validation End-->
</dependencies>

<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
<name>${artifactId}</name>

<dependencies>
<dependency>
<groupId>${groupId}</groupId>
<artifactId>${rootArtifactId}-client</artifactId>
</dependency>

<!-- COLA components -->
<dependency>
<groupId>com.alibaba.cola</groupId>
Expand All @@ -23,22 +28,5 @@
<artifactId>cola-component-exception</artifactId>
</dependency>
<!-- COLA components End-->
<dependency>
<groupId>${groupId}</groupId>
<artifactId>${rootArtifactId}-client</artifactId>
</dependency>
</dependencies>

<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<groupId>${groupId}</groupId>
<artifactId>${rootArtifactId}-domain</artifactId>
</dependency>

<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>${groupId}</groupId>
Expand All @@ -13,6 +14,7 @@
<maven.compiler.target>${maven.compiler.source}</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.deploy.skip>true</maven.deploy.skip>

<cola.components.version>4.4.0-SNAPSHOT</cola.components.version>

Expand Down Expand Up @@ -44,16 +46,6 @@

<dependencyManagement>
<dependencies>
<!--COLA components-->
<dependency>
<groupId>com.alibaba.cola</groupId>
<artifactId>cola-components-bom</artifactId>
<version>${cola.components.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<!--COLA components End-->

<!--Project modules-->
<dependency>
<groupId>${groupId}</groupId>
Expand Down Expand Up @@ -82,7 +74,13 @@
</dependency>
<!--Project modules End-->

<!--Spring Boot-->
<dependency>
<groupId>com.alibaba.cola</groupId>
<artifactId>cola-components-bom</artifactId>
<version>${cola.components.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
Expand All @@ -95,7 +93,6 @@
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>${mybatis-starter.version}</version>
</dependency>
<!--Spring Boot End-->

<!--Validation API-->
<!--
Expand All @@ -115,11 +112,6 @@
<!--Validation API End -->

<!-- Misc -->
<dependency>
<groupId>org.reflections</groupId>
<artifactId>reflections</artifactId>
<version>0.10.2</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
Expand Down Expand Up @@ -149,11 +141,10 @@
<version>3.4.0</version>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
<artifactId>maven-deploy-plugin</artifactId>
<version>3.0.0</version>
</plugin>

<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<groupId>${groupId}</groupId>
<artifactId>${rootArtifactId}-adapter</artifactId>
</dependency>

<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
Expand Down
1 change: 1 addition & 0 deletions cola-samples/craftsman/craftsman-adapter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<groupId>com.alibaba.craftsman</groupId>
<artifactId>craftsman-app</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
Expand Down
10 changes: 6 additions & 4 deletions cola-samples/craftsman/craftsman-app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@
<name>craftsman-app</name>

<dependencies>
<dependency>
<groupId>com.alibaba.cola</groupId>
<artifactId>cola-component-catchlog-starter</artifactId>
</dependency>
<dependency>
<groupId>com.alibaba.craftsman</groupId>
<artifactId>craftsman-client</artifactId>
Expand All @@ -26,6 +22,12 @@
<groupId>com.alibaba.craftsman</groupId>
<artifactId>craftsman-infrastructure</artifactId>
</dependency>

<dependency>
<groupId>com.alibaba.cola</groupId>
<artifactId>cola-component-catchlog-starter</artifactId>
</dependency>

<!-- JSR 303 Validation -->
<dependency>
<groupId>org.hibernate.validator</groupId>
Expand Down
1 change: 1 addition & 0 deletions cola-samples/craftsman/craftsman-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<groupId>com.alibaba.cola</groupId>
<artifactId>cola-component-dto</artifactId>
</dependency>

<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
Expand Down
Loading

0 comments on commit 56999f0

Please sign in to comment.