BAEL-4800: adjustments #2

This commit is contained in:
MicuEmerson 2021-05-19 19:19:59 +03:00
parent 3327bf0268
commit 8068812146
3 changed files with 365 additions and 396 deletions

View File

@ -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:
<?xml version="1.0" encoding="Cp1252"?> <?xml version="1.0" encoding="Cp1252"?>
<!-- ====================================================================== -->
<!-- -->
<!-- Generated by Maven Help Plugin on 2021-05-15T17:28:30+03:00 -->
<!-- See: http://maven.apache.org/plugins/maven-help-plugin/ -->
<!-- -->
<!-- ====================================================================== -->
<!-- ====================================================================== -->
<!-- -->
<!-- Effective POM for project 'com.baeldung:simplestPOM:jar:1.0-SNAPSHOT' -->
<!-- -->
<!-- ====================================================================== -->
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>com.baeldung</groupId> <groupId>com.baeldung</groupId>
<artifactId>simplestPOM</artifactId> <artifactId>maven-pom-types</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
<repositories> <repositories>
<repository> <repository>
<snapshots> <snapshots>
<enabled>false</enabled> <enabled>false</enabled>
</snapshots> </snapshots>
<id>central</id> <id>central</id>
<name>Central Repository</name> <name>Central Repository</name>
<url>https://repo.maven.apache.org/maven2</url> <url>https://repo.maven.apache.org/maven2</url>
</repository> </repository>
</repositories> </repositories>
<pluginRepositories> <pluginRepositories>
<pluginRepository> <pluginRepository>
<releases> <releases>
<updatePolicy>never</updatePolicy> <updatePolicy>never</updatePolicy>
</releases> </releases>
<snapshots> <snapshots>
<enabled>false</enabled> <enabled>false</enabled>
</snapshots> </snapshots>
<id>central</id> <id>central</id>
<name>Central Repository</name> <name>Central Repository</name>
<url>https://repo.maven.apache.org/maven2</url> <url>https://repo.maven.apache.org/maven2</url>
</pluginRepository> </pluginRepository>
</pluginRepositories> </pluginRepositories>
<build> <build>
<sourceDirectory>C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\src\main\java</sourceDirectory> <sourceDirectory>C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\src\main\java</sourceDirectory>
<scriptSourceDirectory>C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\src\main\scripts</scriptSourceDirectory> <scriptSourceDirectory>C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\src\main\scripts
<testSourceDirectory>C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\src\test\java</testSourceDirectory> </scriptSourceDirectory>
<outputDirectory>C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\customTarget\classes</outputDirectory> <testSourceDirectory>C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\src\test\java
<testOutputDirectory>C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\customTarget\test-classes</testOutputDirectory> </testSourceDirectory>
<resources> <outputDirectory>C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\customTarget\classes
<resource> </outputDirectory>
<directory>C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\src\main\resources</directory> <testOutputDirectory>C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\customTarget\test-classes
</resource> </testOutputDirectory>
</resources> <resources>
<testResources> <resource>
<testResource> <directory>C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\src\main\resources</directory>
<directory>C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\src\test\resources</directory> </resource>
</testResource> </resources>
</testResources> <testResources>
<directory>C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\customTarget</directory> <testResource>
<finalName>simplestPOM-1.0-SNAPSHOT</finalName> <directory>C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\src\test\resources</directory>
<pluginManagement> </testResource>
<plugins> </testResources>
<plugin> <directory>C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\customTarget</directory>
<artifactId>maven-antrun-plugin</artifactId> <finalName>simplestPOM-1.0-SNAPSHOT</finalName>
<version>1.3</version> <pluginManagement>
</plugin> <plugins>
<plugin> <plugin>
<artifactId>maven-assembly-plugin</artifactId> <artifactId>maven-antrun-plugin</artifactId>
<version>2.2-beta-5</version> <version>1.3</version>
</plugin> </plugin>
<plugin> <plugin>
<artifactId>maven-dependency-plugin</artifactId> <artifactId>maven-assembly-plugin</artifactId>
<version>2.8</version> <version>2.2-beta-5</version>
</plugin> </plugin>
<plugin> <plugin>
<artifactId>maven-release-plugin</artifactId> <artifactId>maven-dependency-plugin</artifactId>
<version>2.5.3</version> <version>2.8</version>
</plugin> </plugin>
</plugins> <plugin>
</pluginManagement> <artifactId>maven-release-plugin</artifactId>
<plugins> <version>2.5.3</version>
<plugin> </plugin>
<artifactId>maven-clean-plugin</artifactId> </plugins>
<version>2.5</version> </pluginManagement>
<executions> <plugins>
<execution> <plugin>
<id>default-clean</id> <artifactId>maven-clean-plugin</artifactId>
<phase>clean</phase> <version>2.5</version>
<goals> <executions>
<goal>clean</goal> <execution>
</goals> <id>default-clean</id>
</execution> <phase>clean</phase>
</executions> <goals>
</plugin> <goal>clean</goal>
<plugin> </goals>
<artifactId>maven-resources-plugin</artifactId> </execution>
<version>2.6</version> </executions>
<executions> </plugin>
<execution> <plugin>
<id>default-testResources</id> <artifactId>maven-resources-plugin</artifactId>
<phase>process-test-resources</phase> <version>2.6</version>
<goals> <executions>
<goal>testResources</goal> <execution>
</goals> <id>default-testResources</id>
</execution> <phase>process-test-resources</phase>
<execution> <goals>
<id>default-resources</id> <goal>testResources</goal>
<phase>process-resources</phase> </goals>
<goals> </execution>
<goal>resources</goal> <execution>
</goals> <id>default-resources</id>
</execution> <phase>process-resources</phase>
</executions> <goals>
</plugin> <goal>resources</goal>
<plugin> </goals>
<artifactId>maven-jar-plugin</artifactId> </execution>
<version>2.4</version> </executions>
<executions> </plugin>
<execution> <plugin>
<id>default-jar</id> <artifactId>maven-jar-plugin</artifactId>
<phase>package</phase> <version>2.4</version>
<goals> <executions>
<goal>jar</goal> <execution>
</goals> <id>default-jar</id>
</execution> <phase>package</phase>
</executions> <goals>
</plugin> <goal>jar</goal>
<plugin> </goals>
<artifactId>maven-compiler-plugin</artifactId> </execution>
<version>3.1</version> </executions>
<executions> </plugin>
<execution> <plugin>
<id>default-compile</id> <artifactId>maven-compiler-plugin</artifactId>
<phase>compile</phase> <version>3.1</version>
<goals> <executions>
<goal>compile</goal> <execution>
</goals> <id>default-compile</id>
</execution> <phase>compile</phase>
<execution> <goals>
<id>default-testCompile</id> <goal>compile</goal>
<phase>test-compile</phase> </goals>
<goals> </execution>
<goal>testCompile</goal> <execution>
</goals> <id>default-testCompile</id>
</execution> <phase>test-compile</phase>
</executions> <goals>
</plugin> <goal>testCompile</goal>
<plugin> </goals>
<artifactId>maven-surefire-plugin</artifactId> </execution>
<version>2.12.4</version> </executions>
<executions> </plugin>
<execution> <plugin>
<id>default-test</id> <artifactId>maven-surefire-plugin</artifactId>
<phase>test</phase> <version>2.12.4</version>
<goals> <executions>
<goal>test</goal> <execution>
</goals> <id>default-test</id>
</execution> <phase>test</phase>
</executions> <goals>
</plugin> <goal>test</goal>
<plugin> </goals>
<artifactId>maven-install-plugin</artifactId> </execution>
<version>2.4</version> </executions>
<executions> </plugin>
<execution> <plugin>
<id>default-install</id> <artifactId>maven-install-plugin</artifactId>
<phase>install</phase> <version>2.4</version>
<goals> <executions>
<goal>install</goal> <execution>
</goals> <id>default-install</id>
</execution> <phase>install</phase>
</executions> <goals>
</plugin> <goal>install</goal>
<plugin> </goals>
<artifactId>maven-deploy-plugin</artifactId> </execution>
<version>2.7</version> </executions>
<executions> </plugin>
<execution> <plugin>
<id>default-deploy</id> <artifactId>maven-deploy-plugin</artifactId>
<phase>deploy</phase> <version>2.7</version>
<goals> <executions>
<goal>deploy</goal> <execution>
</goals> <id>default-deploy</id>
</execution> <phase>deploy</phase>
</executions> <goals>
</plugin> <goal>deploy</goal>
<plugin> </goals>
<artifactId>maven-site-plugin</artifactId> </execution>
<version>3.3</version> </executions>
<executions> </plugin>
<execution> <plugin>
<id>default-site</id> <artifactId>maven-site-plugin</artifactId>
<phase>site</phase> <version>3.3</version>
<goals> <executions>
<goal>site</goal> <execution>
</goals> <id>default-site</id>
<configuration> <phase>site</phase>
<outputDirectory>C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\customTarget\site</outputDirectory> <goals>
<reportPlugins> <goal>site</goal>
<reportPlugin> </goals>
<groupId>org.apache.maven.plugins</groupId> <configuration>
<artifactId>maven-project-info-reports-plugin</artifactId> <outputDirectory>
</reportPlugin> C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\customTarget\site
</reportPlugins> </outputDirectory>
</configuration> <reportPlugins>
</execution> <reportPlugin>
<execution> <groupId>org.apache.maven.plugins</groupId>
<id>default-deploy</id> <artifactId>maven-project-info-reports-plugin</artifactId>
<phase>site-deploy</phase> </reportPlugin>
<goals> </reportPlugins>
<goal>deploy</goal> </configuration>
</goals> </execution>
<configuration> <execution>
<outputDirectory>C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\customTarget\site</outputDirectory> <id>default-deploy</id>
<reportPlugins> <phase>site-deploy</phase>
<reportPlugin> <goals>
<groupId>org.apache.maven.plugins</groupId> <goal>deploy</goal>
<artifactId>maven-project-info-reports-plugin</artifactId> </goals>
</reportPlugin> <configuration>
</reportPlugins> <outputDirectory>
</configuration> C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\customTarget\site
</execution> </outputDirectory>
</executions> <reportPlugins>
<configuration> <reportPlugin>
<outputDirectory>C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\customTarget\site</outputDirectory> <groupId>org.apache.maven.plugins</groupId>
<reportPlugins> <artifactId>maven-project-info-reports-plugin</artifactId>
<reportPlugin> </reportPlugin>
<groupId>org.apache.maven.plugins</groupId> </reportPlugins>
<artifactId>maven-project-info-reports-plugin</artifactId> </configuration>
</reportPlugin> </execution>
</reportPlugins> </executions>
</configuration> <configuration>
</plugin> <outputDirectory>C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\customTarget\site
</plugins> </outputDirectory>
</build> <reportPlugins>
<reporting> <reportPlugin>
<outputDirectory>C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\customTarget\site</outputDirectory> <groupId>org.apache.maven.plugins</groupId>
</reporting> <artifactId>maven-project-info-reports-plugin</artifactId>
</reportPlugin>
</reportPlugins>
</configuration>
</plugin>
</plugins>
</build>
<reporting>
<outputDirectory>C:\Users\emicu\Desktop\tutorials\maven-modules\maven-pom-types\customTarget\site
</outputDirectory>
</reporting>
</project> </project>
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1.346 s
[INFO] Finished at: 2021-05-15T17:28:30+03:00
[INFO]
------------------------------------------------------------------------

