blob: de4e2ec8003bcc6ed75375b41fdcbd7927ee44a4 [file] [log] [blame]
Olaf Ottof4c02132010-10-10 20:39:11 +00001<?xml version="1.0" encoding="UTF-8"?>
2<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">
3 <modelVersion>4.0.0</modelVersion>
4
5 <groupId>org.eclipse</groupId>
6 <artifactId>objectteams-parent-pom</artifactId>
Stephan Herrmann0c023b32012-10-30 22:24:14 +01007 <version>2.1.1</version>
Olaf Ottof4c02132010-10-10 20:39:11 +00008 <packaging>pom</packaging>
9
Stephan Herrmannb8651992010-10-18 14:02:33 +000010 <name>Object Teams parent pom</name>
Olaf Ottof4c02132010-10-10 20:39:11 +000011
Stephan Herrmannb8651992010-10-18 14:02:33 +000012 <url>http://download.eclipse.org/objectteams/maven/3/sites/${project.artifactId}</url>
Olaf Ottof4c02132010-10-10 20:39:11 +000013
14 <description>
Stephan Herrmannb8651992010-10-18 14:02:33 +000015 This is the parent pom for Object Teams projects using Maven3.
16 It specifies the core dependencies and configurations for building and
Olaf Ottof4c02132010-10-10 20:39:11 +000017 executing Object Teams code using Maven.
18 </description>
19
20 <licenses>
21 <license>
22 <name>Eclipse Public License Version 1.0</name>
23 <comments>
Stephan Herrmannb8651992010-10-18 14:02:33 +000024 This file is part of "Object Teams Development Tooling"-Software.
Olaf Ottof4c02132010-10-10 20:39:11 +000025
Stephan Herrmanncac17412012-07-05 21:36:45 +020026 Copyright 2010, 2012 GK Software AG and others.
Olaf Ottof4c02132010-10-10 20:39:11 +000027 All rights reserved. This program and the accompanying materials
28 are made available under the terms of the Eclipse Public License v1.0
29 which accompanies this distribution, and is available at
30 http://www.eclipse.org/legal/epl-v10.html
31
32 Please visit http://www.eclipse.org/objectteams for updates and contact.
33
34 Contributors:
Stephan Herrmannb8651992010-10-18 14:02:33 +000035 Olaf Otto - Initial concept,
36 Stephan Herrmann - Initial API and implementation.
Olaf Ottof4c02132010-10-10 20:39:11 +000037 </comments>
38 </license>
39 </licenses>
40
Stephan Herrmannb8651992010-10-18 14:02:33 +000041 <organization>
42 <name>Eclipse Object Teams Project</name>
43 <url>http://www.eclipse.org/objectteams</url>
44 </organization>
45
46 <developers>
47 <developer><name>Olaf Otto</name></developer>
48 <developer><name>Stephan Herrmann</name><organization>GK Software AG</organization></developer>
49 </developers>
50
51 <mailingLists>
52 <mailingList><name>Object Teams Forum</name><archive>http://www.eclipse.org/forums/eclipse.objectteams</archive></mailingList>
53 </mailingLists>
54
55 <issueManagement>
56 <system>Bugzilla</system>
Stephan Herrmannb613afe2011-06-13 17:00:53 +000057 <url>http://bugs.eclipse.org/bugs</url>
Stephan Herrmannb8651992010-10-18 14:02:33 +000058 </issueManagement>
59
Olaf Ottof4c02132010-10-10 20:39:11 +000060 <repositories>
61 <repository>
62 <id>ObjectTeamsRepository</id>
63 <name>Object Teams Repository</name>
64 <url>http://download.eclipse.org/objectteams/maven/3/repository</url>
65 </repository>
66 </repositories>
67
68
69 <pluginRepositories>
70 <pluginRepository>
71 <id>ObjectTeamsPluginRepository</id>
72 <name>Object Teams Plugin Repository</name>
73 <url>http://download.eclipse.org/objectteams/maven/3/repository</url>
74 </pluginRepository>
75 </pluginRepositories>
76
77
78 <!-- Required property from settings.xml: -->
79 <!-- settings.localRepository path to the local Maven repository. -->
80 <properties>
Stephan Herrmannb8651992010-10-18 14:02:33 +000081 <!-- Repository path of this module within the Object Teams svn: -->
Stephan Herrmanncac17412012-07-05 21:36:45 +020082 <project-repository-path>maven/infrastructure/parent-pom</project-repository-path>
Stephan Herrmannb8651992010-10-18 14:02:33 +000083
Olaf Ottof4c02132010-10-10 20:39:11 +000084 <!-- Our Version: -->
Stephan Herrmann0c023b32012-10-30 22:24:14 +010085 <otj.version>2.1.1</otj.version>
Olaf Ottof4c02132010-10-10 20:39:11 +000086
87 <!-- Versions of dependencies: -->
88 <bcel.version>5.2</bcel.version>
Stephan Herrmann0c023b32012-10-30 22:24:14 +010089 <tycho.version>0.16.0</tycho.version>
Olaf Ottof4c02132010-10-10 20:39:11 +000090
91 <!-- Absolut paths for providing startup arguments to the JVM -->
92 <otj.otre.location>${settings.localRepository}/org/eclipse/objectteams-runtime/${otj.version}/objectteams-runtime-${otj.version}.jar</otj.otre.location>
93 <otj.agent.location>${settings.localRepository}/org/eclipse/objectteams-otre-agent/${otj.version}/objectteams-otre-agent-${otj.version}-nodep.jar</otj.agent.location>
94 <otj.bcel.location>${settings.localRepository}/org/apache/bcel/bcel/${bcel.version}/bcel-${bcel.version}.jar</otj.bcel.location>
95
96 <!-- Bootclasspath -->
97 <otj.bootcp.arg>-Xbootclasspath/a:${otj.otre.location}:${otj.bcel.location}:${otj.agent.location}</otj.bootcp.arg>
98 <!-- Object teams JPLIS agent -->
99 <otj.agent.arg>-javaagent:${otj.agent.location}</otj.agent.arg>
100 <!--
101 Default arguments for running OT/J programs.
102 -Dot.debug facilitates (remote) debugging.
103 Xmx / Xms are required for reproducable build results, as ltw uses a
104 significant amount of memory during startup.
105 -->
106 <surefire.argline>${otj.bootcp.arg} ${otj.agent.arg} -Dot.debug -Xms128m -Xmx512m</surefire.argline>
107 </properties>
108
Stephan Herrmannb8651992010-10-18 14:02:33 +0000109 <scm>
Stephan Herrmanne395bd42011-06-13 12:21:36 +0000110 <!-- WTF: release will "improve" the connection to using svn+ssh and advertize this for anonymous access !@#!%$ -->
Stephan Herrmanncac17412012-07-05 21:36:45 +0200111 <connection>scm:git:git://git.eclipse.org/gitroot/objectteams/org.eclipse.objectteams.git/${project-repository-path}</connection>
112 <developerConnection>scm:git:ssh://${username}@git.eclipse.org/gitroot/objectteams/org.eclipse.objectteams.git/${project-repository-path}</developerConnection>
Stephan Herrmanne395bd42011-06-13 12:21:36 +0000113 <!-- WTF: release will "improve" the connection to using svn+ssh and advertize this for web access !@#!%$ -->
Stephan Herrmanncac17412012-07-05 21:36:45 +0200114 <url>http://git.eclipse.org/c/objectteams/org.eclipse.objectteams.git</url>
Stephan Herrmannb8651992010-10-18 14:02:33 +0000115 </scm>
116
117 <reporting>
118 <plugins>
119 <!-- See http://maven.apache.org/plugins/maven-project-info-reports-plugin/ -->
120 <plugin>
121 <groupId>org.apache.maven.plugins</groupId>
122 <artifactId>maven-project-info-reports-plugin</artifactId>
123 <version>2.2</version>
124 </plugin>
125 </plugins>
126 </reporting>
127
Olaf Ottof4c02132010-10-10 20:39:11 +0000128 <build>
129 <pluginManagement>
130 <plugins>
Stephan Herrmann0c023b32012-10-30 22:24:14 +0100131
Olaf Ottof4c02132010-10-10 20:39:11 +0000132 <plugin>
133 <!--
134 Use compiler plugin with tycho as the adapter to the OT/J compiler.
135 Using java 1.6 language level is recommended, default is 1.3, OT/J needs 1.5 minimum
136 -->
137 <artifactId>maven-compiler-plugin</artifactId>
138 <configuration>
139 <source>1.6</source>
140 <target>1.6</target>
141 <compilerId>jdt</compilerId>
Stephan Herrmann9febfcd2011-06-13 09:32:16 +0000142 <flavor>otj</flavor>
Olaf Ottof4c02132010-10-10 20:39:11 +0000143 </configuration>
144 <dependencies>
145 <!-- compile time only dependencies: -->
Stephan Herrmannb8651992010-10-18 14:02:33 +0000146 <dependency>
Stephan Herrmann86e22312012-04-03 22:41:03 +0200147 <groupId>org.eclipse.tycho</groupId>
Olaf Ottof4c02132010-10-10 20:39:11 +0000148 <artifactId>tycho-compiler-jdt</artifactId>
149 <version>${tycho.version}</version>
150 <exclusions>
151 <!-- Exclude the original JDT/Core to be replaced by the OT/J variant: -->
152 <exclusion>
Stephan Herrmann86e22312012-04-03 22:41:03 +0200153 <groupId>org.eclipse.tycho</groupId>
Olaf Ottof4c02132010-10-10 20:39:11 +0000154 <artifactId>org.eclipse.jdt.core</artifactId>
155 </exclusion>
156 </exclusions>
Stephan Herrmannb8651992010-10-18 14:02:33 +0000157 </dependency>
Olaf Ottof4c02132010-10-10 20:39:11 +0000158 <dependency>
159 <!-- plug the OT/J compiler into the tycho-compiler-jdt plug-in: -->
160 <groupId>org.eclipse</groupId>
161 <artifactId>objectteams-otj-compiler</artifactId>
162 <version>${otj.version}</version>
Stephan Herrmannb8651992010-10-18 14:02:33 +0000163 </dependency>
Olaf Ottof4c02132010-10-10 20:39:11 +0000164 </dependencies>
165 </plugin>
Stephan Herrmann0c023b32012-10-30 22:24:14 +0100166
167 <plugin>
168 <!-- The same for tycho builds: -->
169 <groupId>org.eclipse.tycho</groupId>
170 <artifactId>tycho-compiler-plugin</artifactId>
171 <version>${tycho.version}</version>
172 <extensions>true</extensions>
173 <dependencies>
174 <dependency>
175 <groupId>org.eclipse.tycho</groupId>
176 <artifactId>tycho-compiler-jdt</artifactId>
177 <version>${tycho.version}</version>
178 <exclusions>
179 <!-- Exclude the original JDT/Core to be replaced by the OT/J variant: -->
180 <exclusion>
181 <groupId>org.eclipse.tycho</groupId>
182 <artifactId>org.eclipse.jdt.core</artifactId>
183 </exclusion>
184 </exclusions>
185 </dependency>
186 <dependency>
187 <!-- plug the OT/J compiler into the tycho-compiler-jdt plug-in: -->
188 <groupId>org.eclipse</groupId>
189 <artifactId>objectteams-otj-compiler</artifactId>
190 <version>${otj.version}</version>
191 </dependency>
192 </dependencies>
193 </plugin>
194
Olaf Ottof4c02132010-10-10 20:39:11 +0000195 <!-- See http://maven.apache.org/plugins/maven-surefire-plugin/ -->
196 <plugin>
197 <groupId>org.apache.maven.plugins</groupId>
198 <artifactId>maven-surefire-plugin</artifactId>
199 <configuration>
200 <!--
201 The following must be within one line of code, linebreaks will
202 cause surefire execution to fail.
203 -->
204 <argLine>${surefire.argline}</argLine>
205 </configuration>
206 <dependencies>
207 <dependency>
208 <!-- runtime-only dependency: -->
209 <groupId>org.eclipse</groupId>
210 <artifactId>objectteams-otre-agent</artifactId>
211 <classifier>nodep</classifier>
212 <version>${otj.version}</version>
213 </dependency>
214 </dependencies>
215 </plugin>
Stephan Herrmannb8651992010-10-18 14:02:33 +0000216 <!-- ensure new version of this plug-in (maven3-compatible): -->
217 <plugin>
218 <groupId>org.apache.maven.plugins</groupId>
219 <artifactId>maven-site-plugin</artifactId>
Stephan Herrmanncac17412012-07-05 21:36:45 +0200220 <version>3.1</version>
Stephan Herrmannb8651992010-10-18 14:02:33 +0000221 </plugin>
Stephan Herrmann164a4c92011-06-13 10:13:54 +0000222 <plugin>
223 <groupId>org.apache.maven.plugins</groupId>
224 <artifactId>maven-release-plugin</artifactId>
225 <configuration>
226 <tagBase>svn+ssh://dev.eclipse.org/svnroot/tools/org.eclipse.objectteams/tags/mvn-releases</tagBase>
227 </configuration>
228 </plugin>
Olaf Ottof4c02132010-10-10 20:39:11 +0000229 </plugins>
230 </pluginManagement>
231 <extensions>
232 <extension>
233 <groupId>org.apache.maven.wagon</groupId>
234 <artifactId>wagon-ssh-external</artifactId>
Stephan Herrmanncac17412012-07-05 21:36:45 +0200235 <version>2.2</version>
Olaf Ottof4c02132010-10-10 20:39:11 +0000236 </extension>
237 </extensions>
238 </build>
239
240 <!-- Required for compiling and running: -->
241 <dependencies>
242 <dependency>
243 <groupId>org.eclipse</groupId>
244 <artifactId>objectteams-runtime</artifactId>
245 <version>${otj.version}</version>
246 <scope>provided</scope>
247 </dependency>
Olaf Otto55fd19e2011-03-02 21:42:53 +0000248 <dependency>
249 <groupId>org.apache.bcel</groupId>
250 <artifactId>bcel</artifactId>
251 <version>${bcel.version}</version>
252 <scope>provided</scope>
253 </dependency>
Olaf Ottof4c02132010-10-10 20:39:11 +0000254 </dependencies>
255
256
257 <!-- for deployment of this pom: -->
258 <distributionManagement>
Stephan Herrmannb8651992010-10-18 14:02:33 +0000259 <site>
260 <id>otSiteRepo</id>
261 <name>Object Teams sites repository for Maven 3</name>
Stephan Herrmann053f2b42012-07-05 22:04:37 +0200262 <!--
263 for unclear reason when deploying dependent sites we need to first install this
264 parent with the following URL:
265 scpexe://objectteams/maven/3/sites/${project.artifactId}
266 otherwise the variables from the below URL will be pasted verbatim for references
267 to the parent pom =:-0
268 -->
Stephan Herrmannb8651992010-10-18 14:02:33 +0000269 <url>scpexe://${ot.host}:${ot.maven.repository.basepath}/sites/${project.artifactId}</url>
270 </site>
Olaf Ottof4c02132010-10-10 20:39:11 +0000271 <repository>
272 <id>ObjectTeamsRepository</id>
273 <uniqueVersion>false</uniqueVersion>
274 <name>Public Object Teams distribution repository</name>
275 <!--
276 most values are fed from settings.xml
277 -->
Stephan Herrmannb8651992010-10-18 14:02:33 +0000278 <url>scpexe://${ot.host}:${ot.maven.repository.basepath}/repository</url>
Olaf Ottof4c02132010-10-10 20:39:11 +0000279 <layout>default</layout>
280 </repository>
281 </distributionManagement>
282
283</project>