From b058d23704b473bb4f446fa03bd44f7b99da9895 Mon Sep 17 00:00:00 2001
From: Luc Maisonobe <luc@orekit.org>
Date: Thu, 11 Dec 2014 17:52:36 +0100
Subject: [PATCH] Reactivated test coverage since Rugged is not multi-module
 anymore.

---
 pom.xml | 199 +++++++++++++++++++++++++++++++-------------------------
 1 file changed, 112 insertions(+), 87 deletions(-)

diff --git a/pom.xml b/pom.xml
index e8bc66d2..d95430e2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -25,6 +25,7 @@
     <rugged.maven-bundle-plugin.version>2.5.3</rugged.maven-bundle-plugin.version>
     <rugged.maven-resources-plugin.version>2.7</rugged.maven-resources-plugin.version>
     <rugged.maven-clean-plugin.version>2.6.1</rugged.maven-clean-plugin.version>
+    <rugged.jacoco-maven-plugin.version>0.7.2.201409121644</rugged.jacoco-maven-plugin.version>
     <rugged.maven-plantuml-plugin.version>7940</rugged.maven-plantuml-plugin.version>
     <rugged.plantuml.version>7999</rugged.plantuml.version>
     <rugged.maven-site-plugin.version>3.4</rugged.maven-site-plugin.version>
@@ -149,93 +150,112 @@
   </dependencies>
 
   <build>
-      <plugins>
-        <plugin>
-          <groupId>org.apache.maven.plugins</groupId>
-          <artifactId>maven-compiler-plugin</artifactId>
-          <version>${rugged.maven-compiler-plugin.version}</version>
-        </plugin>
-        <plugin>
-          <groupId>org.apache.maven.plugins</groupId>
-          <artifactId>maven-jar-plugin</artifactId>
-          <version>${rugged.maven-jar-plugin.version}</version>
-          <configuration>
-            <archive>
-              <manifest>
-                <addClasspath>true</addClasspath>
-                <classpathPrefix>lib/</classpathPrefix>
-              </manifest>
-            </archive>
-          </configuration>
-        </plugin>
-        <plugin>
-          <groupId>org.apache.maven.plugins</groupId>
-          <artifactId>maven-assembly-plugin</artifactId>
-          <version>${rugged.maven-assembly-plugin.version}</version>
-          <configuration>
-            <descriptors>
-              <descriptor>src/assembly/source-assembly.xml</descriptor>
-              <descriptor>src/assembly/binary-assembly.xml</descriptor>
-            </descriptors>
-          </configuration>
-          <executions>
-            <execution>
-              <id>make-assembly</id>
-              <phase>package</phase>
-              <goals>
-                <goal>single</goal>
-              </goals>
-            </execution>
-          </executions>
-        </plugin>
-        <plugin>
-          <groupId>org.apache.maven.plugins</groupId>
-          <artifactId>maven-resources-plugin</artifactId>
-          <version>${rugged.maven-resources-plugin.version}</version>
-        </plugin>
-        <plugin>
-          <groupId>org.apache.maven.plugins</groupId>
-          <artifactId>maven-clean-plugin</artifactId>
-          <version>${rugged.maven-clean-plugin.version}</version>
-        </plugin>
-        <plugin>
-          <groupId>org.apache.maven.plugins</groupId>
-          <artifactId>maven-site-plugin</artifactId>
-          <version>${rugged.maven-site-plugin.version}</version>
-        </plugin>
-     <plugin>
-       <groupId>com.github.jeluard</groupId>
-       <artifactId>maven-plantuml-plugin</artifactId>
-       <version>${rugged.maven-plantuml-plugin.version}</version>
-       <configuration>
-         <sourceFiles>
-           <directory>${basedir}</directory>
-           <includes>
-             <include>
-               design/**/*.puml
-             </include>
-           </includes>
-         </sourceFiles>
-         <outputDirectory>
-           ${basedir}/target/site/images/design
-         </outputDirectory>
-       </configuration>
-       <executions>
-         <execution>
-           <phase>pre-site</phase>
-           <goals>
-             <goal>generate</goal>
-           </goals>
-         </execution>
-       </executions>
-       <dependencies>
-         <dependency>
-           <groupId>net.sourceforge.plantuml</groupId>
-           <artifactId>plantuml</artifactId>
-           <version>${rugged.plantuml.version}</version>
-         </dependency>
-       </dependencies>
-     </plugin>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <version>${rugged.maven-compiler-plugin.version}</version>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-jar-plugin</artifactId>
+        <version>${rugged.maven-jar-plugin.version}</version>
+        <configuration>
+          <archive>
+            <manifest>
+              <addClasspath>true</addClasspath>
+              <classpathPrefix>lib/</classpathPrefix>
+            </manifest>
+          </archive>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-assembly-plugin</artifactId>
+        <version>${rugged.maven-assembly-plugin.version}</version>
+        <configuration>
+          <descriptors>
+            <descriptor>src/assembly/source-assembly.xml</descriptor>
+            <descriptor>src/assembly/binary-assembly.xml</descriptor>
+          </descriptors>
+        </configuration>
+        <executions>
+          <execution>
+            <id>make-assembly</id>
+            <phase>package</phase>
+            <goals>
+              <goal>single</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-resources-plugin</artifactId>
+        <version>${rugged.maven-resources-plugin.version}</version>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-clean-plugin</artifactId>
+        <version>${rugged.maven-clean-plugin.version}</version>
+      </plugin>
+      <plugin>
+        <groupId>org.jacoco</groupId>
+        <artifactId>jacoco-maven-plugin</artifactId>
+        <version>${rugged.jacoco-maven-plugin.version}</version>
+        <executions>
+          <execution>
+            <id>prepare-agent</id>
+            <phase>process-test-classes</phase>
+            <goals>
+              <goal>prepare-agent</goal>
+            </goals>
+          </execution>
+          <execution>
+            <id>report</id>
+            <phase>site</phase>
+            <goals>
+              <goal>report</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-site-plugin</artifactId>
+        <version>${rugged.maven-site-plugin.version}</version>
+      </plugin>
+      <plugin>
+        <groupId>com.github.jeluard</groupId>
+        <artifactId>maven-plantuml-plugin</artifactId>
+        <version>${rugged.maven-plantuml-plugin.version}</version>
+        <configuration>
+          <sourceFiles>
+            <directory>${basedir}</directory>
+            <includes>
+              <include>
+                design/**/*.puml
+              </include>
+            </includes>
+          </sourceFiles>
+          <outputDirectory>${basedir}/target/site/images/design</outputDirectory>
+        </configuration>
+        <executions>
+          <execution>
+            <phase>pre-site</phase>
+            <goals>
+              <goal>generate</goal>
+            </goals>
+          </execution>
+        </executions>
+        <dependencies>
+          <dependency>
+            <groupId>net.sourceforge.plantuml</groupId>
+            <artifactId>plantuml</artifactId>
+            <version>${rugged.plantuml.version}</version>
+          </dependency>
+        </dependencies>
+      </plugin>
       <plugin>
         <groupId>org.apache.felix</groupId>
         <artifactId>maven-bundle-plugin</artifactId>
@@ -369,6 +389,11 @@
           </reportSet>
         </reportSets>
       </plugin>
+      <plugin>
+        <groupId>org.jacoco</groupId>
+        <artifactId>jacoco-maven-plugin</artifactId>
+        <version>${rugged.jacoco-maven-plugin.version}</version>
+      </plugin>
     </plugins>
   </reporting>
 
-- 
GitLab