From cfff9e33c92bea2ccc6b9b4c2be874f8daabf45a Mon Sep 17 00:00:00 2001 From: MicuEmerson Date: Sat, 15 May 2021 17:35:54 +0300 Subject: [PATCH 1/3] BAEL-4800: example of different POM types in Maven --- maven-modules/maven-pom-types/README.md | 11 + .../maven-pom-types/effective-pom.xml | 255 ++++++++++++++++++ maven-modules/maven-pom-types/pom-4.0.0.xml | 150 +++++++++++ maven-modules/maven-pom-types/pom.xml | 14 + 4 files changed, 430 insertions(+) create mode 100644 maven-modules/maven-pom-types/README.md create mode 100644 maven-modules/maven-pom-types/effective-pom.xml create mode 100644 maven-modules/maven-pom-types/pom-4.0.0.xml create mode 100644 maven-modules/maven-pom-types/pom.xml diff --git a/maven-modules/maven-pom-types/README.md b/maven-modules/maven-pom-types/README.md new file mode 100644 index 0000000000..8de8610383 --- /dev/null +++ b/maven-modules/maven-pom-types/README.md @@ -0,0 +1,11 @@ +## Maven POM types + +This module contains the XML files with POM types. + +pom.xml is the Simplest POM +pom-4.0.0.xml is the Super POM +effective-pom.xml was generated using `mvn help:effective-pom > effective-pom.xml` + +### Relevant Articles + +- [Guide to Maven Profiles](https://www.baeldung.com/difference-between-super-pom-simplest-and-effective-pom/) diff --git a/maven-modules/maven-pom-types/effective-pom.xml b/maven-modules/maven-pom-types/effective-pom.xml new file mode 100644 index 0000000000..09b3d5f7bf --- /dev/null +++ b/maven-modules/maven-pom-types/effective-pom.xml @@ -0,0 +1,255 @@ +[INFO] Scanning for projects... +[INFO] +[INFO] ----------------------< com.baeldung:simplestPOM >---------------------- +[INFO] Building simplestPOM 1.0-SNAPSHOT +[INFO] --------------------------------[ jar ]--------------------------------- +[INFO] +[INFO] --- maven-help-plugin:3.2.0:effective-pom (default-cli) @ simplestPOM --- +[INFO] +Effective POMs, after inheritance, interpolation, and profiles are applied: + + + + + + + + + + + + + + + 4.0.0 + com.baeldung + simplestPOM + 1.0-SNAPSHOT + + + + false + + central + Central Repository + https://repo.maven.apache.org/maven2 + + + + + + never + + + false + + central + Central Repository + https://repo.maven.apache.org/maven2 + + + + C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\src\main\java + C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\src\main\scripts + C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\src\test\java + C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\customTarget\classes + C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\customTarget\test-classes + + + C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\src\main\resources + + + + + C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\src\test\resources + + + C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\customTarget + simplestPOM-1.0-SNAPSHOT + + + + maven-antrun-plugin + 1.3 + + + maven-assembly-plugin + 2.2-beta-5 + + + maven-dependency-plugin + 2.8 + + + maven-release-plugin + 2.5.3 + + + + + + maven-clean-plugin + 2.5 + + + default-clean + clean + + clean + + + + + + maven-resources-plugin + 2.6 + + + default-testResources + process-test-resources + + testResources + + + + default-resources + process-resources + + resources + + + + + + maven-jar-plugin + 2.4 + + + default-jar + package + + jar + + + + + + maven-compiler-plugin + 3.1 + + + default-compile + compile + + compile + + + + default-testCompile + test-compile + + testCompile + + + + + + maven-surefire-plugin + 2.12.4 + + + default-test + test + + test + + + + + + maven-install-plugin + 2.4 + + + default-install + install + + install + + + + + + maven-deploy-plugin + 2.7 + + + default-deploy + deploy + + deploy + + + + + + maven-site-plugin + 3.3 + + + default-site + site + + site + + + C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\customTarget\site + + + org.apache.maven.plugins + maven-project-info-reports-plugin + + + + + + default-deploy + site-deploy + + deploy + + + C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\customTarget\site + + + org.apache.maven.plugins + maven-project-info-reports-plugin + + + + + + + C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\customTarget\site + + + org.apache.maven.plugins + maven-project-info-reports-plugin + + + + + + + + C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\customTarget\site + + + + +[INFO] ------------------------------------------------------------------------ +[INFO] BUILD SUCCESS +[INFO] ------------------------------------------------------------------------ +[INFO] Total time: 1.346 s +[INFO] Finished at: 2021-05-15T17:28:30+03:00 +[INFO] ------------------------------------------------------------------------ diff --git a/maven-modules/maven-pom-types/pom-4.0.0.xml b/maven-modules/maven-pom-types/pom-4.0.0.xml new file mode 100644 index 0000000000..b19a7d7b7a --- /dev/null +++ b/maven-modules/maven-pom-types/pom-4.0.0.xml @@ -0,0 +1,150 @@ + + + + + + + 4.0.0 + + + + central + Central Repository + https://repo.maven.apache.org/maven2 + default + + false + + + + + + + central + Central Repository + https://repo.maven.apache.org/maven2 + default + + false + + + never + + + + + + ${project.basedir}/target + ${project.build.directory}/classes + ${project.artifactId}-${project.version} + ${project.build.directory}/test-classes + ${project.basedir}/src/main/java + ${project.basedir}/src/main/scripts + ${project.basedir}/src/test/java + + + ${project.basedir}/src/main/resources + + + + + ${project.basedir}/src/test/resources + + + + + + + + maven-antrun-plugin + 1.3 + + + maven-assembly-plugin + 2.2-beta-5 + + + maven-dependency-plugin + 2.8 + + + maven-release-plugin + 2.5.3 + + + + + + + ${project.build.directory}/site + + + + + + release-profile + + + + performRelease + true + + + + + + + true + maven-source-plugin + + + attach-sources + + jar-no-fork + + + + + + true + maven-javadoc-plugin + + + attach-javadocs + + jar + + + + + + true + maven-deploy-plugin + + true + + + + + + + + + diff --git a/maven-modules/maven-pom-types/pom.xml b/maven-modules/maven-pom-types/pom.xml new file mode 100644 index 0000000000..6699e614f4 --- /dev/null +++ b/maven-modules/maven-pom-types/pom.xml @@ -0,0 +1,14 @@ + + + 4.0.0 + com.baeldung + simplestPOM + 1.0-SNAPSHOT + + + ${project.basedir}/customTarget + + + \ No newline at end of file From d6be1a079fd42de7fb85837dd39191c7cd766b4b Mon Sep 17 00:00:00 2001 From: MicuEmerson Date: Mon, 17 May 2021 21:37:38 +0300 Subject: [PATCH 2/3] BAEL-4800: adjustments - formated the code - changed artifactId - deleted readMe.md --- maven-modules/maven-pom-types/README.md | 11 - .../maven-pom-types/effective-pom.xml | 491 +++++++++--------- maven-modules/maven-pom-types/pom-4.0.0.xml | 268 +++++----- maven-modules/maven-pom-types/pom.xml | 18 +- 4 files changed, 392 insertions(+), 396 deletions(-) delete mode 100644 maven-modules/maven-pom-types/README.md diff --git a/maven-modules/maven-pom-types/README.md b/maven-modules/maven-pom-types/README.md deleted file mode 100644 index 8de8610383..0000000000 --- a/maven-modules/maven-pom-types/README.md +++ /dev/null @@ -1,11 +0,0 @@ -## Maven POM types - -This module contains the XML files with POM types. - -pom.xml is the Simplest POM -pom-4.0.0.xml is the Super POM -effective-pom.xml was generated using `mvn help:effective-pom > effective-pom.xml` - -### Relevant Articles - -- [Guide to Maven Profiles](https://www.baeldung.com/difference-between-super-pom-simplest-and-effective-pom/) diff --git a/maven-modules/maven-pom-types/effective-pom.xml b/maven-modules/maven-pom-types/effective-pom.xml index 09b3d5f7bf..750ba35175 100644 --- a/maven-modules/maven-pom-types/effective-pom.xml +++ b/maven-modules/maven-pom-types/effective-pom.xml @@ -1,255 +1,264 @@ + [INFO] Scanning for projects... -[INFO] -[INFO] ----------------------< com.baeldung:simplestPOM >---------------------- +[INFO] +[INFO] ----------------------< com.baeldung:simplestPOM +>---------------------- [INFO] Building simplestPOM 1.0-SNAPSHOT -[INFO] --------------------------------[ jar ]--------------------------------- -[INFO] -[INFO] --- maven-help-plugin:3.2.0:effective-pom (default-cli) @ simplestPOM --- -[INFO] +[INFO] +--------------------------------[ jar ]--------------------------------- +[INFO] +[INFO] --- maven-help-plugin:3.2.0:effective-pom (default-cli) @ simplestPOM +--- +[INFO] Effective POMs, after inheritance, interpolation, and profiles are applied: - - - - + + + + - - - + + + - - 4.0.0 - com.baeldung - simplestPOM - 1.0-SNAPSHOT - - - - false - - central - Central Repository - https://repo.maven.apache.org/maven2 - - - - - - never - - - false - - central - Central Repository - https://repo.maven.apache.org/maven2 - - - - C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\src\main\java - C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\src\main\scripts - C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\src\test\java - C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\customTarget\classes - C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\customTarget\test-classes - - - C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\src\main\resources - - - - - C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\src\test\resources - - - C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\customTarget - simplestPOM-1.0-SNAPSHOT - - - - maven-antrun-plugin - 1.3 - - - maven-assembly-plugin - 2.2-beta-5 - - - maven-dependency-plugin - 2.8 - - - maven-release-plugin - 2.5.3 - - - - - - maven-clean-plugin - 2.5 - - - default-clean - clean - - clean - - - - - - maven-resources-plugin - 2.6 - - - default-testResources - process-test-resources - - testResources - - - - default-resources - process-resources - - resources - - - - - - maven-jar-plugin - 2.4 - - - default-jar - package - - jar - - - - - - maven-compiler-plugin - 3.1 - - - default-compile - compile - - compile - - - - default-testCompile - test-compile - - testCompile - - - - - - maven-surefire-plugin - 2.12.4 - - - default-test - test - - test - - - - - - maven-install-plugin - 2.4 - - - default-install - install - - install - - - - - - maven-deploy-plugin - 2.7 - - - default-deploy - deploy - - deploy - - - - - - maven-site-plugin - 3.3 - - - default-site - site - - site - - - C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\customTarget\site - - - org.apache.maven.plugins - maven-project-info-reports-plugin - - - - - - default-deploy - site-deploy - - deploy - - - C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\customTarget\site - - - org.apache.maven.plugins - maven-project-info-reports-plugin - - - - - - - C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\customTarget\site - - - org.apache.maven.plugins - maven-project-info-reports-plugin - - - - - - - - C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\customTarget\site - + + 4.0.0 + com.baeldung + simplestPOM + 1.0-SNAPSHOT + + + + false + + central + Central Repository + https://repo.maven.apache.org/maven2 + + + + + + never + + + false + + central + Central Repository + https://repo.maven.apache.org/maven2 + + + + C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\src\main\java + C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\src\main\scripts + C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\src\test\java + C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\customTarget\classes + C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\customTarget\test-classes + + + C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\src\main\resources + + + + + C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\src\test\resources + + + C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\customTarget + simplestPOM-1.0-SNAPSHOT + + + + maven-antrun-plugin + 1.3 + + + maven-assembly-plugin + 2.2-beta-5 + + + maven-dependency-plugin + 2.8 + + + maven-release-plugin + 2.5.3 + + + + + + maven-clean-plugin + 2.5 + + + default-clean + clean + + clean + + + + + + maven-resources-plugin + 2.6 + + + default-testResources + process-test-resources + + testResources + + + + default-resources + process-resources + + resources + + + + + + maven-jar-plugin + 2.4 + + + default-jar + package + + jar + + + + + + maven-compiler-plugin + 3.1 + + + default-compile + compile + + compile + + + + default-testCompile + test-compile + + testCompile + + + + + + maven-surefire-plugin + 2.12.4 + + + default-test + test + + test + + + + + + maven-install-plugin + 2.4 + + + default-install + install + + install + + + + + + maven-deploy-plugin + 2.7 + + + default-deploy + deploy + + deploy + + + + + + maven-site-plugin + 3.3 + + + default-site + site + + site + + + C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\customTarget\site + + + org.apache.maven.plugins + maven-project-info-reports-plugin + + + + + + default-deploy + site-deploy + + deploy + + + C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\customTarget\site + + + org.apache.maven.plugins + maven-project-info-reports-plugin + + + + + + + C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\customTarget\site + + + org.apache.maven.plugins + maven-project-info-reports-plugin + + + + + + + + C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\customTarget\site + -[INFO] ------------------------------------------------------------------------ +[INFO] +------------------------------------------------------------------------ [INFO] BUILD SUCCESS -[INFO] ------------------------------------------------------------------------ -[INFO] Total time: 1.346 s +[INFO] +------------------------------------------------------------------------ +[INFO] Total time: 1.346 s [INFO] Finished at: 2021-05-15T17:28:30+03:00 -[INFO] ------------------------------------------------------------------------ +[INFO] +------------------------------------------------------------------------ diff --git a/maven-modules/maven-pom-types/pom-4.0.0.xml b/maven-modules/maven-pom-types/pom-4.0.0.xml index b19a7d7b7a..4c3d4c82bf 100644 --- a/maven-modules/maven-pom-types/pom-4.0.0.xml +++ b/maven-modules/maven-pom-types/pom-4.0.0.xml @@ -1,150 +1,148 @@ - + - 4.0.0 + 4.0.0 - - - central - Central Repository - https://repo.maven.apache.org/maven2 - default - - false - - - + + + central + Central Repository + https://repo.maven.apache.org/maven2 + default + + false + + + - - - central - Central Repository - https://repo.maven.apache.org/maven2 - default - - false - - - never - - - + + + central + Central Repository + https://repo.maven.apache.org/maven2 + default + + false + + + never + + + - - ${project.basedir}/target - ${project.build.directory}/classes - ${project.artifactId}-${project.version} - ${project.build.directory}/test-classes - ${project.basedir}/src/main/java - ${project.basedir}/src/main/scripts - ${project.basedir}/src/test/java - - - ${project.basedir}/src/main/resources - - - - - ${project.basedir}/src/test/resources - - - - - - - - maven-antrun-plugin - 1.3 - - - maven-assembly-plugin - 2.2-beta-5 - - - maven-dependency-plugin - 2.8 - - - maven-release-plugin - 2.5.3 - - - - + + ${project.basedir}/target + ${project.build.directory}/classes + ${project.artifactId}-${project.version} + ${project.build.directory}/test-classes + + ${project.basedir}/src/main/java + ${project.basedir}/src/main/scripts + + ${project.basedir}/src/test/java + + + + ${project.basedir}/src/main/resources + + + + + ${project.basedir}/src/test/resources + + + + + + + + maven-antrun-plugin + 1.3 + + + maven-assembly-plugin + 2.2-beta-5 + + + maven-dependency-plugin + 2.8 + + + maven-release-plugin + 2.5.3 + + + + - - ${project.build.directory}/site - + + ${project.build.directory}/site + - - - - release-profile + + + + release-profile - - - performRelease - true - - + + + performRelease + true + + - - - - true - maven-source-plugin - - - attach-sources - - jar-no-fork - - - - - - true - maven-javadoc-plugin - - - attach-javadocs - - jar - - - - - - true - maven-deploy-plugin - - true - - - - - - + + + + true + maven-source-plugin + + + attach-sources + + jar-no-fork + + + + + + true + maven-javadoc-plugin + + + attach-javadocs + + jar + + + + + + true + maven-deploy-plugin + + true + + + + + + diff --git a/maven-modules/maven-pom-types/pom.xml b/maven-modules/maven-pom-types/pom.xml index 6699e614f4..f600baabb7 100644 --- a/maven-modules/maven-pom-types/pom.xml +++ b/maven-modules/maven-pom-types/pom.xml @@ -1,14 +1,14 @@ - 4.0.0 - com.baeldung - simplestPOM - 1.0-SNAPSHOT + 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"> + 4.0.0 + com.baeldung + maven-pom-types + 1.0-SNAPSHOT - - ${project.basedir}/customTarget - + + ${project.basedir}/customTarget + \ No newline at end of file From 806881214651b3357a0181c9694f9f20820324b8 Mon Sep 17 00:00:00 2001 From: MicuEmerson Date: Wed, 19 May 2021 19:19:59 +0300 Subject: [PATCH 3/3] BAEL-4800: adjustments #2 --- .../maven-pom-types/effective-pom.xml | 496 +++++++++--------- maven-modules/maven-pom-types/pom-4.0.0.xml | 248 ++++----- maven-modules/maven-pom-types/pom.xml | 17 +- 3 files changed, 365 insertions(+), 396 deletions(-) diff --git a/maven-modules/maven-pom-types/effective-pom.xml b/maven-modules/maven-pom-types/effective-pom.xml index 750ba35175..a2f8460809 100644 --- a/maven-modules/maven-pom-types/effective-pom.xml +++ b/maven-modules/maven-pom-types/effective-pom.xml @@ -1,264 +1,238 @@ - -[INFO] Scanning for projects... -[INFO] -[INFO] ----------------------< com.baeldung:simplestPOM ->---------------------- -[INFO] Building simplestPOM 1.0-SNAPSHOT -[INFO] ---------------------------------[ jar ]--------------------------------- -[INFO] -[INFO] --- maven-help-plugin:3.2.0:effective-pom (default-cli) @ simplestPOM ---- -[INFO] -Effective POMs, after inheritance, interpolation, and profiles are applied: - - - - - - - - - - - - - 4.0.0 - com.baeldung - simplestPOM - 1.0-SNAPSHOT - - - - false - - central - Central Repository - https://repo.maven.apache.org/maven2 - - - - - - never - - - false - - central - Central Repository - https://repo.maven.apache.org/maven2 - - - - C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\src\main\java - C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\src\main\scripts - C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\src\test\java - C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\customTarget\classes - C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\customTarget\test-classes - - - C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\src\main\resources - - - - - C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\src\test\resources - - - C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\customTarget - simplestPOM-1.0-SNAPSHOT - - - - maven-antrun-plugin - 1.3 - - - maven-assembly-plugin - 2.2-beta-5 - - - maven-dependency-plugin - 2.8 - - - maven-release-plugin - 2.5.3 - - - - - - maven-clean-plugin - 2.5 - - - default-clean - clean - - clean - - - - - - maven-resources-plugin - 2.6 - - - default-testResources - process-test-resources - - testResources - - - - default-resources - process-resources - - resources - - - - - - maven-jar-plugin - 2.4 - - - default-jar - package - - jar - - - - - - maven-compiler-plugin - 3.1 - - - default-compile - compile - - compile - - - - default-testCompile - test-compile - - testCompile - - - - - - maven-surefire-plugin - 2.12.4 - - - default-test - test - - test - - - - - - maven-install-plugin - 2.4 - - - default-install - install - - install - - - - - - maven-deploy-plugin - 2.7 - - - default-deploy - deploy - - deploy - - - - - - maven-site-plugin - 3.3 - - - default-site - site - - site - - - C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\customTarget\site - - - org.apache.maven.plugins - maven-project-info-reports-plugin - - - - - - default-deploy - site-deploy - - deploy - - - C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\customTarget\site - - - org.apache.maven.plugins - maven-project-info-reports-plugin - - - - - - - C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\customTarget\site - - - org.apache.maven.plugins - maven-project-info-reports-plugin - - - - - - - - C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\customTarget\site - + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> + 4.0.0 + com.baeldung + maven-pom-types + 1.0-SNAPSHOT + + + + false + + central + Central Repository + https://repo.maven.apache.org/maven2 + + + + + + never + + + false + + central + Central Repository + https://repo.maven.apache.org/maven2 + + + + C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\src\main\java + C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\src\main\scripts + + C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\src\test\java + + C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\customTarget\classes + + C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\customTarget\test-classes + + + + C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\src\main\resources + + + + + C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\src\test\resources + + + C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\customTarget + simplestPOM-1.0-SNAPSHOT + + + + maven-antrun-plugin + 1.3 + + + maven-assembly-plugin + 2.2-beta-5 + + + maven-dependency-plugin + 2.8 + + + maven-release-plugin + 2.5.3 + + + + + + maven-clean-plugin + 2.5 + + + default-clean + clean + + clean + + + + + + maven-resources-plugin + 2.6 + + + default-testResources + process-test-resources + + testResources + + + + default-resources + process-resources + + resources + + + + + + maven-jar-plugin + 2.4 + + + default-jar + package + + jar + + + + + + maven-compiler-plugin + 3.1 + + + default-compile + compile + + compile + + + + default-testCompile + test-compile + + testCompile + + + + + + maven-surefire-plugin + 2.12.4 + + + default-test + test + + test + + + + + + maven-install-plugin + 2.4 + + + default-install + install + + install + + + + + + maven-deploy-plugin + 2.7 + + + default-deploy + deploy + + deploy + + + + + + maven-site-plugin + 3.3 + + + default-site + site + + site + + + + C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\customTarget\site + + + + org.apache.maven.plugins + maven-project-info-reports-plugin + + + + + + default-deploy + site-deploy + + deploy + + + + C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\customTarget\site + + + + org.apache.maven.plugins + maven-project-info-reports-plugin + + + + + + + C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\customTarget\site + + + + org.apache.maven.plugins + maven-project-info-reports-plugin + + + + + + + + C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\customTarget\site + + - - -[INFO] ------------------------------------------------------------------------- -[INFO] BUILD SUCCESS -[INFO] ------------------------------------------------------------------------- -[INFO] Total time: 1.346 s -[INFO] Finished at: 2021-05-15T17:28:30+03:00 -[INFO] ------------------------------------------------------------------------- diff --git a/maven-modules/maven-pom-types/pom-4.0.0.xml b/maven-modules/maven-pom-types/pom-4.0.0.xml index 4c3d4c82bf..24b15984af 100644 --- a/maven-modules/maven-pom-types/pom-4.0.0.xml +++ b/maven-modules/maven-pom-types/pom-4.0.0.xml @@ -13,136 +13,136 @@ - 4.0.0 + 4.0.0 - - - central - Central Repository - https://repo.maven.apache.org/maven2 - default - - false - - - + + + central + Central Repository + https://repo.maven.apache.org/maven2 + default + + false + + + - - - central - Central Repository - https://repo.maven.apache.org/maven2 - default - - false - - - never - - - + + + central + Central Repository + https://repo.maven.apache.org/maven2 + default + + false + + + never + + + - - ${project.basedir}/target - ${project.build.directory}/classes - ${project.artifactId}-${project.version} - ${project.build.directory}/test-classes - - ${project.basedir}/src/main/java - ${project.basedir}/src/main/scripts - - ${project.basedir}/src/test/java - - - - ${project.basedir}/src/main/resources - - - - - ${project.basedir}/src/test/resources - - - - - - - - maven-antrun-plugin - 1.3 - - - maven-assembly-plugin - 2.2-beta-5 - - - maven-dependency-plugin - 2.8 - - - maven-release-plugin - 2.5.3 - - - - + + ${project.basedir}/target + ${project.build.directory}/classes + ${project.artifactId}-${project.version} + ${project.build.directory}/test-classes + + ${project.basedir}/src/main/java + ${project.basedir}/src/main/scripts + + ${project.basedir}/src/test/java + + + + ${project.basedir}/src/main/resources + + + + + ${project.basedir}/src/test/resources + + + + + + + + maven-antrun-plugin + 1.3 + + + maven-assembly-plugin + 2.2-beta-5 + + + maven-dependency-plugin + 2.8 + + + maven-release-plugin + 2.5.3 + + + + - - ${project.build.directory}/site - + + ${project.build.directory}/site + - - - - release-profile + + + + release-profile - - - performRelease - true - - + + + performRelease + true + + - - - - true - maven-source-plugin - - - attach-sources - - jar-no-fork - - - - - - true - maven-javadoc-plugin - - - attach-javadocs - - jar - - - - - - true - maven-deploy-plugin - - true - - - - - - + + + + true + maven-source-plugin + + + attach-sources + + jar-no-fork + + + + + + true + maven-javadoc-plugin + + + attach-javadocs + + jar + + + + + + true + maven-deploy-plugin + + true + + + + + + - + diff --git a/maven-modules/maven-pom-types/pom.xml b/maven-modules/maven-pom-types/pom.xml index f600baabb7..98fbc828a0 100644 --- a/maven-modules/maven-pom-types/pom.xml +++ b/maven-modules/maven-pom-types/pom.xml @@ -1,14 +1,9 @@ - 4.0.0 - com.baeldung - maven-pom-types - 1.0-SNAPSHOT - - - ${project.basedir}/customTarget - - + 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"> + 4.0.0 + com.baeldung + maven-pom-types + 1.0-SNAPSHOT \ No newline at end of file