123 lines
5.5 KiB
XML
123 lines
5.5 KiB
XML
<?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"
|
|
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>
|
|
|
|
<parent>
|
|
<artifactId>maven-classifier</artifactId>
|
|
<groupId>com.baeldung</groupId>
|
|
<version>0.0.1-SNAPSHOT</version>
|
|
</parent>
|
|
|
|
<artifactId>maven-classifier-example-provider</artifactId>
|
|
<version>0.0.1-SNAPSHOT</version>
|
|
|
|
<properties>
|
|
<maven.compiler.source>8</maven.compiler.source>
|
|
<maven.compiler.target>8</maven.compiler.target>
|
|
<!-- <jdk.11.executable.path></jdk.11.executable.path>-->
|
|
</properties>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>3.10.0</version>
|
|
<executions>
|
|
<execution>
|
|
<id>JDK 8</id>
|
|
<phase>compile</phase>
|
|
<goals>
|
|
<goal>compile</goal>
|
|
</goals>
|
|
<configuration>
|
|
<source>8</source>
|
|
<target>8</target>
|
|
<fork>true</fork>
|
|
</configuration>
|
|
</execution>
|
|
<!-- For example purpose not building as it requires both JDK 8 and 11 executables on the build machine -->
|
|
<!-- <execution>-->
|
|
<!-- <id>JDK 11</id>-->
|
|
<!-- <phase>compile</phase>-->
|
|
<!-- <goals>-->
|
|
<!-- <goal>compile</goal>-->
|
|
<!-- </goals>-->
|
|
<!-- <configuration>-->
|
|
<!-- <fork>true</fork>-->
|
|
<!-- <outputDirectory>${project.build.outputDirectory}_jdk11</outputDirectory>-->
|
|
<!-- <executable>${jdk.11.executable.path}</executable>-->
|
|
<!-- <source>8</source>-->
|
|
<!-- <target>11</target>-->
|
|
<!-- </configuration>-->
|
|
<!-- </execution>-->
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
<version>3.2.2</version>
|
|
<executions>
|
|
<execution>
|
|
<id>Arbitrary</id>
|
|
<goals>
|
|
<goal>jar</goal>
|
|
</goals>
|
|
<configuration>
|
|
<classifier>arbitrary</classifier>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>Test Jar</id>
|
|
<goals>
|
|
<goal>test-jar</goal>
|
|
</goals>
|
|
</execution>
|
|
<!-- For example purpose not building as it requires both JDK 8 and 11 executables on the build machine -->
|
|
<!-- <execution>-->
|
|
<!-- <id>default-package-jdk11</id>-->
|
|
<!-- <phase>package</phase>-->
|
|
<!-- <goals>-->
|
|
<!-- <goal>jar</goal>-->
|
|
<!-- </goals>-->
|
|
<!-- <configuration>-->
|
|
<!-- <classesDirectory>${project.build.outputDirectory}_jdk11</classesDirectory>-->
|
|
<!-- <classifier>jdk11</classifier>-->
|
|
<!-- </configuration>-->
|
|
<!-- </execution>-->
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-source-plugin</artifactId>
|
|
<version>3.2.1</version>
|
|
<executions>
|
|
<execution>
|
|
<id>attach-sources</id>
|
|
<phase>verify</phase>
|
|
<goals>
|
|
<goal>jar-no-fork</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
|
<version>3.3.2</version>
|
|
<executions>
|
|
<execution>
|
|
<id>attach-javadocs</id>
|
|
<goals>
|
|
<goal>jar</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</project>
|