151 lines
4.0 KiB
XML
151 lines
4.0 KiB
XML
<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>
|
|
<groupId>com.baeldung</groupId>
|
|
<artifactId>maven</artifactId>
|
|
<version>0.0.1-SNAPSHOT</version>
|
|
|
|
<parent>
|
|
<artifactId>parent-modules</artifactId>
|
|
<groupId>com.baeldung</groupId>
|
|
<version>1.0.0-SNAPSHOT</version>
|
|
</parent>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
<version>${maven.resources.version}</version>
|
|
<configuration>
|
|
<outputDirectory>output-resources</outputDirectory>
|
|
<resources>
|
|
<resource>
|
|
<directory>input-resources</directory>
|
|
<excludes>
|
|
<exclude>*.png</exclude>
|
|
</excludes>
|
|
<filtering>true</filtering>
|
|
</resource>
|
|
</resources>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>${maven-compiler-plugin.version}</version>
|
|
<configuration>
|
|
<source>${java.version}</source>
|
|
<target>${java.version}</target>
|
|
<compilerArgs>
|
|
<arg>-Xlint:unchecked</arg>
|
|
</compilerArgs>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<version>${maven-surefire-plugin.version}</version>
|
|
<configuration>
|
|
<excludes>
|
|
<exclude>DataTest.java</exclude>
|
|
</excludes>
|
|
<includes>
|
|
<include>TestFail.java</include>
|
|
<include>DataCheck.java</include>
|
|
</includes>
|
|
<testFailureIgnore>true</testFailureIgnore>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-failsafe-plugin</artifactId>
|
|
<version>${maven.failsafe.version}</version>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>integration-test</goal>
|
|
<goal>verify</goal>
|
|
</goals>
|
|
<configuration>
|
|
<!-- configuration similar to surefire -->
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-verifier-plugin</artifactId>
|
|
<version>${maven.verifier.version}</version>
|
|
<configuration>
|
|
<verificationFile>input-resources/verifications.xml</verificationFile>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>verify</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-clean-plugin</artifactId>
|
|
<version>${maven.clean.version}</version>
|
|
<configuration>
|
|
<filesets>
|
|
<fileset>
|
|
<directory>output-resources</directory>
|
|
</fileset>
|
|
</filesets>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>build-helper-maven-plugin</artifactId>
|
|
<version>${maven.build.helper.version}</version>
|
|
<executions>
|
|
<execution>
|
|
<phase>generate-sources</phase>
|
|
<goals>
|
|
<goal>add-source</goal>
|
|
</goals>
|
|
<configuration>
|
|
<sources>
|
|
<source>src/main/another-src</source>
|
|
</sources>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>default</id>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<version>${maven-surefire-plugin.version}</version>
|
|
<configuration>
|
|
<excludes>
|
|
<exclude>DataTest.java</exclude>
|
|
</excludes>
|
|
<includes>
|
|
<include>TestFail.java</include>
|
|
<include>DataCheck.java</include>
|
|
</includes>
|
|
<testFailureIgnore>true</testFailureIgnore>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
|
|
<properties>
|
|
<maven.resources.version>3.0.2</maven.resources.version>
|
|
<maven.failsafe.version>2.21.0</maven.failsafe.version>
|
|
<maven.verifier.version>1.1</maven.verifier.version>
|
|
<maven.clean.version>3.0.0</maven.clean.version>
|
|
<maven.build.helper.version>3.0.0</maven.build.helper.version>
|
|
<resources.name>Baeldung</resources.name>
|
|
</properties>
|
|
|
|
</project> |