blob: db26c67d7b671be2b7f82a2376c88afcd1aa083a [file] [log] [blame]
Stephan Herrmann2feba952012-05-26 15:02:07 +02001<?xml version="1.0" encoding="UTF-8"?>
2<!--
Stephan Herrmann85b99d32018-08-03 23:25:30 +02003 Copyright (c) 2012, 2018 Eclipse Foundation and others.
Stephan Herrmann2feba952012-05-26 15:02:07 +02004 All rights reserved. This program and the accompanying materials
5 are made available under the terms of the Eclipse Distribution License v1.0
6 which accompanies this distribution, and is available at
7 http://www.eclipse.org/org/documents/edl-v10.php
8
9 Contributors:
10 Igor Fedorenko - initial implementation
11-->
Stephan Herrmannc7600d82013-04-28 22:48:05 +020012<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">
Stephan Herrmann2feba952012-05-26 15:02:07 +020013 <modelVersion>4.0.0</modelVersion>
14 <parent>
15 <artifactId>eclipse.jdt.core</artifactId>
16 <groupId>eclipse.jdt.core</groupId>
Stephan Herrmanna441c702018-10-14 17:51:04 +020017 <version>4.10.0-SNAPSHOT</version>
Stephan Herrmann2feba952012-05-26 15:02:07 +020018 </parent>
Stephan Herrmann396f3342013-03-14 14:31:57 +010019 <groupId>org.eclipse.jdt</groupId>
Stephan Herrmann2feba952012-05-26 15:02:07 +020020 <artifactId>org.eclipse.jdt.core</artifactId>
Stephan Herrmanna441c702018-10-14 17:51:04 +020021 <version>3.16.0-SNAPSHOT</version>
Stephan Herrmann2feba952012-05-26 15:02:07 +020022 <packaging>eclipse-plugin</packaging>
23
Stephan Herrmann4c6c5002013-09-12 23:09:47 +020024 <properties>
25 <defaultSigning-excludeInnerJars>true</defaultSigning-excludeInnerJars>
Stephan Herrmannd4cbc682016-10-28 20:51:00 +020026 <code.ignoredWarnings>-warn:+fieldHiding,-unavoidableGenericProblems</code.ignoredWarnings>
Stephan Herrmann4c6c5002013-09-12 23:09:47 +020027 </properties>
28
Stephan Herrmann2feba952012-05-26 15:02:07 +020029 <build>
30 <plugins>
Stephan Herrmann309166a2013-06-07 21:35:48 +020031 <plugin>
32 <artifactId>maven-antrun-plugin</artifactId>
33 <executions>
34 <execution>
35 <phase>prepare-package</phase>
36 <configuration>
37 <tasks>
38 <replace token="bundle_qualifier," value="${buildQualifier}," dir="${project.build.directory}/classes">
Stephan Herrmann6a72b272013-07-14 17:29:27 +020039 <include name="org/eclipse/jdt/internal/compiler/batch/messages.properties"/>
Stephan Herrmann309166a2013-06-07 21:35:48 +020040 </replace>
Stephan Herrmann1002fa42013-12-17 17:50:02 +010041 <replace token="bundle_version" value="${unqualifiedVersion}" dir="${project.build.directory}/classes">
Stephan Herrmann881bc142014-10-03 22:03:34 +020042 <include name="org/eclipse/jdt/internal/compiler/batch/messages.properties"/>
Stephan Herrmann1002fa42013-12-17 17:50:02 +010043 </replace>
Stephan Herrmann309166a2013-06-07 21:35:48 +020044 </tasks>
45 </configuration>
46 <goals>
47 <goal>run</goal>
48 </goals>
49 </execution>
50 </executions>
51 </plugin>
Stephan Herrmann2feba952012-05-26 15:02:07 +020052 <plugin>
Stephan Herrmann1002fa42013-12-17 17:50:02 +010053 <artifactId>maven-resources-plugin</artifactId>
Stephan Herrmann1002fa42013-12-17 17:50:02 +010054 <executions>
55 <execution>
56 <id>copy-batch-compiler-source</id>
57 <phase>package</phase>
58 <goals>
59 <goal>copy-resources</goal>
60 </goals>
61 <configuration>
62 <outputDirectory>${project.build.directory}/scripts/source</outputDirectory>
63 <resources>
64 <resource>
65 <directory>${project.basedir}/scripts/source</directory>
66 <filtering>true</filtering>
67 </resource>
68 </resources>
69 </configuration>
70 </execution>
71 </executions>
72 </plugin>
73 <plugin>
Stephan Herrmann2feba952012-05-26 15:02:07 +020074 <groupId>org.eclipse.tycho.extras</groupId>
75 <artifactId>tycho-custom-bundle-plugin</artifactId>
Stephan Herrmann1002fa42013-12-17 17:50:02 +010076 <version>${tycho-extras.version}</version>
Stephan Herrmann2feba952012-05-26 15:02:07 +020077 <executions>
78 <execution>
79 <id>antadapter</id>
80 <phase>package</phase>
81 <goals>
82 <goal>custom-bundle</goal>
83 </goals>
Stephan Herrmann5d5db952013-05-18 21:56:53 +020084 <configuration>
85 <archive>
86 <addMavenDescriptor>false</addMavenDescriptor>
87 </archive>
Stephan Herrmann2feba952012-05-26 15:02:07 +020088 <bundleLocation>${project.basedir}/scripts/antadapter</bundleLocation>
89 <classifier>antadapter</classifier>
90 <fileSets>
91 <fileSet>
92 <directory>${project.build.directory}/jdtCompilerAdapter.jar-classes</directory>
93 <excludes>
94 <exclude>org/eclipse/jdt/core/CheckDebugAttributes*.*</exclude>
95 <exclude>org/eclipse/jdt/core/BuildJarIndex*.*</exclude>
96 </excludes>
97 </fileSet>
98 </fileSets>
99 </configuration>
100 </execution>
101 <execution>
Stephan Herrmann5d5db952013-05-18 21:56:53 +0200102 <id>batch-compiler-src</id>
103 <phase>package</phase>
104 <goals>
105 <goal>custom-bundle</goal>
106 </goals>
107 <configuration>
108 <archive>
109 <addMavenDescriptor>false</addMavenDescriptor>
110 </archive>
Stephan Herrmann1002fa42013-12-17 17:50:02 +0100111 <bundleLocation>${project.build.directory}/scripts/source</bundleLocation>
Stephan Herrmann5d5db952013-05-18 21:56:53 +0200112 <classifier>batch-compiler-src</classifier>
113 <fileSets>
114 <fileSet>
115 <directory>${project.basedir}/batch</directory>
116 </fileSet>
117 <fileSet>
118 <directory>${project.basedir}/compiler</directory>
119 </fileSet>
120 <fileSet>
121 <directory>${project.basedir}/antadapter</directory>
122 <excludes>
123 <exclude>org/eclipse/jdt/core/CheckDebugAttributes.java</exclude>
124 <exclude>org/eclipse/jdt/core/BuildJarIndex.java</exclude>
125 </excludes>
126 </fileSet>
127 <fileSet>
128 <directory>${project.basedir}/../org.eclipse.jdt.compiler.tool/src</directory>
129 </fileSet>
130 <fileSet>
131 <directory>${project.basedir}/../org.eclipse.jdt.compiler.apt/src</directory>
132 </fileSet>
133 <fileSet>
134 <directory>${project.basedir}/scripts</directory>
135 <includes>
136 <include>about.html</include>
137 <include>build.xml</include>
Stephan Herrmann35ce9502014-06-05 16:16:02 +0200138 <include>ecj.1</include>
Stephan Herrmann5d5db952013-05-18 21:56:53 +0200139 </includes>
140 </fileSet>
Stephan Herrmannd4cbc682016-10-28 20:51:00 +0200141 <fileSet>
142 <directory>${project.basedir}</directory>
143 <includes>
144 <include>scripts/binary/**</include>
145 </includes>
146 </fileSet>
Stephan Herrmann5d5db952013-05-18 21:56:53 +0200147 </fileSets>
148 </configuration>
149 </execution>
150 <execution>
Stephan Herrmann2feba952012-05-26 15:02:07 +0200151 <id>batch-compiler</id>
152 <phase>package</phase>
153 <goals>
154 <goal>custom-bundle</goal>
155 </goals>
156 <configuration>
Stephan Herrmann5d5db952013-05-18 21:56:53 +0200157 <archive>
158 <addMavenDescriptor>false</addMavenDescriptor>
159 </archive>
Stephan Herrmann2feba952012-05-26 15:02:07 +0200160 <bundleLocation>${project.basedir}/scripts/binary</bundleLocation>
161 <classifier>batch-compiler</classifier>
162 <fileSets>
163 <fileSet>
Stephan Herrmannc7600d82013-04-28 22:48:05 +0200164 <directory>${project.build.directory}/jdtCompilerAdapter.jar-classes</directory>
165 <includes>
166 <include>META-INF/eclipse.inf</include>
167 </includes>
168 </fileSet>
Stephan Herrmann5d5db952013-05-18 21:56:53 +0200169 <fileSet>
170 <directory>${project.basedir}/scripts</directory>
171 <includes>
172 <include>about.html</include>
Stephan Herrmann35ce9502014-06-05 16:16:02 +0200173 <include>ecj.1</include>
Stephan Herrmann5d5db952013-05-18 21:56:53 +0200174 </includes>
175 </fileSet>
Stephan Herrmannc7600d82013-04-28 22:48:05 +0200176 <fileSet>
Stephan Herrmann2feba952012-05-26 15:02:07 +0200177 <directory>${project.build.directory}/classes</directory>
178 <includes>
179 <include>org/eclipse/jdt/internal/compiler/**</include>
180 <include>org/eclipse/jdt/core/compiler/**</include>
181 </includes>
182 <excludes>
183 <exclude>**/package.htm*</exclude>
184 <exclude>org/eclipse/jdt/core/compiler/CompilationParticipant*.class</exclude>
185 <exclude>org/eclipse/jdt/core/compiler/BuildContext.class</exclude>
186 <exclude>org/eclipse/jdt/core/compiler/IScanner.class</exclude>
187 <exclude>org/eclipse/jdt/core/compiler/ITerminalSymbols*.class</exclude>
188 <exclude>org/eclipse/jdt/core/compiler/ReconcileContext*.class</exclude>
189 <exclude>org/eclipse/jdt/internal/compiler/DocumentElementParser*.class</exclude>
190 <exclude>org/eclipse/jdt/internal/compiler/IDocumentElementRequestor.class</exclude>
191 <exclude>org/eclipse/jdt/internal/compiler/ISourceElementRequestor*.class</exclude>
192 <exclude>org/eclipse/jdt/internal/compiler/SourceElementParser*.class</exclude>
193 <exclude>org/eclipse/jdt/internal/compiler/SourceElementRequestorAdapter*.class</exclude>
194 <exclude>org/eclipse/jdt/internal/compiler/SourceJavadocParser*.class</exclude>
195 <exclude>org/eclipse/jdt/internal/compiler/parser/SourceTypeConverter*.class</exclude>
196 </excludes>
197 </fileSet>
198 </fileSets>
199 </configuration>
200 </execution>
201 </executions>
202 </plugin>
203 <plugin>
204 <groupId>org.eclipse.tycho</groupId>
205 <artifactId>tycho-p2-plugin</artifactId>
206 <version>${tycho.version}</version>
Stephan Herrmann7941b7c2013-11-03 16:07:28 +0100207 <configuration>
208 <baselineMode>warn</baselineMode>
209 <baselineReplace>common</baselineReplace>
210 </configuration>
Stephan Herrmann2feba952012-05-26 15:02:07 +0200211 <executions>
212 <execution>
213 <id>attached-p2-metadata</id>
214 <phase>package</phase>
215 <goals>
216 <goal>p2-metadata</goal>
217 </goals>
218 </execution>
219 </executions>
220 </plugin>
221 </plugins>
222 </build>
223</project>