Skip to content

Commit

Permalink
Add usage of maven-toolchains-plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernard31 committed Jun 18, 2020
1 parent 3a1a64e commit cbf3e35
Showing 1 changed file with 58 additions and 1 deletion.
59 changes: 58 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,60 @@ Contributors:
<test.exclusion.pattern>nothing</test.exclusion.pattern>
</properties>
</profile>
<profile>
<id>jdk8orGreater</id>
<activation>
<jdk>[1.8,)</jdk>
</activation>
<properties>
<jdk8orGreater>true</jdk8orGreater>
</properties>
</profile>
<profile>
<!-- This profile activate the usage of toolchain to compile using JDK 1.7-->
<id>useToolchain</id>
<properties>
<jdk8orGreater>false</jdk8orGreater>
</properties>
<build>
<plugins>
<plugin>
<artifactId>maven-toolchains-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>toolchain</goal>
</goals>
</execution>
</executions>
<configuration>
<toolchains>
<jdk>
<version>1.7</version>
</jdk>
</toolchains>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>configure-doclint</id>
<activation>
<property><name>jdk8orGreater</name><value>true</value></property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<doclint>all,-missing</doclint>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<!-- this profile generate all the needed artifact and signatures needed, then release it on maven central -->
<id>release</id>
Expand Down Expand Up @@ -235,6 +289,10 @@ Contributors:
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.4.1</version>
</plugin>
<plugin>
<artifactId>maven-toolchains-plugin</artifactId>
<version>3.0.0</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
Expand Down Expand Up @@ -294,7 +352,6 @@ Contributors:
<configuration>
<excludePackageNames>org.eclipse.leshan.core.util</excludePackageNames>
<quiet>true</quiet>
<doclint>all,-missing</doclint>
</configuration>
</plugin>
<plugin>
Expand Down

0 comments on commit cbf3e35

Please sign in to comment.