JAVA-21189: Formatting pom.xml modules starting from KLM (#14096)

This commit is contained in:
Bipin kumar
2023-05-23 22:02:15 +05:30
committed by GitHub
parent 2cdf336d57
commit 90f569018a
22 changed files with 116 additions and 118 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
xmlns="http://maven.apache.org/POM/4.0.0"
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>
<groupId>com.baeldung.dependency-exclusion</groupId>
<artifactId>dependency-exclusion</artifactId>
@@ -22,10 +22,10 @@
<phase>generate-sources</phase>
<configuration>
<target>
<mkdir dir="${basedir}/target/destination-folder" />
<mkdir dir="${basedir}/target/destination-folder"/>
<copy todir="${basedir}/target/destination-folder">
<fileset dir="${basedir}/source-files"
includes="foo.txt" />
includes="foo.txt"/>
</copy>
</target>
</configuration>
@@ -21,7 +21,7 @@
<executions>
<execution>
<id>enforce-file-exists</id>
<phase />
<phase/>
</execution>
</executions>
</plugin>
@@ -33,7 +33,7 @@
</goals>
<configuration>
<rules>
<banDuplicatePomDependencyVersions />
<banDuplicatePomDependencyVersions/>
<requireMavenVersion>
<version>3.0</version>
<message>Invalid Maven version. It should, at least, be 3.0</message>
+1 -1
View File
@@ -145,4 +145,4 @@
</profiles>
</project>
<!-- END SNIPPET: superpom -->
<!-- END SNIPPET: superpom -->
+4 -4
View File
@@ -27,12 +27,12 @@
</goals>
<configuration>
<target>
<echo message="Hello, world" />
<echo message="Embed a line break: ${line.separator}" />
<echo message="Hello, world"/>
<echo message="Embed a line break: ${line.separator}"/>
<echo message="Build dir: ${project.build.directory}"
level="info" />
level="info"/>
<echo file="${basedir}/logs/log-ant-run.txt" append="true"
message="Save to file!" />
message="Save to file!"/>
</target>
</configuration>
</execution>
@@ -1,20 +1,20 @@
<?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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>patient-data</artifactId>
<name>patient-data</name>
<parent>
<groupId>com.baeldung</groupId>
<artifactId>maven-reactor</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<dependencies>
<dependency>
<groupId>com.baeldung</groupId>
<artifactId>patient-domain</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>
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>
<artifactId>patient-data</artifactId>
<name>patient-data</name>
<parent>
<groupId>com.baeldung</groupId>
<artifactId>maven-reactor</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<dependencies>
<dependency>
<groupId>com.baeldung</groupId>
<artifactId>patient-domain</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>
</project>
@@ -1,13 +1,13 @@
<?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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>patient-domain</artifactId>
<name>patient-domain</name>
<parent>
<groupId>com.baeldung</groupId>
<artifactId>maven-reactor</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
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>
<artifactId>patient-domain</artifactId>
<name>patient-domain</name>
<parent>
<groupId>com.baeldung</groupId>
<artifactId>maven-reactor</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
</project>
+22 -22
View File
@@ -1,27 +1,27 @@
<?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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>patient-web</artifactId>
<version>1.0-SNAPSHOT</version>
<name>patient-web</name>
<parent>
<groupId>com.baeldung</groupId>
<artifactId>maven-reactor</artifactId>
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>
<artifactId>patient-web</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<dependencies>
<dependency>
<groupId>com.baeldung</groupId>
<artifactId>patient-data</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.baeldung</groupId>
<artifactId>patient-domain</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>
<name>patient-web</name>
<parent>
<groupId>com.baeldung</groupId>
<artifactId>maven-reactor</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<dependencies>
<dependency>
<groupId>com.baeldung</groupId>
<artifactId>patient-data</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.baeldung</groupId>
<artifactId>patient-domain</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>
</project>
+18 -18
View File
@@ -1,22 +1,22 @@
<?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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>maven-reactor</artifactId>
<version>1.0-SNAPSHOT</version>
<name>maven-reactor</name>
<packaging>pom</packaging>
<description>Sample multi-module project to explain maven reactor</description>
<parent>
<groupId>com.baeldung</groupId>
<artifactId>maven-modules</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<modules>
<module>patient-web</module>
<module>patient-data</module>
<module>patient-domain</module>
</modules>
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>
<artifactId>maven-reactor</artifactId>
<version>1.0-SNAPSHOT</version>
<name>maven-reactor</name>
<packaging>pom</packaging>
<description>Sample multi-module project to explain maven reactor</description>
<parent>
<groupId>com.baeldung</groupId>
<artifactId>maven-modules</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<modules>
<module>patient-web</module>
<module>patient-data</module>
<module>patient-domain</module>
</modules>
</project>