Skip to content

Commit

Permalink
! unify/improve pom format
Browse files Browse the repository at this point in the history
- unify pom elements order: groupId, artifactId, version, packaging, name, url, etc
- remove redundant version element in submodule
- specify <packaging>jar</packaging> element explicitly in submodule
- fix indentation
  • Loading branch information
oldratlee committed Jan 5, 2021
1 parent beb2538 commit 721043f
Show file tree
Hide file tree
Showing 29 changed files with 79 additions and 82 deletions.
3 changes: 1 addition & 2 deletions cola-archetypes/cola-archetype-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@
<artifactId>cola-framework-archetype-service</artifactId>
<version>4.0.0</version>
<packaging>jar</packaging>

<name>cola-archetype-service</name>
<url>https://github.com/alibaba/COLA</url>
<description>Cola framework archetype-service</description>
<url>https://github.com/alibaba/COLA</url>

<distributionManagement>
<snapshotRepository>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</parent>

<artifactId>${artifactId}</artifactId>
<version>${version}</version>
<packaging>jar</packaging>
<name>${artifactId}</name>

<dependencies>
Expand Down Expand Up @@ -42,15 +42,15 @@
</dependencies>

<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<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 @@ -9,7 +9,7 @@
</parent>

<artifactId>${artifactId}</artifactId>
<version>${version}</version>
<packaging>jar</packaging>
<name>${parentArtifactId}-client</name>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</parent>

<artifactId>${artifactId}</artifactId>
<version>${version}</version>
<packaging>jar</packaging>
<name>${artifactId}</name>

<dependencies>
Expand All @@ -30,15 +30,15 @@
</dependencies>

<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<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 @@ -9,7 +9,7 @@
</parent>

<artifactId>${artifactId}</artifactId>
<version>${version}</version>
<packaging>jar</packaging>
<name>${artifactId}</name>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@

<groupId>${groupId}</groupId>
<artifactId>${artifactId}</artifactId>
<packaging>pom</packaging>
<version>${version}</version>
<packaging>pom</packaging>
<name>${artifactId}</name>

<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

<mybatis-starter.version>1.3.1</mybatis-starter.version>
<spring-boot.version>2.1.3.RELEASE</spring-boot.version>
<cola.components.version>1.0.0</cola.components.version>
Expand Down
3 changes: 1 addition & 2 deletions cola-archetypes/cola-archetype-web/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
<artifactId>cola-framework-archetype-web</artifactId>
<version>4.0.0</version>
<packaging>maven-archetype</packaging>

<name>cola-archetype-web</name>
<url>https://github.com/alibaba/COLA</url>
<description>Cola framework archetype-web</description>
<url>https://github.com/alibaba/COLA</url>

<distributionManagement>
<snapshotRepository>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</parent>

<artifactId>${artifactId}</artifactId>
<version>${version}</version>
<packaging>jar</packaging>
<name>${artifactId}</name>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</parent>

<artifactId>${artifactId}</artifactId>
<version>${version}</version>
<packaging>jar</packaging>
<name>${artifactId}</name>

<dependencies>
Expand Down Expand Up @@ -42,15 +42,15 @@
</dependencies>

<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<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 @@ -9,7 +9,7 @@
</parent>

<artifactId>${artifactId}</artifactId>
<version>${version}</version>
<packaging>jar</packaging>
<name>${parentArtifactId}-client</name>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</parent>

<artifactId>${artifactId}</artifactId>
<version>${version}</version>
<packaging>jar</packaging>
<name>${artifactId}</name>

<dependencies>
Expand All @@ -30,15 +30,15 @@
</dependencies>

<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<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 @@ -9,7 +9,7 @@
</parent>

<artifactId>${artifactId}</artifactId>
<version>${version}</version>
<packaging>jar</packaging>
<name>${artifactId}</name>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@

<groupId>${groupId}</groupId>
<artifactId>${artifactId}</artifactId>
<packaging>pom</packaging>
<version>${version}</version>
<packaging>pom</packaging>
<name>${artifactId}</name>

<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

