2022-02-26 06:55:31 -05:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
2022-03-13 05:18:44 -04:00
|
|
|
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">
|
2022-02-26 06:55:31 -05:00
|
|
|
<modelVersion>4.0.0</modelVersion>
|
2022-03-13 05:18:44 -04:00
|
|
|
<artifactId>maven-classifier-example-provider</artifactId>
|
|
|
|
<version>0.0.1-SNAPSHOT</version>
|
2022-02-26 06:55:31 -05:00
|
|
|
|
|
|
|
<parent>
|
|
|
|
<artifactId>maven-classifier</artifactId>
|
|
|
|
<groupId>com.baeldung</groupId>
|
|
|
|
<version>0.0.1-SNAPSHOT</version>
|
|
|
|
</parent>
|
|
|
|
|
|
|
|
<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>
|
2022-03-13 05:18:44 -04:00
|
|
|
<!-- 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> -->
|
2022-02-26 06:55:31 -05:00
|
|
|
</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>
|
2022-03-13 05:18:44 -04:00
|
|
|
<!-- 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> -->
|
2022-02-26 06:55:31 -05:00
|
|
|
</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>
|
2022-03-13 05:18:44 -04:00
|
|
|
|
|
|
|
<properties>
|
|
|
|
<maven.compiler.source>8</maven.compiler.source>
|
|
|
|
<maven.compiler.target>8</maven.compiler.target>
|
|
|
|
<!-- <jdk.11.executable.path></jdk.11.executable.path> -->
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
</project>
|