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

View File

@ -1,6 +1,6 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" <project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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"> 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> <modelVersion>4.0.0</modelVersion>
<artifactId>k8s-java-heap-dump</artifactId> <artifactId>k8s-java-heap-dump</artifactId>
<version>0.0.1-SNAPSHOT</version> <version>0.0.1-SNAPSHOT</version>

View File

@ -109,24 +109,21 @@
<artifactId>javafx-fxml</artifactId> <artifactId>javafx-fxml</artifactId>
<version>${javafx.version}</version> <version>${javafx.version}</version>
</dependency> </dependency>
<dependency>
<dependency> <groupId>com.fasterxml.jackson.core</groupId>
<groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-core</artifactId>
<artifactId>jackson-core</artifactId> <version>${jackson-core.version}</version>
<version>${jackson-core.version}</version> </dependency>
</dependency> <dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<dependency> <artifactId>jackson-annotations</artifactId>
<groupId>com.fasterxml.jackson.core</groupId> <version>${jackson-annotations.version}</version>
<artifactId>jackson-annotations</artifactId> </dependency>
<version>${jackson-annotations.version}</version>
</dependency>
</dependencies> </dependencies>
<properties> <properties>
<jackson-annotations.version>2.14.2</jackson-annotations.version> <jackson-annotations.version>2.14.2</jackson-annotations.version>
<jackson-core.version>2.14.2</jackson-core.version> <jackson-core.version>2.14.2</jackson-core.version>
<jdeferred.version>1.2.6</jdeferred.version> <jdeferred.version>1.2.6</jdeferred.version>
<eclipse-collections.version>8.2.0</eclipse-collections.version> <eclipse-collections.version>8.2.0</eclipse-collections.version>
<noexception.version>1.1.0</noexception.version> <noexception.version>1.1.0</noexception.version>
@ -144,6 +141,7 @@
<glassfish.web.version>2.2.4</glassfish.web.version> <glassfish.web.version>2.2.4</glassfish.web.version>
<olap4j.version>1.2.0</olap4j.version> <olap4j.version>1.2.0</olap4j.version>
<javafx.version>19</javafx.version> <javafx.version>19</javafx.version>
<spoon-core.version>10.3.0</spoon-core.version>
</properties> </properties>
</project> </project>

View File

@ -22,7 +22,7 @@
<groupId>org.apache.opennlp</groupId> <groupId>org.apache.opennlp</groupId>
<artifactId>opennlp-tools</artifactId> <artifactId>opennlp-tools</artifactId>
<version>${opennlp-tools.version}</version> <version>${opennlp-tools.version}</version>
</dependency> </dependency>
</dependencies> </dependencies>
<properties> <properties>

View File

@ -58,7 +58,7 @@
<argument>-javaagent:${co.paralleluniverse:quasar-core:jar}</argument> <argument>-javaagent:${co.paralleluniverse:quasar-core:jar}</argument>
<!-- Classpath --> <!-- Classpath -->
<argument>-classpath</argument> <argument>-classpath</argument>
<classpath /> <classpath/>
<!-- Main class --> <!-- Main class -->
<argument>com.baeldung.quasar.App</argument> <argument>com.baeldung.quasar.App</argument>
</arguments> </arguments>

View File

@ -178,23 +178,22 @@
<configuration> <configuration>
<tasks> <tasks>
<property name="plugin_classpath" <property name="plugin_classpath"
refid="maven.plugin.classpath" /> refid="maven.plugin.classpath"/>
<taskdef name="gen-reladomo" classpath="plugin_classpath" <taskdef name="gen-reladomo" classpath="plugin_classpath"
classname="com.gs.fw.common.mithra.generator.MithraGenerator" /> classname="com.gs.fw.common.mithra.generator.MithraGenerator"/>
<gen-reladomo <gen-reladomo
xml="${project.basedir}/src/main/resources/reladomo/ReladomoClassList.xml" xml="${project.basedir}/src/main/resources/reladomo/ReladomoClassList.xml"
generatedDir="${project.build.directory}/generated-sources/reladomo" generatedDir="${project.build.directory}/generated-sources/reladomo"
nonGeneratedDir="${project.basedir}/src/main/java" /> nonGeneratedDir="${project.basedir}/src/main/java"/>
<taskdef name="gen-ddl" <taskdef name="gen-ddl"
classname="com.gs.fw.common.mithra.generator.dbgenerator.MithraDbDefinitionGenerator" classname="com.gs.fw.common.mithra.generator.dbgenerator.MithraDbDefinitionGenerator"
loaderRef="reladomoGenerator"> loaderRef="reladomoGenerator">
<classpath refid="maven.plugin.classpath" /> <classpath refid="maven.plugin.classpath"/>
</taskdef> </taskdef>
<gen-ddl <gen-ddl
xml="${project.basedir}/src/main/resources/reladomo/ReladomoClassList.xml" xml="${project.basedir}/src/main/resources/reladomo/ReladomoClassList.xml"
generatedDir="${project.build.directory}/generated-db/sql" generatedDir="${project.build.directory}/generated-db/sql"
databaseType="postgres" /> databaseType="postgres"/>
</tasks> </tasks>
</configuration> </configuration>
</execution> </execution>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" <project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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"> 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> <modelVersion>4.0.0</modelVersion>
<artifactId>libraries-data</artifactId> <artifactId>libraries-data</artifactId>
<name>libraries-data</name> <name>libraries-data</name>