<mybatis-starter.version>1.3.1</mybatis-starter.version>
<spring-boot.version>2.1.3.RELEASE</spring-boot.version>
<cola.component.version>1.0.0</cola.component.version>
Expand Down
2 changes: 1 addition & 1 deletion cola-archetypes/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

<groupId>com.alibaba.cola</groupId>
<artifactId>cola-archeytpes</artifactId>
<packaging>pom</packaging>
<version>1.0.0</version>
<packaging>pom</packaging>
<name>cola-archeytpes</name>

<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<artifactId>cola-normal-component-archetype</artifactId>
<version>1.0.0</version>
<packaging>jar</packaging>

<name>cola-normal-component-archetype</name>
<description>COLA normal componet archetype</description>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<artifactId>cola-starter-component-archetype</artifactId>
<version>1.0.0</version>
<packaging>jar</packaging>

<name>cola-starter-component-archetype</name>

<build>
Expand Down
2 changes: 1 addition & 1 deletion cola-components/cola-component-catchlog-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<name>cola-component-catchlog-starter</name>
<groupId>com.alibaba.cola</groupId>
<artifactId>cola-component-catchlog-starter</artifactId>
<version>1.0.0</version>
<packaging>jar</packaging>
<name>cola-component-catchlog-starter</name>

<properties>
<maven.compiler.source>1.8</maven.compiler.source>
Expand Down
2 changes: 1 addition & 1 deletion cola-components/cola-component-domain-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<name>cola-component-domain-starter</name>
<groupId>com.alibaba.cola</groupId>
<artifactId>cola-component-domain-starter</artifactId>
<version>1.0.0</version>
<packaging>jar</packaging>
<name>cola-component-domain-starter</name>

<properties>
<maven.compiler.source>1.8</maven.compiler.source>
Expand Down
2 changes: 1 addition & 1 deletion cola-components/cola-component-dto/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<name>cola-component-dto</name>
<groupId>com.alibaba.cola</groupId>
<artifactId>cola-component-dto</artifactId>
<version>1.0.0</version>
<packaging>jar</packaging>
<name>cola-component-dto</name>

<properties>
<maven.compiler.source>1.8</maven.compiler.source>
Expand Down
2 changes: 1 addition & 1 deletion cola-components/cola-component-exception/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<name>cola-component-exception</name>
<groupId>com.alibaba.cola</groupId>
<artifactId>cola-component-exception</artifactId>
<version>1.0.0</version>
<packaging>jar</packaging>
<name>cola-component-exception</name>

<properties>
<maven.compiler.source>1.8</maven.compiler.source>
Expand Down
2 changes: 1 addition & 1 deletion cola-components/cola-component-extension-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<name>cola-component-extension-starter</name>
<groupId>com.alibaba.cola</groupId>
<artifactId>cola-component-extension-starter</artifactId>
<version>1.0.0</version>
<packaging>jar</packaging>
<name>cola-component-extension-starter</name>

<properties>
<maven.compiler.source>1.8</maven.compiler.source>
Expand Down
3 changes: 1 addition & 2 deletions cola-components/cola-component-statemachine/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
<artifactId>cola-component-statemachine</artifactId>
<packaging>jar</packaging>
<version>1.0.0</version>

<name>Cola component statemachine</name>
<url>https://github.com/alibaba/COLA</url>
<description>Cola component statemachine</description>
<url>https://github.com/alibaba/COLA</url>

<distributionManagement>
<snapshotRepository>
Expand Down
2 changes: 1 addition & 1 deletion cola-components/cola-component-test-container/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<name>cola-component-test-container</name>
<groupId>com.alibaba.cola</groupId>
<artifactId>cola-component-test-container</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>cola-component-test-container</name>

<properties>
<maven.compiler.source>1.8</maven.compiler.source>
Expand Down
2 changes: 1 addition & 1 deletion cola-components/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

<groupId>com.alibaba.cola</groupId>
<artifactId>cola-components</artifactId>
<packaging>pom</packaging>
<version>1.0.0</version>
<packaging>pom</packaging>
<name>cola-components</name>

<properties>
Expand Down
Loading

0 comments on commit 721043f

Please sign in to comment.