Olaf Otto | f4c0213 | 2010-10-10 20:39:11 +0000 | [diff] [blame] | 1 | <?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 Herrmann | 0c023b3 | 2012-10-30 22:24:14 +0100 | [diff] [blame^] | 7 | <version>2.1.1</version> |
Olaf Otto | f4c0213 | 2010-10-10 20:39:11 +0000 | [diff] [blame] | 8 | <packaging>pom</packaging> |
| 9 | |
Stephan Herrmann | b865199 | 2010-10-18 14:02:33 +0000 | [diff] [blame] | 10 | <name>Object Teams parent pom</name> |
Olaf Otto | f4c0213 | 2010-10-10 20:39:11 +0000 | [diff] [blame] | 11 | |
Stephan Herrmann | b865199 | 2010-10-18 14:02:33 +0000 | [diff] [blame] | 12 | <url>http://download.eclipse.org/objectteams/maven/3/sites/${project.artifactId}</url> |
Olaf Otto | f4c0213 | 2010-10-10 20:39:11 +0000 | [diff] [blame] | 13 | |
| 14 | <description> |
Stephan Herrmann | b865199 | 2010-10-18 14:02:33 +0000 | [diff] [blame] | 15 | This is the parent pom for Object Teams projects using Maven3. |
| 16 | It specifies the core dependencies and configurations for building and |
Olaf Otto | f4c0213 | 2010-10-10 20:39:11 +0000 | [diff] [blame] | 17 | 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 Herrmann | b865199 | 2010-10-18 14:02:33 +0000 | [diff] [blame] | 24 | This file is part of "Object Teams Development Tooling"-Software. |
Olaf Otto | f4c0213 | 2010-10-10 20:39:11 +0000 | [diff] [blame] | 25 | |
Stephan Herrmann | cac1741 | 2012-07-05 21:36:45 +0200 | [diff] [blame] | 26 | Copyright 2010, 2012 GK Software AG and others. |
Olaf Otto | f4c0213 | 2010-10-10 20:39:11 +0000 | [diff] [blame] | 27 | 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 Herrmann | b865199 | 2010-10-18 14:02:33 +0000 | [diff] [blame] | 35 | Olaf Otto - Initial concept, |
| 36 | Stephan Herrmann - Initial API and implementation. |
Olaf Otto | f4c0213 | 2010-10-10 20:39:11 +0000 | [diff] [blame] | 37 | </comments> |
| 38 | </license> |
| 39 | </licenses> |
| 40 | |
Stephan Herrmann | b865199 | 2010-10-18 14:02:33 +0000 | [diff] [blame] | 41 | <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 Herrmann | b613afe | 2011-06-13 17:00:53 +0000 | [diff] [blame] | 57 | <url>http://bugs.eclipse.org/bugs</url> |
Stephan Herrmann | b865199 | 2010-10-18 14:02:33 +0000 | [diff] [blame] | 58 | </issueManagement> |
| 59 | |
Olaf Otto | f4c0213 | 2010-10-10 20:39:11 +0000 | [diff] [blame] | 60 | <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 Herrmann | b865199 | 2010-10-18 14:02:33 +0000 | [diff] [blame] | 81 | <!-- Repository path of this module within the Object Teams svn: --> |
Stephan Herrmann | cac1741 | 2012-07-05 21:36:45 +0200 | [diff] [blame] | 82 | <project-repository-path>maven/infrastructure/parent-pom</project-repository-path> |
Stephan Herrmann | b865199 | 2010-10-18 14:02:33 +0000 | [diff] [blame] | 83 | |
Olaf Otto | f4c0213 | 2010-10-10 20:39:11 +0000 | [diff] [blame] | 84 | <!-- Our Version: --> |
Stephan Herrmann | 0c023b3 | 2012-10-30 22:24:14 +0100 | [diff] [blame^] | 85 | <otj.version>2.1.1</otj.version> |
Olaf Otto | f4c0213 | 2010-10-10 20:39:11 +0000 | [diff] [blame] | 86 | |
| 87 | <!-- Versions of dependencies: --> |
| 88 | <bcel.version>5.2</bcel.version> |
Stephan Herrmann | 0c023b3 | 2012-10-30 22:24:14 +0100 | [diff] [blame^] | 89 | <tycho.version>0.16.0</tycho.version> |
Olaf Otto | f4c0213 | 2010-10-10 20:39:11 +0000 | [diff] [blame] | 90 | |
| 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 Herrmann | b865199 | 2010-10-18 14:02:33 +0000 | [diff] [blame] | 109 | <scm> |
Stephan Herrmann | e395bd4 | 2011-06-13 12:21:36 +0000 | [diff] [blame] | 110 | <!-- WTF: release will "improve" the connection to using svn+ssh and advertize this for anonymous access !@#!%$ --> |
Stephan Herrmann | cac1741 | 2012-07-05 21:36:45 +0200 | [diff] [blame] | 111 | <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 Herrmann | e395bd4 | 2011-06-13 12:21:36 +0000 | [diff] [blame] | 113 | <!-- WTF: release will "improve" the connection to using svn+ssh and advertize this for web access !@#!%$ --> |
Stephan Herrmann | cac1741 | 2012-07-05 21:36:45 +0200 | [diff] [blame] | 114 | <url>http://git.eclipse.org/c/objectteams/org.eclipse.objectteams.git</url> |
Stephan Herrmann | b865199 | 2010-10-18 14:02:33 +0000 | [diff] [blame] | 115 | </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 Otto | f4c0213 | 2010-10-10 20:39:11 +0000 | [diff] [blame] | 128 | <build> |
| 129 | <pluginManagement> |
| 130 | <plugins> |
Stephan Herrmann | 0c023b3 | 2012-10-30 22:24:14 +0100 | [diff] [blame^] | 131 | |
Olaf Otto | f4c0213 | 2010-10-10 20:39:11 +0000 | [diff] [blame] | 132 | <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 Herrmann | 9febfcd | 2011-06-13 09:32:16 +0000 | [diff] [blame] | 142 | <flavor>otj</flavor> |
Olaf Otto | f4c0213 | 2010-10-10 20:39:11 +0000 | [diff] [blame] | 143 | </configuration> |
| 144 | <dependencies> |
| 145 | <!-- compile time only dependencies: --> |
Stephan Herrmann | b865199 | 2010-10-18 14:02:33 +0000 | [diff] [blame] | 146 | <dependency> |
Stephan Herrmann | 86e2231 | 2012-04-03 22:41:03 +0200 | [diff] [blame] | 147 | <groupId>org.eclipse.tycho</groupId> |
Olaf Otto | f4c0213 | 2010-10-10 20:39:11 +0000 | [diff] [blame] | 148 | <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 Herrmann | 86e2231 | 2012-04-03 22:41:03 +0200 | [diff] [blame] | 153 | <groupId>org.eclipse.tycho</groupId> |
Olaf Otto | f4c0213 | 2010-10-10 20:39:11 +0000 | [diff] [blame] | 154 | <artifactId>org.eclipse.jdt.core</artifactId> |
| 155 | </exclusion> |
| 156 | </exclusions> |
Stephan Herrmann | b865199 | 2010-10-18 14:02:33 +0000 | [diff] [blame] | 157 | </dependency> |
Olaf Otto | f4c0213 | 2010-10-10 20:39:11 +0000 | [diff] [blame] | 158 | <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 Herrmann | b865199 | 2010-10-18 14:02:33 +0000 | [diff] [blame] | 163 | </dependency> |
Olaf Otto | f4c0213 | 2010-10-10 20:39:11 +0000 | [diff] [blame] | 164 | </dependencies> |
| 165 | </plugin> |
Stephan Herrmann | 0c023b3 | 2012-10-30 22:24:14 +0100 | [diff] [blame^] | 166 | |
| 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 Otto | f4c0213 | 2010-10-10 20:39:11 +0000 | [diff] [blame] | 195 | <!-- 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 Herrmann | b865199 | 2010-10-18 14:02:33 +0000 | [diff] [blame] | 216 | <!-- 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 Herrmann | cac1741 | 2012-07-05 21:36:45 +0200 | [diff] [blame] | 220 | <version>3.1</version> |
Stephan Herrmann | b865199 | 2010-10-18 14:02:33 +0000 | [diff] [blame] | 221 | </plugin> |
Stephan Herrmann | 164a4c9 | 2011-06-13 10:13:54 +0000 | [diff] [blame] | 222 | <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 Otto | f4c0213 | 2010-10-10 20:39:11 +0000 | [diff] [blame] | 229 | </plugins> |
| 230 | </pluginManagement> |
| 231 | <extensions> |
| 232 | <extension> |
| 233 | <groupId>org.apache.maven.wagon</groupId> |
| 234 | <artifactId>wagon-ssh-external</artifactId> |
Stephan Herrmann | cac1741 | 2012-07-05 21:36:45 +0200 | [diff] [blame] | 235 | <version>2.2</version> |
Olaf Otto | f4c0213 | 2010-10-10 20:39:11 +0000 | [diff] [blame] | 236 | </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 Otto | 55fd19e | 2011-03-02 21:42:53 +0000 | [diff] [blame] | 248 | <dependency> |
| 249 | <groupId>org.apache.bcel</groupId> |
| 250 | <artifactId>bcel</artifactId> |
| 251 | <version>${bcel.version}</version> |
| 252 | <scope>provided</scope> |
| 253 | </dependency> |
Olaf Otto | f4c0213 | 2010-10-10 20:39:11 +0000 | [diff] [blame] | 254 | </dependencies> |
| 255 | |
| 256 | |
| 257 | <!-- for deployment of this pom: --> |
| 258 | <distributionManagement> |
Stephan Herrmann | b865199 | 2010-10-18 14:02:33 +0000 | [diff] [blame] | 259 | <site> |
| 260 | <id>otSiteRepo</id> |
| 261 | <name>Object Teams sites repository for Maven 3</name> |
Stephan Herrmann | 053f2b4 | 2012-07-05 22:04:37 +0200 | [diff] [blame] | 262 | <!-- |
| 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 Herrmann | b865199 | 2010-10-18 14:02:33 +0000 | [diff] [blame] | 269 | <url>scpexe://${ot.host}:${ot.maven.repository.basepath}/sites/${project.artifactId}</url> |
| 270 | </site> |
Olaf Otto | f4c0213 | 2010-10-10 20:39:11 +0000 | [diff] [blame] | 271 | <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 Herrmann | b865199 | 2010-10-18 14:02:33 +0000 | [diff] [blame] | 278 | <url>scpexe://${ot.host}:${ot.maven.repository.basepath}/repository</url> |
Olaf Otto | f4c0213 | 2010-10-10 20:39:11 +0000 | [diff] [blame] | 279 | <layout>default</layout> |
| 280 | </repository> |
| 281 | </distributionManagement> |
| 282 | |
| 283 | </project> |