blob: 4261c06a960f9b9df423bfada7ea318723f4f0de [file] [log] [blame]
Stephan Herrmannb8651992010-10-18 14:02:33 +00001 ------
2 Using the Object Teams Parent POM
3 ------
4 Olaf Otto & Stephan Herrmann
5 ------
Stephan Herrmann94732cf2013-06-23 17:40:20 +02006 2013-06-23
Stephan Herrmannb8651992010-10-18 14:02:33 +00007 ------
8
9Using the Object Teams Parent POM
10
11 Declaring this module as the parent of your project will add basic capabilities
12 for using OT/J in your sources.
13
14* Include the parent pom
15
16 For simple cases two declarations in your pom will suffice:
17
18 [[1]] declare the maven repository for fetching Object Teams related modules
19
20+-----
21 <repositories>
22 <repository>
23 <id>ObjectTeamsRepository</id>
24 <name>Object Teams Repository</name>
25 <url>http://download.eclipse.org/objectteams/maven/3/repository</url>
26 </repository>
27 </repositories>
28+-----
29
30 [[1]] declare the parent pom
31
32+-----
33 <parent>
34 <groupId>org.eclipse</groupId>
35 <artifactId>objectteams-parent-pom</artifactId>
Stephan Herrmann94732cf2013-06-23 17:40:20 +020036 <version>2.2.0</version>
Stephan Herrmannb8651992010-10-18 14:02:33 +000037 </parent>
38+-----
39
Stephan Herrmann180600d2012-10-31 01:01:37 +010040 Starting with version 2.1.1 the parent pom also supports using OT/J in tycho builds (projects using OSGi).
41
Stephan Herrmannb8651992010-10-18 14:02:33 +000042* Example
43
44 See the {{{../objectteams-compile-test}objectteams-compile-test}} project for an example of how to use this parent pom.
45
46* Under the hood
47
48** Standard OT/J dependencies documented
49
50 All OT/J projects using the <<<objectteams-parent-pom>>> implicitly depend on the following artifacts which are developed
51 independent of maven and simply repackaged using the {{{../objectteams-artifact-deployer}org.eclipse:objectteams-artifact-deployer}} module:
52
53 [org.eclipse:objectteams-runtime] the Object Teams runtime repackaged from the <<<org.eclipse.objectteams.runtime>>> OSGi bundle.
54
55 [org.eclipse:objectteams-otre-agent] the Java agent that hooks the Object Teams runtime into the JVM (repackaged from file <<<otre_agent.jar>>>
Stephan Herrmannfa2582d2011-06-13 12:20:41 +000056 from the <<<org.eclipse.objectteams.otdt>>> project).
Stephan Herrmannb8651992010-10-18 14:02:33 +000057
Stephan Herrmannf3291512012-11-15 00:17:56 +010058 [org.eclipse:objectteams-otj-compiler] a compatible replacement for <<<org.eclipse.tycho:org.eclipse.jdt.core>>> that enables the
59 <<<org.eclipse.tycho:tycho-compiler-jdt>>> plugin to compile OT/J sources.
Stephan Herrmannb8651992010-10-18 14:02:33 +000060
61 []
62
63 The following module is indirectly used:
64
65 [org.apache.bcel:bcel] the original {{{http://jakarta.apache.org/bcel}apache bcel}} Byte Code Engineering Library.