Enable JaCoCo code coverage analysis during tests.
diff --git a/releng/org.eclipse.m2m.atl.releng.parent/pom.xml b/releng/org.eclipse.m2m.atl.releng.parent/pom.xml
index c8f22fb..e87bd6e 100644
--- a/releng/org.eclipse.m2m.atl.releng.parent/pom.xml
+++ b/releng/org.eclipse.m2m.atl.releng.parent/pom.xml
@@ -39,6 +39,10 @@
   <properties>
     <tycho-version>0.22.0</tycho-version>
     <tycho-extras-version>0.22.0</tycho-extras-version>
+    <!-- Properties to enable jacoco code coverage analysis -->
+    <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
+    <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
+    <sonar.jacoco.reportPath>../../target/jacoco.exec</sonar.jacoco.reportPath>
   </properties>
 
   <distributionManagement>
@@ -267,6 +271,26 @@
             <defaultP2Metadata>false</defaultP2Metadata>
           </configuration>
         </plugin>
+          <plugin>
+            <groupId>org.jacoco</groupId>
+            <artifactId>jacoco-maven-plugin</artifactId>
+            <version>0.7.6.201602180812</version>
+            <executions>
+              <execution>
+                <goals>
+                  <goal>prepare-agent</goal>
+                </goals>
+                <configuration>
+                  <!-- Where to put jacoco coverage report -->
+                  <destFile>${sonar.jacoco.reportPath}</destFile>
+                  <includes>
+                    <include>org.eclipse.m2m.atl.*</include>
+                  </includes>
+                  <append>true</append>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>
       </plugins>
     </pluginManagement>
   </build>
@@ -274,6 +298,21 @@
 	<profiles>
 		
 		<profile>
+			<id>oxygen</id>
+			<repositories>
+				<repository><id>releasetrain</id><layout>p2</layout>
+					<url>http://download.eclipse.org/releases/oxygen</url>
+				</repository>
+        		<repository><id>orbit</id><layout>p2</layout>
+			 	    <url>http://download.eclipse.org/tools/orbit/downloads/drops/R20130118183705/repository</url>
+        		</repository>
+        		<repository><id>emf compare 1.2 (test purpose only)</id><layout>p2</layout>
+			 	    <url>http://download.eclipse.org/modeling/emf/compare/updates/releases/1.2</url>
+        		</repository>
+			</repositories>
+		</profile>
+		
+		<profile>
 			<id>neon</id>
 			<repositories>
 				<repository><id>releasetrain</id><layout>p2</layout>
@@ -289,10 +328,10 @@
 		</profile>
 		
 		<profile>
-			<id>oxygen</id>
+			<id>mars</id>
 			<repositories>
 				<repository><id>releasetrain</id><layout>p2</layout>
-					<url>http://download.eclipse.org/releases/oxygen</url>
+					<url>http://download.eclipse.org/releases/mars</url>
 				</repository>
         		<repository><id>orbit</id><layout>p2</layout>
 			 	    <url>http://download.eclipse.org/tools/orbit/downloads/drops/R20130118183705/repository</url>
diff --git a/tests/org.eclipse.m2m.atl.emftvm.tests/pom.xml b/tests/org.eclipse.m2m.atl.emftvm.tests/pom.xml
index 42e9b2f..496ccff 100644
--- a/tests/org.eclipse.m2m.atl.emftvm.tests/pom.xml
+++ b/tests/org.eclipse.m2m.atl.emftvm.tests/pom.xml
@@ -31,6 +31,10 @@
         <artifactId>tycho-source-plugin</artifactId>
       </plugin>
   	  <plugin>
+		<groupId>org.jacoco</groupId>
+		<artifactId>jacoco-maven-plugin</artifactId>
+	  </plugin>
+  	  <plugin>
 		<groupId>org.eclipse.tycho</groupId>
 		<artifactId>tycho-surefire-plugin</artifactId>
 		<version>${tycho-version}</version>
@@ -41,8 +45,8 @@
 			<useUIHarness>false</useUIHarness>
 			<useUIThread>false</useUIThread>
 			<argLine>-Xmx512m</argLine>
-			<argLine>-XX:MaxPermSize=256m</argLine>			
 			<argLine>-ea</argLine>
+			<argLine>${tycho.testArgLine}</argLine>
 		</configuration>
 	  </plugin>
     </plugins>
diff --git a/tests/org.eclipse.m2m.atl.emftvm.trace.tests/pom.xml b/tests/org.eclipse.m2m.atl.emftvm.trace.tests/pom.xml
index 30f5353..f25262c 100644
--- a/tests/org.eclipse.m2m.atl.emftvm.trace.tests/pom.xml
+++ b/tests/org.eclipse.m2m.atl.emftvm.trace.tests/pom.xml
@@ -31,6 +31,10 @@
         <artifactId>tycho-source-plugin</artifactId>
       </plugin>
   	  <plugin>
+		<groupId>org.jacoco</groupId>
+		<artifactId>jacoco-maven-plugin</artifactId>
+	  </plugin>
+  	  <plugin>
 		<groupId>org.eclipse.tycho</groupId>
 		<artifactId>tycho-surefire-plugin</artifactId>
 		<version>${tycho-version}</version>
@@ -41,7 +45,8 @@
 			<useUIHarness>false</useUIHarness>
 			<useUIThread>false</useUIThread>
 			<argLine>-Xmx512m</argLine>
-			<argLine>-XX:MaxPermSize=256m</argLine>			
+			<argLine>-ea</argLine>
+			<argLine>${tycho.testArgLine}</argLine>
 		</configuration>
 	  </plugin>
     </plugins>
diff --git a/tests/org.eclipse.m2m.atl.tests/pom.xml b/tests/org.eclipse.m2m.atl.tests/pom.xml
index df1f6f6..077e47a 100644
--- a/tests/org.eclipse.m2m.atl.tests/pom.xml
+++ b/tests/org.eclipse.m2m.atl.tests/pom.xml
@@ -25,11 +25,15 @@
     
   <build>
     <plugins>
-     <plugin>
+      <plugin>
         <groupId>org.eclipse.tycho</groupId>
         <artifactId>tycho-source-plugin</artifactId>
       </plugin>
-  	<plugin>
+  	  <plugin>
+		<groupId>org.jacoco</groupId>
+		<artifactId>jacoco-maven-plugin</artifactId>
+	  </plugin>
+  	  <plugin>
 		<groupId>org.eclipse.tycho</groupId>
 		<artifactId>tycho-surefire-plugin</artifactId>
 		<version>${tycho-version}</version>
@@ -45,9 +49,10 @@
 			<useUIHarness>false</useUIHarness>
 			<useUIThread>false</useUIThread>
 			<argLine>-Xmx1024m</argLine>
-			<argLine>-XX:MaxPermSize=256m</argLine>			
+			<argLine>-ea</argLine>
+			<argLine>${tycho.testArgLine}</argLine>
 		</configuration>
-	</plugin>
+	  </plugin>
     </plugins>
   </build>
 </project>