-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update pom for better support of multi jdk compilation
- Loading branch information
1 parent
5d87db4
commit 5464e7a
Showing
1 changed file
with
86 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,77 +1,100 @@ | ||
<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> | ||
<groupId>org.bsc.maven</groupId> | ||
<artifactId>maven-confluence-parent</artifactId> | ||
<version>7.4.1-SNAPSHOT</version> | ||
</parent> | ||
<artifactId>maven-confluence-processor-freemarker</artifactId> | ||
<name>CONFLUENCE-REPORTING::Freemaker::Processor</name> | ||
<description>maven confluence plugin - site preprocessor based on freemaker</description> | ||
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> | ||
<groupId>org.bsc.maven</groupId> | ||
<artifactId>maven-confluence-parent</artifactId> | ||
<version>7.4.1-SNAPSHOT</version> | ||
</parent> | ||
<artifactId>maven-confluence-processor-freemarker</artifactId> | ||
<name>CONFLUENCE-REPORTING::Freemaker::Processor</name> | ||
<description>maven confluence plugin - site preprocessor based on freemaker</description> | ||
|
||
<dependencies> | ||
<!-- | ||
<dependency> | ||
<groupId>org.kohsuke.metainf-services</groupId> | ||
<artifactId>metainf-services</artifactId> | ||
<optional>true</optional> | ||
</dependency> | ||
--> | ||
<dependency> | ||
<groupId>org.freemarker</groupId> | ||
<artifactId>freemarker</artifactId> | ||
<version>2.3.29</version> | ||
</dependency> | ||
<dependencies> | ||
<!-- | ||
<dependency> | ||
<groupId>org.kohsuke.metainf-services</groupId> | ||
<artifactId>metainf-services</artifactId> | ||
<optional>true</optional> | ||
</dependency> | ||
--> | ||
<dependency> | ||
<groupId>org.freemarker</groupId> | ||
<artifactId>freemarker</artifactId> | ||
<version>2.3.29</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>${project.groupId}</groupId> | ||
<artifactId>maven-confluence-core</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
|
||
</dependencies> | ||
</dependencies> | ||
|
||
<build> | ||
|
||
<plugins> | ||
|
||
<build> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>compile-java-8</id> | ||
<goals> | ||
<goal>compile</goal> | ||
</goals> | ||
<configuration> | ||
<compileSourceRoots> | ||
<compileSourceRoot>${project.basedir}/src/main/java</compileSourceRoot> | ||
</compileSourceRoots> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
|
||
<plugins> | ||
</plugins> | ||
</build> | ||
<profiles> | ||
<profile> | ||
<id>java9above</id> | ||
<activation> | ||
<jdk>[9,)</jdk><!-- java9 and above --> | ||
</activation> | ||
|
||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>compile-java-8</id> | ||
<goals> | ||
<goal>compile</goal> | ||
</goals> | ||
<configuration> | ||
<compileSourceRoots> | ||
<compileSourceRoot>${project.basedir}/src/main/java</compileSourceRoot> | ||
</compileSourceRoots> | ||
</configuration> | ||
</execution> | ||
<execution> | ||
<id>compile-java-9</id> | ||
<phase>compile</phase> | ||
<goals> | ||
<goal>compile</goal> | ||
</goals> | ||
<configuration> | ||
<release>9</release> | ||
<compileSourceRoots> | ||
<compileSourceRoot>${project.basedir}/src/main/java</compileSourceRoot> | ||
<compileSourceRoot>${project.basedir}/src/main/java9</compileSourceRoot> | ||
</compileSourceRoots> | ||
<compilerArgs> | ||
</compilerArgs> | ||
<outputDirectory>${project.build.outputDirectory}/META-INF/versions/9</outputDirectory> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>compile-java-9</id> | ||
<phase>compile</phase> | ||
<goals> | ||
<goal>compile</goal> | ||
</goals> | ||
<configuration> | ||
<release>9</release> | ||
<compileSourceRoots> | ||
<compileSourceRoot>${project.basedir}/src/main/java</compileSourceRoot> | ||
<compileSourceRoot>${project.basedir}/src/main/java9</compileSourceRoot> | ||
</compileSourceRoots> | ||
<compilerArgs> | ||
</compilerArgs> | ||
<outputDirectory>${project.build.outputDirectory}/META-INF/versions/9 | ||
</outputDirectory> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
<dependencies> | ||
</dependencies> | ||
</profile> | ||
|
||
</plugins> | ||
</build> | ||
</profiles> | ||
</project> |