simplify pipelines
[maven-build-process.git] / maven-mixins / maven-mixins-jdt-compiler / pom.xml
blobf61800d17a9eae0dbb43fb4ff72b7f3294f2e430
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
4     This file is part of maven-build-process. It is subject to the license terms in the LICENSE file found in the top-level
5     directory of this distribution and at http://creativecommons.org/publicdomain/zero/1.0/. No part of maven-build-process,
6     including this file, may be copied, modified, propagated, or distributed except according to the terms contained
7     in the LICENSE file.
9 -->
10 <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">
11   <modelVersion>4.0.0</modelVersion>
13   <!-- ordering follows https://maven.apache.org/developers/conventions/code.html#POM_Code_Convention -->
15   <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
16   <!--                                 PARENT                                  -->
17   <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
18   <!-- https://maven.apache.org/pom.html#Inheritance -->
19   <parent>
20     <groupId>de.xn--ho-hia.maven</groupId>
21     <artifactId>maven-mixins</artifactId>
22     <version>0.0.0-SNAPSHOT</version>
23   </parent>
25   <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
26   <!--                               COORDINATES                               -->
27   <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
28   <!-- https://maven.apache.org/pom.html#Maven_Coordinates -->
29   <artifactId>maven-mixins-jdt-compiler</artifactId>
30   <packaging>pom</packaging>
32   <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
33   <!--                               INFORMATIONS                              -->
34   <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
35   <!-- https://maven.apache.org/pom.html#More_Project_Information -->
36   <name>Maven Mixins :: JDT Compiler</name>
37   <description>Prepares the build to use the Eclipse JDT compiler</description>
39   <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
40   <!--                                PROPERTIES                               -->
41   <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
42   <!-- https://maven.apache.org/pom.html#Properties -->
43   <properties>
44     <version.m-compiler-p>3.5.1</version.m-compiler-p>
45     <version.tycho-compiler-jdt>0.24.0</version.tycho-compiler-jdt>
46     <version.m-remote-resources-p>1.5</version.m-remote-resources-p>
47     <version.jdt-settings>2.0.0</version.jdt-settings>
48     <version.jdk>1.8</version.jdk>
49   </properties>
51   <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
52   <!--                                   BUILD                                 -->
53   <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
54   <!-- https://maven.apache.org/pom.html#Build -->
55   <build>
56     <!-- https://maven.apache.org/pom.html#Plugin_Management -->
57     <pluginManagement>
58       <!-- https://maven.apache.org/pom.html#Plugins -->
59       <plugins>
61         <plugin>
62           <!-- https://maven.apache.org/plugins/maven-compiler-plugin/ -->
63           <groupId>org.apache.maven.plugins</groupId>
64           <artifactId>maven-compiler-plugin</artifactId>
65           <version>${version.m-compiler-p}</version>
66           <configuration>
67             <!-- https://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#source -->
68             <source>${version.jdk}</source>
69             <!-- https://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#target -->
70             <target>${version.jdk}</target>
71             <!-- https://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#compilerId -->
72             <compilerId>jdt</compilerId>
73             <!-- https://eclipse.org/tycho/sitedocs/tycho-compiler-plugin/compile-mojo.html#useProjectSettings -->
74             <useProjectSettings>true</useProjectSettings>
75             <!-- https://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#compilerArgument -->
76             <!-- https://docs.oracle.com/javase/8/docs/technotes/tools/unix/javac.html -->
77             <compilerArgument>-parameters</compilerArgument>
78           </configuration>
79           <dependencies>
80             <!-- This dependency provides the implementation of compiler "jdt" -->
81             <dependency>
82               <!-- https://eclipse.org/tycho/sitedocs/ -->
83               <groupId>org.eclipse.tycho</groupId>
84               <artifactId>tycho-compiler-jdt</artifactId>
85               <version>${version.tycho-compiler-jdt}</version>
86             </dependency>
87           </dependencies>
88         </plugin>
90         <plugin>
91           <!-- https://maven.apache.org/plugins/maven-remote-resources-plugin/ -->
92           <groupId>org.apache.maven.plugins</groupId>
93           <artifactId>maven-remote-resources-plugin</artifactId>
94           <version>${version.m-remote-resources-p}</version>
95           <executions>
96             <execution>
97               <id>jdt-settings</id>
98               <goals>
99                 <!-- https://maven.apache.org/plugins/maven-remote-resources-plugin/process-mojo.html -->
100                 <goal>process</goal>
101               </goals>
102               <configuration>
103                 <!-- https://maven.apache.org/plugins/maven-remote-resources-plugin/process-mojo.html#attachToMain -->
104                 <attachToMain>false</attachToMain>
105                 <!-- https://maven.apache.org/plugins/maven-remote-resources-plugin/process-mojo.html#attachToTest -->
106                 <attachToTest>false</attachToTest>
107                 <!-- https://maven.apache.org/plugins/maven-remote-resources-plugin/process-mojo.html#resourceBundles -->
108                 <resourceBundles>
109                   <resourceBundle>de.xn--ho-hia.maven:maven-resources-jdt-settings:${project.version}</resourceBundle>
110                 </resourceBundles>
111                 <!-- https://maven.apache.org/plugins/maven-remote-resources-plugin/process-mojo.html#outputDirectory -->
112                 <outputDirectory>${project.basedir}/.settings</outputDirectory>
113               </configuration>
114             </execution>
115           </executions>
116         </plugin>
118       </plugins>
119     </pluginManagement>
120   </build>
122 </project>