View File

@ -39,11 +39,11 @@
<artifactId>logback-jackson</artifactId> <artifactId>logback-jackson</artifactId>
<version>${logback.contrib.version}</version> <version>${logback.contrib.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.slf4j</groupId> <groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId> <artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version> <version>${slf4j.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.fasterxml.jackson.core</groupId> <groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId> <artifactId>jackson-databind</artifactId>

View File

@ -25,7 +25,7 @@
<artifactId>jackson-databind</artifactId> <artifactId>jackson-databind</artifactId>
<version>${jackson.version}</version> <version>${jackson.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId> <artifactId>spring-boot-starter-web</artifactId>
</dependency> </dependency>

View File

@ -18,7 +18,7 @@
<modules> <modules>
<module>lombok</module> <module>lombok</module>
<module>lombok-2</module> <module>lombok-2</module>
<!-- <module>lombok-custom</module>--> <!-- this module uses legacy jdk-8 features (tools.jar), so can't upgrade to jdk9 or above--> <!-- <module>lombok-custom</module>--> <!-- this module uses legacy jdk-8 features (tools.jar), so can't upgrade to jdk9 or above-->
</modules> </modules>
<build> <build>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0" 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"> 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> <modelVersion>4.0.0</modelVersion>
<groupId>com.baeldung.dependency-exclusion</groupId> <groupId>com.baeldung.dependency-exclusion</groupId>
<artifactId>dependency-exclusion</artifactId> <artifactId>dependency-exclusion</artifactId>

View File

@ -22,10 +22,10 @@
<phase>generate-sources</phase> <phase>generate-sources</phase>
<configuration> <configuration>
<target> <target>
<mkdir dir="${basedir}/target/destination-folder" /> <mkdir dir="${basedir}/target/destination-folder"/>
<copy todir="${basedir}/target/destination-folder"> <copy todir="${basedir}/target/destination-folder">
<fileset dir="${basedir}/source-files" <fileset dir="${basedir}/source-files"
includes="foo.txt" /> includes="foo.txt"/>
</copy> </copy>
</target> </target>
</configuration> </configuration>

View File

@ -21,7 +21,7 @@
<executions> <executions>
<execution> <execution>
<id>enforce-file-exists</id> <id>enforce-file-exists</id>
<phase /> <phase/>
</execution> </execution>
</executions> </executions>
</plugin> </plugin>

View File

@ -33,7 +33,7 @@
</goals> </goals>
<configuration> <configuration>
<rules> <rules>
<banDuplicatePomDependencyVersions /> <banDuplicatePomDependencyVersions/>
<requireMavenVersion> <requireMavenVersion>
<version>3.0</version> <version>3.0</version>
<message>Invalid Maven version. It should, at least, be 3.0</message> <message>Invalid Maven version. It should, at least, be 3.0</message>

View File

@ -145,4 +145,4 @@
</profiles> </profiles>
</project> </project>
<!-- END SNIPPET: superpom --> <!-- END SNIPPET: superpom -->

View File

@ -27,12 +27,12 @@
</goals> </goals>
<configuration> <configuration>
<target> <target>
<echo message="Hello, world" /> <echo message="Hello, world"/>
<echo message="Embed a line break: ${line.separator}" /> <echo message="Embed a line break: ${line.separator}"/>
<echo message="Build dir: ${project.build.directory}" <echo message="Build dir: ${project.build.directory}"
level="info" /> level="info"/>
<echo file="${basedir}/logs/log-ant-run.txt" append="true" <echo file="${basedir}/logs/log-ant-run.txt" append="true"
message="Save to file!" /> message="Save to file!"/>
</target> </target>
</configuration> </configuration>
</execution> </execution>

View File

@ -1,20 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" <project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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"> 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> <modelVersion>4.0.0</modelVersion>
<artifactId>patient-data</artifactId> <artifactId>patient-data</artifactId>
<name>patient-data</name> <name>patient-data</name>
<parent> <parent>
<groupId>com.baeldung</groupId> <groupId>com.baeldung</groupId>
<artifactId>maven-reactor</artifactId> <artifactId>maven-reactor</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
</parent> </parent>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>com.baeldung</groupId> <groupId>com.baeldung</groupId>
<artifactId>patient-domain</artifactId> <artifactId>patient-domain</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
</dependency> </dependency>
</dependencies> </dependencies>
</project> </project>

View File

@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" <project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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"> 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> <modelVersion>4.0.0</modelVersion>
<artifactId>patient-domain</artifactId> <artifactId>patient-domain</artifactId>
<name>patient-domain</name> <name>patient-domain</name>
<parent> <parent>
<groupId>com.baeldung</groupId> <groupId>com.baeldung</groupId>
<artifactId>maven-reactor</artifactId> <artifactId>maven-reactor</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
</parent> </parent>
</project> </project>

View File

@ -1,27 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" <project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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"> 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> <modelVersion>4.0.0</modelVersion>
<artifactId>patient-web</artifactId> <artifactId>patient-web</artifactId>
<version>1.0-SNAPSHOT</version>
<name>patient-web</name>
<parent>
<groupId>com.baeldung</groupId>
<artifactId>maven-reactor</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
</parent> <name>patient-web</name>
<dependencies> <parent>
<dependency> <groupId>com.baeldung</groupId>
<groupId>com.baeldung</groupId> <artifactId>maven-reactor</artifactId>
<artifactId>patient-data</artifactId> <version>1.0-SNAPSHOT</version>
<version>1.0-SNAPSHOT</version> </parent>
</dependency> <dependencies>
<dependency> <dependency>
<groupId>com.baeldung</groupId> <groupId>com.baeldung</groupId>
<artifactId>patient-domain</artifactId> <artifactId>patient-data</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
</dependency> </dependency>
</dependencies> <dependency>
<groupId>com.baeldung</groupId>
<artifactId>patient-domain</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>
</project> </project>

View File

@ -1,22 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" <project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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"> 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> <modelVersion>4.0.0</modelVersion>
<artifactId>maven-reactor</artifactId> <artifactId>maven-reactor</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
<name>maven-reactor</name> <name>maven-reactor</name>
<packaging>pom</packaging> <packaging>pom</packaging>
<description>Sample multi-module project to explain maven reactor</description> <description>Sample multi-module project to explain maven reactor</description>
<parent> <parent>
<groupId>com.baeldung</groupId> <groupId>com.baeldung</groupId>
<artifactId>maven-modules</artifactId> <artifactId>maven-modules</artifactId>
<version>0.0.1-SNAPSHOT</version> <version>0.0.1-SNAPSHOT</version>
</parent> </parent>
<modules> <modules>
<module>patient-web</module> <module>patient-web</module>
<module>patient-data</module> <module>patient-data</module>
<module>patient-domain</module> <module>patient-domain</module>
</modules> </modules>
</project> </project>

View File

@ -85,7 +85,7 @@
<camel.version>3.15.0</camel.version> <camel.version>3.15.0</camel.version>
</properties> </properties>
<profiles> <profiles>
<profile> <profile>
<id>spring-boot</id> <id>spring-boot</id>
<build> <build>

View File

@ -90,7 +90,7 @@
<mainClass>${exec.mainClass}</mainClass> <mainClass>${exec.mainClass}</mainClass>
</transformer> </transformer>
<transformer <transformer
implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" /> implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
</transformers> </transformers>
</configuration> </configuration>
</execution> </execution>
@ -103,7 +103,7 @@
<executable>java</executable> <executable>java</executable>
<arguments> <arguments>
<argument>-classpath</argument> <argument>-classpath</argument>
<classpath /> <classpath/>
<argument>${exec.mainClass}</argument> <argument>${exec.mainClass}</argument>
</arguments> </arguments>
</configuration> </configuration>

View File

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?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" <project 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: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">
<parent> <parent>
<artifactId>microservices-modules</artifactId> <artifactId>microservices-modules</artifactId>
<groupId>com.baeldung</groupId> <groupId>com.baeldung</groupId>
@ -115,7 +116,7 @@
<configuration> <configuration>
<transformers> <transformers>
<transformer <transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>com.baeldung.restexpress.Main</mainClass> <mainClass>com.baeldung.restexpress.Main</mainClass>
</transformer> </transformer>
</transformers> </transformers>