View File

@ -13,136 +13,136 @@
<!-- START SNIPPET: superpom --> <!-- START SNIPPET: superpom -->
<project> <project>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<repositories> <repositories>
<repository> <repository>
<id>central</id> <id>central</id>
<name>Central Repository</name> <name>Central Repository</name>
<url>https://repo.maven.apache.org/maven2</url> <url>https://repo.maven.apache.org/maven2</url>
<layout>default</layout> <layout>default</layout>
<snapshots> <snapshots>
<enabled>false</enabled> <enabled>false</enabled>
</snapshots> </snapshots>
</repository> </repository>
</repositories> </repositories>
<pluginRepositories> <pluginRepositories>
<pluginRepository> <pluginRepository>
<id>central</id> <id>central</id>
<name>Central Repository</name> <name>Central Repository</name>
<url>https://repo.maven.apache.org/maven2</url> <url>https://repo.maven.apache.org/maven2</url>
<layout>default</layout> <layout>default</layout>
<snapshots> <snapshots>
<enabled>false</enabled> <enabled>false</enabled>
</snapshots> </snapshots>
<releases> <releases>
<updatePolicy>never</updatePolicy> <updatePolicy>never</updatePolicy>
</releases> </releases>
</pluginRepository> </pluginRepository>
</pluginRepositories> </pluginRepositories>
<build> <build>
<directory>${project.basedir}/target</directory> <directory>${project.basedir}/target</directory>
<outputDirectory>${project.build.directory}/classes</outputDirectory> <outputDirectory>${project.build.directory}/classes</outputDirectory>
<finalName>${project.artifactId}-${project.version}</finalName> <finalName>${project.artifactId}-${project.version}</finalName>
<testOutputDirectory>${project.build.directory}/test-classes <testOutputDirectory>${project.build.directory}/test-classes
</testOutputDirectory> </testOutputDirectory>
<sourceDirectory>${project.basedir}/src/main/java</sourceDirectory> <sourceDirectory>${project.basedir}/src/main/java</sourceDirectory>
<scriptSourceDirectory>${project.basedir}/src/main/scripts <scriptSourceDirectory>${project.basedir}/src/main/scripts
</scriptSourceDirectory> </scriptSourceDirectory>
<testSourceDirectory>${project.basedir}/src/test/java <testSourceDirectory>${project.basedir}/src/test/java
</testSourceDirectory> </testSourceDirectory>
<resources> <resources>
<resource> <resource>
<directory>${project.basedir}/src/main/resources</directory> <directory>${project.basedir}/src/main/resources</directory>
</resource> </resource>
</resources> </resources>
<testResources> <testResources>
<testResource> <testResource>
<directory>${project.basedir}/src/test/resources</directory> <directory>${project.basedir}/src/test/resources</directory>
</testResource> </testResource>
</testResources> </testResources>
<pluginManagement> <pluginManagement>
<!-- NOTE: These plugins will be removed from future versions of the super <!-- NOTE: These plugins will be removed from future versions of the super
POM --> POM -->
<!-- They are kept for the moment as they are very unlikely to conflict <!-- They are kept for the moment as they are very unlikely to conflict
with lifecycle mappings (MNG-4453) --> with lifecycle mappings (MNG-4453) -->
<plugins> <plugins>
<plugin> <plugin>
<artifactId>maven-antrun-plugin</artifactId> <artifactId>maven-antrun-plugin</artifactId>
<version>1.3</version> <version>1.3</version>
</plugin> </plugin>
<plugin> <plugin>
<artifactId>maven-assembly-plugin</artifactId> <artifactId>maven-assembly-plugin</artifactId>
<version>2.2-beta-5</version> <version>2.2-beta-5</version>
</plugin> </plugin>
<plugin> <plugin>
<artifactId>maven-dependency-plugin</artifactId> <artifactId>maven-dependency-plugin</artifactId>
<version>2.8</version> <version>2.8</version>
</plugin> </plugin>
<plugin> <plugin>
<artifactId>maven-release-plugin</artifactId> <artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version> <version>2.5.3</version>
</plugin> </plugin>
</plugins> </plugins>
</pluginManagement> </pluginManagement>
</build> </build>
<reporting> <reporting>
<outputDirectory>${project.build.directory}/site</outputDirectory> <outputDirectory>${project.build.directory}/site</outputDirectory>
</reporting> </reporting>
<profiles> <profiles>
<!-- NOTE: The release profile will be removed from future versions of <!-- NOTE: The release profile will be removed from future versions of
the super POM --> the super POM -->
<profile> <profile>
<id>release-profile</id> <id>release-profile</id>
<activation> <activation>
<property> <property>
<name>performRelease</name> <name>performRelease</name>
<value>true</value> <value>true</value>
</property> </property>
</activation> </activation>
<build> <build>
<plugins> <plugins>
<plugin> <plugin>
<inherited>true</inherited> <inherited>true</inherited>
<artifactId>maven-source-plugin</artifactId> <artifactId>maven-source-plugin</artifactId>
<executions> <executions>
<execution> <execution>
<id>attach-sources</id> <id>attach-sources</id>
<goals> <goals>
<goal>jar-no-fork</goal> <goal>jar-no-fork</goal>
</goals> </goals>
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<plugin> <plugin>
<inherited>true</inherited> <inherited>true</inherited>
<artifactId>maven-javadoc-plugin</artifactId> <artifactId>maven-javadoc-plugin</artifactId>
<executions> <executions>
<execution> <execution>
<id>attach-javadocs</id> <id>attach-javadocs</id>
<goals> <goals>
<goal>jar</goal> <goal>jar</goal>
</goals> </goals>
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<plugin> <plugin>
<inherited>true</inherited> <inherited>true</inherited>
<artifactId>maven-deploy-plugin</artifactId> <artifactId>maven-deploy-plugin</artifactId>
<configuration> <configuration>
<updateReleaseInfo>true</updateReleaseInfo> <updateReleaseInfo>true</updateReleaseInfo>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
</profile> </profile>
</profiles> </profiles>
</project> </project>
<!-- END SNIPPET: superpom --> <!-- END SNIPPET: superpom -->

View File

@ -1,14 +1,9 @@
<?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>
<groupId>com.baeldung</groupId> <groupId>com.baeldung</groupId>
<artifactId>maven-pom-types</artifactId> <artifactId>maven-pom-types</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
<build>
<directory>${project.basedir}/customTarget</directory>
</build>
</project> </project>