Skip to content

Commit 5bfbf38

Browse files
authored
JAVA-15409: Fix formatting of POMs (#12992)
1 parent 178aed5 commit 5bfbf38

File tree

62 files changed

+235
-214
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+235
-214
lines changed

Diff for: aws-modules/aws-lambda/lambda/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@
6262
<artifactId>json-simple</artifactId>
6363
<version>${json-simple.version}</version>
6464
<exclusions>
65-
<!-- junit4 dependency is excluded as it should to be resolved from junit-vintage-engine
66-
included in parent-modules. -->
65+
<!-- junit4 dependency is excluded as it should to be resolved from junit-vintage-engine -->
66+
<!-- included in parent-modules. -->
6767
<exclusion>
6868
<groupId>junit</groupId>
6969
<artifactId>junit</artifactId>

Diff for: axon/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project xmlns="http://maven.apache.org/POM/4.0.0"
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
66
<artifactId>axon</artifactId>
77
<name>axon</name>

Diff for: core-java-modules/core-java-collections-list-4/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
<version>${assertj.version}</version>
5757
<scope>test</scope>
5858
</dependency>
59-
<dependency>
59+
<dependency>
6060
<groupId>org.springframework</groupId>
6161
<artifactId>spring-core</artifactId>
6262
<version>${spring.version}</version>

Diff for: core-java-modules/core-java-collections-set-2/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@
3636
<maven.compiler.target>8</maven.compiler.target>
3737
</properties>
3838

39-
</project>
39+
</project>

Diff for: core-java-modules/core-java-date-operations-3/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@
2020
<properties>
2121
</properties>
2222

23-
</project>
23+
</project>

Diff for: core-java-modules/core-java-function/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project xmlns="http://maven.apache.org/POM/4.0.0"
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
66
<artifactId>core-java-function</artifactId>
77
<version>0.1.0-SNAPSHOT</version>

Diff for: core-java-modules/core-java-networking-4/pom.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@
1616
<build>
1717
<finalName>core-java-networking-4</finalName>
1818
</build>
19-
</project>
19+
20+
</project>

Diff for: core-java-modules/core-java-string-operations-5/pom.xml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project xmlns="http://maven.apache.org/POM/4.0.0"
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
66
<artifactId>core-java-string-operations-5</artifactId>
77
<version>0.1.0-SNAPSHOT</version>
@@ -21,6 +21,7 @@
2121
<version>${apache.commons.lang3.version}</version>
2222
</dependency>
2323
</dependencies>
24+
2425
<build>
2526
<plugins>
2627
<plugin>

Diff for: core-java-modules/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,4 +150,4 @@
150150
</dependencies>
151151
</dependencyManagement>
152152

153-
</project>
153+
</project>

Diff for: gradle-modules/gradle/maven-to-gradle/pom.xml

+6-4
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55
<groupId>com.baeldung</groupId>
66
<artifactId>maven-to-gradle</artifactId>
77
<version>0.0.1-SNAPSHOT</version>
8+
89
<dependencies>
910
<dependency>
10-
<groupId>org.apache.commons</groupId>
11-
<artifactId>commons-lang3</artifactId>
12-
<version>3.12.0</version>
11+
<groupId>org.apache.commons</groupId>
12+
<artifactId>commons-lang3</artifactId>
13+
<version>3.12.0</version>
1314
</dependency>
1415
</dependencies>
15-
</project>
16+
17+
</project>

Diff for: graphql-modules/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@
3535
<module>graphql-spqr-boot-starter</module>
3636
</modules>
3737

38-
</project>
38+
</project>

Diff for: javaxval/pom.xml

+8-7
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,14 @@
4848
</dependencies>
4949

5050
<!-- uncomment in order to enable Hibernate Validator Anotation Processor -->
51-
<!-- <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId>
52-
<version>${maven.compiler.version}</version> <configuration> <source>${maven.compiler.source}</source>
53-
<target>${maven.compiler.target}</target> <fork>true</fork> <compilerArgs> <arg>-Averbose=true</arg>
54-
<arg>-AmethodConstraintsSupported=true</arg> <arg>-AdiagnosticKind=ERROR</arg> </compilerArgs> <annotationProcessorPaths>
55-
<path> <groupId>org.hibernate.validator</groupId> <artifactId>hibernate-validator-annotation-processor</artifactId>
56-
<version>${hibernate-validator.ap.version}</version> </path> </annotationProcessorPaths> </configuration>
57-
</plugin> </plugins> </build> -->
51+
<!-- <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> -->
52+
<!--<version>${maven.compiler.version}</version> <configuration> <source>${maven.compiler.source}</source> -->
53+
<!--<target>${maven.compiler.target}</target> <fork>true</fork> <compilerArgs> <arg>-Averbose=true</arg> -->
54+
<!--<arg>-AmethodConstraintsSupported=true</arg> <arg>-AdiagnosticKind=ERROR</arg> </compilerArgs> -->
55+
<!--<annotationProcessorPaths> -->
56+
<!--<path> <groupId>org.hibernate.validator</groupId> <artifactId>hibernate-validator-annotation-processor</artifactId> -->
57+
<!--<version>${hibernate-validator.ap.version}</version> </path> </annotationProcessorPaths> </configuration> -->
58+
<!--</plugin> </plugins> </build> -->
5859

5960
<properties>
6061
<hibernate-validator.version>6.2.3.Final</hibernate-validator.version>

Diff for: jenkins/plugins/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@
8080
</pluginRepositories>
8181

8282
<properties>
83-
<!-- Baseline Jenkins version you use to build the plugin. Users must have this version or newer
84-
to run. -->
83+
<!-- Baseline Jenkins version you use to build the plugin. -->
84+
<!-- Users must have this version or newer to run. -->
8585
<jenkins.version>2.7.3</jenkins.version>
8686
<structs.version>1.7</structs.version>
8787
<workflow-step-api.version>2.12</workflow-step-api.version>

Diff for: json-modules/json-2/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@
113113
<build>
114114
<pluginManagement>
115115
<plugins>
116-
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no
117-
influence on the Maven build itself. -->
116+
<!--This plugin's configuration is used to store Eclipse m2e settings only. -->
117+
<!-- It has no influence on the Maven build itself. -->
118118
<plugin>
119119
<groupId>org.eclipse.m2e</groupId>
120120
<artifactId>lifecycle-mapping</artifactId>

Diff for: libraries-2/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@
4949
<artifactId>jbpm-test</artifactId>
5050
<version>${jbpm.version}</version>
5151
<exclusions>
52-
<!-- junit4 dependency is excluded as it should to be resolved from junit-vintage-engine
53-
included in parent-modules. -->
52+
<!-- junit4 dependency is excluded as it should to be resolved from junit-vintage-engine -->
53+
<!-- included in parent-modules. -->
5454
<exclusion>
5555
<groupId>junit</groupId>
5656
<artifactId>junit</artifactId>

Diff for: libraries-3/pom.xml

+4-4
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@
176176
</path>
177177
</annotationProcessorPaths>
178178
<compilerArgs>
179-
<!-- NullAway will warn by default, uncomment the next line to make the build
180-
fail -->
179+
<!-- NullAway will warn by default, uncomment the next line to make the build -->
180+
<!-- fail -->
181181
<!-- <arg>-Xep:NullAway:ERROR</arg> -->
182182
<arg>-XepExcludedPaths:(.*)/test/.*|(.*)/jcabi/.*</arg>
183183
<arg>-XepOpt:NullAway:AnnotatedPackages=com.baeldung.nullaway</arg>
@@ -189,8 +189,8 @@
189189
<artifactId>plexus-compiler-javac-errorprone</artifactId>
190190
<version>2.8</version>
191191
</dependency>
192-
<!-- override plexus-compiler-javac-errorprone's dependency on Error Prone with the
193-
latest version -->
192+
<!-- override plexus-compiler-javac-errorprone's dependency on Error Prone with the -->
193+
<!-- latest version -->
194194
<dependency>
195195
<groupId>com.google.errorprone</groupId>
196196
<artifactId>error_prone_core</artifactId>

Diff for: libraries-7/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,4 @@
7878
</plugins>
7979
</build>
8080

81-
</project>
81+
</project>

Diff for: libraries-files/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@
4444
<commons-configuration2>2.8.0</commons-configuration2>
4545
</properties>
4646

47-
</project>
47+
</project>

Diff for: lombok-modules/lombok/pom.xml

+4-3
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,10 @@
6262
<verbose>false</verbose>
6363
</configuration>
6464
</execution>
65-
<!-- This is for delomboking also your tests sources. <execution> <id>test-delombok</id>
66-
<phase>generate-test-sources</phase> <goals> <goal>testDelombok</goal> </goals> <configuration> <verbose>false</verbose>
67-
</configuration> </execution> -->
65+
<!-- This is for delomboking also your tests sources. -->
66+
<!--<execution> <id>test-delombok</id> -->
67+
<!-- <phase>generate-test-sources</phase> <goals> <goal>testDelombok</goal> </goals> -->
68+
<!--<configuration> <verbose>false</verbose> </configuration> </execution> -->
6869
</executions>
6970
</plugin>
7071
</plugins>

Diff for: maven-modules/maven-classifier/maven-classifier-example-consumer/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
<version>0.0.1-SNAPSHOT</version>
2424
<classifier>arbitrary</classifier>
2525
</dependency>
26-
<!-- For example purpose not building as it requires both JDK 8 and 11 executables on the build
27-
machine -->
26+
<!-- For example purpose not building as it requires both JDK 8 and 11 executables -->
27+
<!-- on the build machine -->
2828
<!-- <dependency> -->
2929
<!-- <groupId>com.baeldung</groupId> -->
3030
<!-- <artifactId>maven-classifier-example-provider</artifactId> -->

Diff for: maven-modules/maven-classifier/maven-classifier-example-provider/pom.xml

+4-4
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
<fork>true</fork>
3232
</configuration>
3333
</execution>
34-
<!-- For example purpose not building as it requires both JDK 8 and 11 executables
35-
on the build machine -->
34+
<!-- For example purpose not building as it requires both JDK 8 and 11 executables -->
35+
<!-- on the build machine -->
3636
<!-- <execution> -->
3737
<!-- <id>JDK 11</id> -->
3838
<!-- <phase>compile</phase> -->
@@ -69,8 +69,8 @@
6969
<goal>test-jar</goal>
7070
</goals>
7171
</execution>
72-
<!-- For example purpose not building as it requires both JDK 8 and 11 executables
73-
on the build machine -->
72+
<!-- For example purpose not building as it requires both JDK 8 and 11 executables -->
73+
<!-- on the build machine -->
7474
<!-- <execution> -->
7575
<!-- <id>default-package-jdk11</id> -->
7676
<!-- <phase>package</phase> -->

Diff for: maven-modules/maven-properties/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@
5757
<properties>
5858
<name>${project.name}</name>
5959
<my.awesome.property>property-from-pom</my.awesome.property>
60-
<!--these properties are normally set in the parent POM and would be overidden by the plugin
61-
specific properties above. -->
60+
<!--these properties are normally set in the parent POM -->
61+
<!-- and would be overidden by the plugin specific properties above. -->
6262
<!--project.build.sourceEncoding></project.build.sourceEncoding -->
6363
<!--project.build.sourceEncoding>US-ASCII</project.build.sourceEncoding -->
6464
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

Diff for: osgi/osgi-intro-sample-activator/pom.xml

+4-3
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@
3535
<Bundle-Version>${project.version}</Bundle-Version>
3636
<!-- Qualified name of the class that exposes the activator iface. -->
3737
<Bundle-Activator>com.baeldung.osgi.sample.activator.HelloWorld</Bundle-Activator>
38-
<!-- One important thing to note: since you are not exporting the package "com.baeldung.osgi.sample.activator",
39-
you should at least add it to the Private-Package instruction. Otherwise, the classes inside the package
40-
will not be copied to your bundle, as the default value of this instruction is empty. -->
38+
<!-- One important thing to note: since you are not exporting the package "com.baeldung.osgi.sample.activator", -->
39+
<!-- you should at least add it to the Private-Package instruction. Otherwise, -->
40+
<!-- the classes inside the package will not be copied to your bundle, -->
41+
<!-- as the default value of this instruction is empty. -->
4142
<Private-Package>com.baeldung.osgi.sample.activator</Private-Package>
4243
</instructions>
4344
</configuration>

Diff for: parent-boot-1/pom.xml

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
</dependency>
2727
</dependencies>
2828
</dependencyManagement>
29+
2930
<dependencies>
3031
<dependency>
3132
<groupId>io.rest-assured</groupId>

Diff for: parent-boot-2/pom.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
</dependency>
3434
</dependencies>
3535
</dependencyManagement>
36+
3637
<dependencies>
3738
<dependency>
3839
<groupId>io.rest-assured</groupId>
@@ -92,4 +93,4 @@
9293
<aspectjweaver.version>1.9.1</aspectjweaver.version>
9394
</properties>
9495

95-
</project>
96+
</project>

Diff for: parent-boot-3/pom.xml

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
</snapshots>
7575
</repository>
7676
</repositories>
77+
7778
<pluginRepositories>
7879
<pluginRepository>
7980
<id>spring-milestones</id>

Diff for: parent-java/pom.xml

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
<groupId>com.baeldung</groupId>
1414
<artifactId>parent-modules</artifactId>
1515
<version>1.0.0-SNAPSHOT</version>
16-
<relativePath>../</relativePath>
1716
</parent>
1817

1918
<dependencies>

Diff for: parent-spring-5/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@
2929
<spring-boot-starter-test.version>1.5.10.RELEASE</spring-boot-starter-test.version>
3030
</properties>
3131

32-
</project>
32+
</project>

Diff for: patterns-modules/coupling/pom.xml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project xmlns="http://maven.apache.org/POM/4.0.0"
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
<artifactId>coupling</artifactId>
7+
58
<parent>
69
<artifactId>patterns-modules</artifactId>
710
<groupId>com.baeldung</groupId>
811
<version>1.0.0-SNAPSHOT</version>
912
</parent>
10-
<modelVersion>4.0.0</modelVersion>
11-
12-
<artifactId>coupling</artifactId>
1313

1414
</project>

Diff for: persistence-modules/core-java-persistence-2/pom.xml

+7-4
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,13 @@
3232
<artifactId>mysql-connector-java</artifactId>
3333
<version>${mysql.driver.version}</version>
3434
</dependency>
35-
<!-- ================================================================== This jar is not in maven
36-
central repo due to some license issues. We need to manually download and install to maven repository.
37-
================================================================== <dependency> <groupId>com.oracle</groupId>
38-
<artifactId>ojdbc14</artifactId> <version>${oracle.driver.version}</version> </dependency> -->
35+
<!-- This jar is not in maven central repo due to some license issues. -->
36+
<!-- We need to manually download and install to maven repository. -->
37+
<!-- <dependency> -->
38+
<!-- <groupId>com.oracle</groupId> -->
39+
<!-- <artifactId>ojdbc14</artifactId> -->
40+
<!-- <version>${oracle.driver.version}</version> -->
41+
<!-- </dependency> -->
3942
<dependency>
4043
<groupId>com.microsoft.sqlserver</groupId>
4144
<artifactId>mssql-jdbc</artifactId>

0 commit comments

Comments
 (0)