Declaring org.eclipse.objectteams:objectteams-parent-pom as the parent of your project will add basic capabilities for using OT/J in your sources.
For simple cases two declarations in your pom will suffice:
<repositories> <repository> <id>ObjectTeamsRepository</id> <name>Object Teams Repository</name> <url>http://download.eclipse.org/objectteams/maven/3/repository</url> </repository> </repositories>
<parent> <groupId>org.eclipse.objectteams</groupId> <artifactId>objectteams-otdre-parent-pom</artifactId> <version>2.5.0</version> </parent>
This variant will use the new weaving scheme OTDRE. Simply changing the above from objectteams-otdre-parent-pom to objectteams-parent-pom will select the traditional OTRE.
The above steps suffice to let you
The following declarations, although inherited from objectteams-parent-pom should be overridden per project:
Note that Maven doesn't cope well with declarations depending on properties like <project.artifactId> when this declaration is inherited from a project's parent.
See the full source of pom.xml.