You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2019/05/08 11:51:29 UTC

[jena] 08/08: JENA-664: POM files for GeoSPARQL

This is an automated email from the ASF dual-hosted git repository.

andy pushed a commit to branch geosparql
in repository https://gitbox.apache.org/repos/asf/jena.git

commit 3566fffd0777897edd7f110519fd54fc2d4b7407
Author: Andy Seaborne <an...@apache.org>
AuthorDate: Wed May 8 12:46:15 2019 +0100

    JENA-664: POM files for GeoSPARQL
---
 jena-fuseki-geosparql/pom.xml                      |   1 -
 .../src/main/resources/logback.xml                 |  47 --
 jena-geosparql/pom.xml                             |  28 +-
 pom.xml                                            | 583 +++++++--------------
 4 files changed, 213 insertions(+), 446 deletions(-)

diff --git a/jena-fuseki-geosparql/pom.xml b/jena-fuseki-geosparql/pom.xml
index a2fd72e..16c2099 100644
--- a/jena-fuseki-geosparql/pom.xml
+++ b/jena-fuseki-geosparql/pom.xml
@@ -74,7 +74,6 @@
         <dependency>
             <groupId>org.apache.commons</groupId>
             <artifactId>commons-collections4</artifactId>
-            <version>4.1</version>
         </dependency>
 
         <dependency>
diff --git a/jena-fuseki-geosparql/src/main/resources/logback.xml b/jena-fuseki-geosparql/src/main/resources/logback.xml
deleted file mode 100644
index a9d4be4..0000000
--- a/jena-fuseki-geosparql/src/main/resources/logback.xml
+++ /dev/null
@@ -1,47 +0,0 @@
-<configuration debug="false">
-    <contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator">
-        <resetJUL>true</resetJUL>
-    </contextListener>
-
-    <shutdownHook class="ch.qos.logback.core.hook.DelayingShutdownHook"/>
-    <logger name="org.apache.jena" level="WARN" />
-    <logger name="org.eclipse.jetty" level="WARN" />
-    <logger name="org.apache.http" level="WARN" />
-    <logger name="TDB" level="WARN" />
-
-    <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
-        <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
-            <level>INFO</level>
-        </filter>
-        <encoder>
-            <!--<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>-->
-            <pattern>%d{HH:mm:ss.SSS} %-5level %msg%n</pattern>
-        </encoder>
-    </appender>
-
-    <timestamp key="bySecond" datePattern="yyyyMMdd'T'HHmmss"/>
-    <property name="LOG_FOLDER" value="./logs" />
-    <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
-        <file>${LOG_FOLDER}/jena-fuseki-geosparql-${bySecond}.log</file>
-        <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
-            <fileNamePattern>${LOG_FOLDER}/jena-fuseki-geosparql-${bySecond}-%i.log</fileNamePattern>
-            <minIndex>1</minIndex>
-            <maxIndex>10</maxIndex>
-        </rollingPolicy>
-
-        <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
-            <maxFileSize>100MB</maxFileSize>
-        </triggeringPolicy>
-        <!-- set immediateFlush to false for much higher logging throughput -->
-        <immediateFlush>false</immediateFlush>
-        <encoder>
-            <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{35} - %msg%n</pattern>
-            <!--<pattern>%d{HH:mm:ss.SSS} %-5level %logger{36} - %msg%n</pattern>-->
-        </encoder>
-    </appender>
-
-    <root level="info">
-        <appender-ref ref="STDOUT" />
-        <appender-ref ref="FILE" />
-    </root>
-</configuration>
diff --git a/jena-geosparql/pom.xml b/jena-geosparql/pom.xml
index f6beb86..78fd230 100644
--- a/jena-geosparql/pom.xml
+++ b/jena-geosparql/pom.xml
@@ -38,6 +38,20 @@
 
     <dependencies>
 
+      <!-- Non-free; testing only -->
+      <dependency>
+        <groupId>org.apache.sis.non-free</groupId>
+        <artifactId>sis-embedded-data</artifactId>
+        <version>0.8</version>
+        <scope>test</scope>
+      </dependency>
+
+      <dependency>
+        <groupId>javax.xml.bind</groupId>
+        <artifactId>jaxb-api</artifactId>
+        <version>2.3.1</version>
+      </dependency>
+
         <dependency>
             <groupId>org.apache.jena</groupId>
             <artifactId>jena-arq</artifactId>
@@ -87,18 +101,6 @@
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-surefire-plugin</artifactId>
-                <configuration>
-                    <includes>
-                        <!--
-                          The test collections TC_General, TC_Riot, TC_Atlas
-                          are development support that collect the relevant
-                          tests for partial testing during development.
-                        -->
-                        <include>**/TS_*.java</include>
-                        <include>**/TC_Scripted.java</include>
-                        <include>**/TC_DAWG.java</include>
-                    </includes>
-                </configuration>
             </plugin>
 
             <plugin>
@@ -158,4 +160,4 @@
         </plugins>
     </build>
 
-</project>
\ No newline at end of file
+</project>
diff --git a/pom.xml b/pom.xml
index 32a71d2..57a8a0a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -53,7 +53,7 @@
    <properties>
     <ver.slf4j>1.7.26</ver.slf4j>
     <ver.log4j>1.2.17</ver.log4j>
-    <ver.junit>4.12</ver.junit>
+    <ver.junit>4.12</ver.junit>  
 
     <ver.jetty>9.4.12.v20180830</ver.jetty>
     <ver.libthrift>0.12.0</ver.libthrift>
@@ -153,7 +153,7 @@
   <profiles>
     <profile>
       <!--
-          This is the dev profile, typically used locally with
+          This is the dev profile, typically used locally with 
           "mvn clean install -Pdev".
           It builds the modules shipped in apache-jena binaries
           but does not build these binaries.
@@ -164,24 +164,26 @@
         <module>jena-shaded-guava</module>
         <module>jena-iri</module>
         <module>jena-base</module>
-
+        
         <module>jena-core</module>
         <module>jena-arq</module>
         <module>jena-rdfconnection</module>
         <module>jena-tdb</module>
-        <module>jena-db</module>
+        <module>jena-db</module> 
         <module>apache-jena-libs</module>
 
         <module>jena-text</module>
         <!-- <module>jena-text-es</module>        -->
         <module>jena-spatial</module>
-        <module>jena-geosparql</module>
-        <module>jena-fuseki-geosparql</module>
+
         <module>jena-cmds</module>
         <module>jena-fuseki2</module>
 
         <module>jena-integration-tests</module>
 
+        <module>jena-geosparql</module>
+        <module>jena-fuseki-geosparql</module>
+
         <!-- Binary distribution -->
         <!-- <module>apache-jena</module>         -->
 
@@ -232,19 +234,18 @@
         <module>jena-text</module>
         <module>jena-text-es</module>
         <module>jena-spatial</module>
-        <module>jena-geosparql</module>
 
         <module>jena-cmds</module>
         <module>jena-fuseki2</module>
 
         <!--
-            Tests of artifacts that require additional
+            Tests of artifacts that require additional 
             modules built later in the build process.
             For example, use Fuseki as a test server to
             test remote client APIs.
         -->
         <module>jena-integration-tests</module>
-
+        
         <!-- Binary distribution -->
         <module>apache-jena</module>
 
@@ -262,7 +263,7 @@
 
         <!-- Slow building modules -->
         <module>jena-jdbc</module>
-        <!--  Fails when building with Java9 JDK because it requires
+        <!--  Fails when building with Java9 JDK because it requires 
              system jar jdk.tools which is not available in Java9 onwards
         -->
         <module>jena-elephas</module>
@@ -311,13 +312,13 @@
         <artifactId>commons-codec</artifactId>
         <version>${ver.commons-codec}</version>
       </dependency>
-
+      
       <dependency>
         <groupId>commons-io</groupId>
         <artifactId>commons-io</artifactId>
         <version>${ver.commonsio}</version>
       </dependency>
-
+      
       <dependency>
         <groupId>org.apache.commons</groupId>
         <artifactId>commons-compress</artifactId>
@@ -375,14 +376,14 @@
         <artifactId>commons-collections4</artifactId>
         <version>4.1</version>
       </dependency>
-
+      
       <!-- supports persistent data structures -->
       <dependency>
         <groupId>com.github.andrewoma.dexx</groupId>
         <artifactId>collection</artifactId>
         <version>${ver.dexxcollection}</version>
       </dependency>
-
+      
       <dependency>
         <groupId>com.github.jsonld-java</groupId>
         <artifactId>jsonld-java</artifactId>
@@ -425,20 +426,20 @@
           </exclusion>
         </exclusions>
       </dependency>
-
+      
       <dependency>
         <groupId>org.eclipse.jetty</groupId>
         <artifactId>jetty-servlet</artifactId>
         <version>${ver.jetty}</version>
       </dependency>
-
+      
       <!-- Jetty's useful servlets, inc compression -->
       <dependency>
         <groupId>org.eclipse.jetty</groupId>
         <artifactId>jetty-servlets</artifactId>
         <version>${ver.jetty}</version>
       </dependency>
-
+      
       <dependency>
         <groupId>org.eclipse.jetty</groupId>
         <artifactId>jetty-webapp</artifactId>
@@ -529,7 +530,7 @@
         <artifactId>log4j-api</artifactId>
         <version>${ver.log4j2}</version>
       </dependency>
-
+      
       <!-- Intercept direct use of log4j2 -->
       <dependency>
         <groupId>org.apache.logging.log4j</groupId>
@@ -562,8 +563,8 @@
         <version>${ver.log4j}</version>
       </dependency>
 
-      <!-- And intercept any uses of Jakarta Commons Logging
-           e.g. Apache Common HTTP client.
+      <!-- And intercept any uses of Jakarta Commons Logging 
+           e.g. Apache Common HTTP client. 
       -->
 
       <dependency>
@@ -590,7 +591,7 @@
           </exclusion>
         </exclusions>
       </dependency>
-
+      
       <dependency>
         <groupId>org.xenei</groupId>
         <artifactId>contract-test-maven-plugin</artifactId>
@@ -604,7 +605,7 @@
         <version>${ver.mockito}</version>
         <scope>test</scope>
       </dependency>
-
+      
       <dependency>
         <groupId>org.awaitility</groupId>
         <artifactId>awaitility</artifactId>
@@ -720,23 +721,23 @@
                 jena-core exclusions
             -->
             <exclude>**/src-examples/data/*</exclude>
-
+            
             <!--
                 jena-fuseki exclusions
             -->
             <exclude>**/dist/ABOUT</exclude>
             <exclude>**/SEE_FUSEKI2</exclude>
-            <!--
-                 Need to exclude JS and CSS since much of it comes from other Apache licensed projects
+            <!-- 
+                 Need to exclude JS and CSS since much of it comes from other Apache licensed projects 
                  e.g. Bootstrap, Qonsole
-
+                 
             -->
             <exclude>**/src/main/webapp/css/*</exclude>
             <exclude>**/src/main/webapp/fonts/*</exclude>
             <exclude>**/src/main/webapp/js/**/*</exclude>
-
+            
             <!-- General exclusions -->
-            <!--
+            <!-- 
                  Vocabularies are often just local copies of vocabularies
                  published by others
             -->
@@ -751,9 +752,9 @@
             -->
             <exclude>**/src/main/**/*.html</exclude>
             <exclude>**/src/**/package-info.java</exclude>
-
+            
             <exclude>**/DEPENDENCIES</exclude>
-
+            
             <!--
                 Text and Markdown files are typically used only for documentation purposes
                 and license declarations are usually spurious in these files since often they
@@ -761,57 +762,61 @@
             -->
             <exclude>**/*.txt</exclude>
             <exclude>**/*.md</exclude>
-
+            
             <!--
                 META-INF services files can include comments but a license header would be
                 unecessarily clutter so we exclude these
             -->
             <exclude>**/META-INF/services/*</exclude>
-
+            
             <!--
                 Jena historically has large numbers of small test file
-                with no license headers.  Such small files are not required
-                to have headers.
-
-                            In addition, there are files with different Licenses
-                            (e.g. W3C Software Licence, W3C Test Suite License) as
-                            noted in the code tree.
-                        -->
-                        <exclude>**/src/test/resources/**/*</exclude>
-                        <exclude>**/testing/**/*</exclude>
-
-                        <exclude>**/log4j.properties</exclude>
-                        <exclude>**/log4j-testing.properties</exclude>
-                        <exclude>**/derby.log</exclude>
-                        <exclude>**/DB/**/*</exclude>
-                        <!-- TDB config files JSON - no comments allowed -->
-                        <exclude>**/tdb*.cfg</exclude>
-                        <!-- Fuseki2 server "run" area -->
-                        <exclude>**/run/**/*</exclude>
-                        <!-- Cached classpath for commands - autogenerated -->
-                        <exclude>**/*.classpath</exclude>
-                        <!-- Cached recommenders by Eclipse  - autogenerated -->
-                        <exclude>**/*.recommenders/**/*</exclude>
-
-                        <!-- Exclude anything created during the build (plugin generated files) ->-->
-                        <exclude>**/target/**/*</exclude>
-                        <!-- MSHADE-124 -->
-                        <exclude>**/dependency-reduced-pom.xml</exclude>
-                        <exclude>.travis.yml</exclude>
-                        <exclude>jena-examples/**</exclude>
-                    </excludes>
-                </configuration>
-            </plugin>
-            <plugin>
-                <groupId>org.apache.felix</groupId>
-                <artifactId>maven-bundle-plugin</artifactId>
-                <extensions>true</extensions>
-            </plugin>
-        </plugins>
+                with no license headers.  Such small files are not required 
+                to have headers. 
+
+                In addition, there are files with different Licenses
+                (e.g. W3C Software Licence, W3C Test Suite License) as
+                noted in the code tree.
+            -->
+            <exclude>**/src/test/resources/**/*</exclude>
+            <exclude>**/testing/**/*</exclude>
+
+            <exclude>**/log4j.properties</exclude>
+            <exclude>**/log4j-testing.properties</exclude>
+            <exclude>**/derby.log</exclude>
+            <exclude>**/DB/**/*</exclude>
+            <!-- TDB config files JSON - no comments allowed -->
+            <exclude>**/tdb*.cfg</exclude>
+            <!-- Fuseki2 server "run" area -->
+            <exclude>**/run/**/*</exclude>
+            <!-- Cached classpath for commands - autogenerated -->
+            <exclude>**/*.classpath</exclude>
+            <!-- Cached recommenders by Eclipse  - autogenerated -->
+            <exclude>**/*.recommenders/**/*</exclude>
+
+            <!-- Exclude anything created during the build (plugin generated files) ->-->
+            <exclude>**/target/**/*</exclude>
+            <!-- MSHADE-124 -->
+            <exclude>**/dependency-reduced-pom.xml</exclude>
+            <exclude>.travis.yml</exclude>
+            <exclude>jena-examples/**</exclude>
+
+            <!-- This is OGC software licensed -->
+            <exclude>**/geosparql_vocab_all_v1_0_1_updated.rdf</exclude>
+
+          </excludes>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.felix</groupId>
+        <artifactId>maven-bundle-plugin</artifactId>
+        <extensions>true</extensions>
+      </plugin>
+    </plugins>
 
-        <!-- Plugin version list: http://maven.apache.org/plugins/index.html -->
-        <pluginManagement>
-            <plugins>
+    <!-- Plugin version list: http://maven.apache.org/plugins/index.html -->
+    <pluginManagement>
+      <plugins>
 
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
@@ -1009,322 +1014,130 @@
                   -->
                   <pluginExecutionFilter>
                     <groupId>org.apache.maven.plugins</groupId>
-                    <artifactId>maven-assembly-plugin</artifactId>
-                    <version>3.1.0</version>
-                </plugin>
-
-                <plugin>
-                    <groupId>org.apache.maven.plugins</groupId>
-                    <artifactId>maven-compiler-plugin</artifactId>
-                    <version>3.8.0</version>
-                    <configuration>
-                        <showDeprecation>false</showDeprecation>
-                        <encoding>UTF-8</encoding>
-                        <debug>true</debug>
-                        <debuglevel>source,lines,vars</debuglevel>
-                        <optimize>true</optimize>
-                        <source>${jdk.version}</source>
-                        <target>${jdk.version}</target>
-                    </configuration>
-                </plugin>
-
-                <plugin>
-                    <groupId>org.apache.maven.plugins</groupId>
-                    <artifactId>maven-surefire-plugin</artifactId>
-                    <version>2.22.1</version>
-                    <!--
-                         Bug: SUREFIRE-1588
-                         https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=911925
-                    -->
-                    <configuration>
-                        <useSystemClassLoader>false</useSystemClassLoader>
-                    </configuration>
-                </plugin>
-
-                <plugin>
-                    <groupId>org.apache.maven.plugins</groupId>
-                    <artifactId>maven-jar-plugin</artifactId>
-                </plugin>
-
-                <plugin>
-                    <groupId>org.apache.maven.plugins</groupId>
-                    <artifactId>maven-source-plugin</artifactId>
-                    <executions>
-                        <execution>
-                            <id>attach-sources</id>
-                            <goals>
-                                <goal>jar-no-fork</goal>
-                            </goals>
-                        </execution>
-                        <!-- Only needed in some jars <execution> <id>attach-sources-test</id>
-                        <goals> <goal>test-jar-no-fork</goal> </goals> </execution> -->
-                    </executions>
-                </plugin>
-
-                <plugin>
-                    <groupId>org.apache.maven.plugins</groupId>
-                    <artifactId>maven-javadoc-plugin</artifactId>
-                    <version>3.0.1</version>
-                    <executions>
-                        <execution>
-                            <id>attach-javadocs</id>
-                            <goals>
-                                <goal>jar</goal>
-                            </goals>
-                        </execution>
-                    </executions>
-                    <configuration>
-                        <!-- Java 10
-                             <additionalOptions>-html5</additionalOptions>
-                        -->
-                        <quiet>true</quiet>
-                        <doclint>none</doclint>
-                        <!-- To allow the build to keep going despite javadoc problems:
-                             <failOnError>false</failOnError>
-                        -->
-                        <version>true</version>
-                        <show>public</show>
-                        <encoding>UTF-8</encoding>
-                        <windowtitle>${project.name} ${project.version}</windowtitle>
-                        <doctitle>${project.name} ${project.version}</doctitle>
-                        <bottom>Licensed under the Apache License, Version 2.0</bottom>
-                        <links>
-                            <link>http://jena.apache.org/documentation/javadoc/jena/</link>
-                            <link>http://jena.apache.org/documentation/javadoc/arq/</link>
-                            <link>http://jena.apache.org/documentation/javadoc/tdb/</link>
-                            <link>http://jena.apache.org/documentation/javadoc/text/</link>
-                            <link>http://jena.apache.org/documentation/javadoc/rdfconnection/</link>
-                            <link>http://jena.apache.org/documentation/javadoc/fuseki2/</link>
-                            <link>http://jena.apache.org/documentation/javadoc/permissions/</link>
-                            <link>http://jena.apache.org/documentation/javadoc/jdbc/</link>
-                        </links>
-                    </configuration>
-                </plugin>
-
-                <plugin>
-                    <groupId>org.apache.maven.plugins</groupId>
-                    <artifactId>maven-resources-plugin</artifactId>
-                    <configuration>
-                        <encoding>UTF-8</encoding>
-                    </configuration>
-                </plugin>
-
-                <!-- Temp fix for remote-resources while waiting for remote-resources >1.5
-                     1.6 should fix this - SNAPSHOT already does.
-                -->
-                <plugin>
-                    <groupId>org.apache.maven.plugins</groupId>
-                    <artifactId>maven-remote-resources-plugin</artifactId>
-                    <version>1.5</version>
-                    <dependencies>
-                        <dependency>
-                            <groupId>org.apache.maven.shared</groupId>
-                            <artifactId>maven-filtering</artifactId>
-                            <version>1.2</version>
-                        </dependency>
-                    </dependencies>
-                </plugin>
-
-                <plugin>
-                    <groupId>org.apache.maven.plugins</groupId>
-                    <artifactId>maven-dependency-plugin</artifactId>
-                    <configuration>
-                        <overWriteReleases>false</overWriteReleases>
-                        <overWriteIfNewer>true</overWriteIfNewer>
-                    </configuration>
-                </plugin>
-
-                <plugin>
-                    <groupId>org.apache.maven.plugins</groupId>
                     <artifactId>maven-enforcer-plugin</artifactId>
-                    <version>3.0.0-M1</version>
-                    <executions>
-                        <execution>
-                            <id>enforce</id>
-                            <goals>
-                                <goal>enforce</goal>
-                            </goals>
-                        </execution>
-                    </executions>
-                    <configuration>
-                        <rules>
-                            <requirePluginVersions>
-                                <message>Best practice is to always define plugin versions!</message>
-                                <banLatest>true</banLatest>
-                                <banRelease>true</banRelease>
-                            </requirePluginVersions>
-                            <requireReleaseDeps>
-                                <message>No SNAPSHOT dependencies are allowed!</message>
-                                <onlyWhenRelease>true</onlyWhenRelease>
-                            </requireReleaseDeps>
-                            <DependencyConvergence />
-                        </rules>
-                        <fail>true</fail>
-                    </configuration>
-                </plugin>
-
-                <plugin>
-                    <groupId>org.apache.felix</groupId>
-                    <artifactId>maven-bundle-plugin</artifactId>
-                    <version>2.5.3</version>
-                    <extensions>true</extensions>
-                </plugin>
-
-                <plugin>
+                    <versionRange>[1.0.0,)</versionRange>
+                    <goals>
+                      <goal>enforce</goal>
+                    </goals>
+                  </pluginExecutionFilter>
+                  <action>
+                    <ignore />
+                  </action>
+                </pluginExecution>
+                <pluginExecution>
+                  <!-- 
+                       Warning:
+                       "maven-enforcer-plugin (goal "enforce") is ignored by m2e." 
+                  -->
+                  <pluginExecutionFilter>
                     <groupId>org.apache.maven.plugins</groupId>
-                    <artifactId>maven-shade-plugin</artifactId>
-                    <version>3.2.0</version>
-                </plugin>
+                    <artifactId>maven-remote-resources-plugin</artifactId>
+                    <versionRange>[1.0.0,)</versionRange>
+                    <goals>
+                      <goal>process</goal>
+                    </goals>
+                  </pluginExecutionFilter>
+                  <action>
+                    <ignore />
+                  </action>
+                </pluginExecution>
+                
+                <pluginExecution>
+                  <!--
+                      Error:
+                      Plugin execution not covered by lifecycle configuration
+                  -->
+                  <pluginExecutionFilter>
+                    <groupId>org.apache.rat</groupId>
+                    <artifactId>apache-rat-plugin</artifactId>
+                    <versionRange>[0.11,)</versionRange>
+                    <goals>
+                      <goal>check</goal>
+                    </goals>
+                  </pluginExecutionFilter>
+                  <action>
+                    <ignore />
+                  </action>
+                </pluginExecution>
 
-                <plugin>
-                    <groupId>org.apache.maven.plugins</groupId>
-                    <artifactId>maven-war-plugin</artifactId>
-                    <version>3.2.0</version>
-                </plugin>
-
-                <!--
-                    Avoid the warnings and errors from m2e.
-                    This plugin's configuration is used to store Eclipse m2e settings only.
-                    It has no influence on the Maven build itself.
-                -->
-                <plugin>
-                    <groupId>org.eclipse.m2e</groupId>
-                    <artifactId>lifecycle-mapping</artifactId>
-                    <version>1.0.0</version>
-                    <configuration>
-                        <lifecycleMappingMetadata>
-                            <pluginExecutions>
-                                <pluginExecution>
-                                    <!--
-                                         Warning:
-                                         "maven-remote-resources-plugin (goal "process") is ignored by m2e."
-                                    -->
-                                    <pluginExecutionFilter>
-                                        <groupId>org.apache.maven.plugins</groupId>
-                                        <artifactId>maven-enforcer-plugin</artifactId>
-                                        <versionRange>[1.0.0,)</versionRange>
-                                        <goals>
-                                            <goal>enforce</goal>
-                                        </goals>
-                                    </pluginExecutionFilter>
-                                    <action>
-                                        <ignore />
-                                    </action>
-                                </pluginExecution>
-                                <pluginExecution>
-                                    <!--
-                                         Warning:
-                                         "maven-enforcer-plugin (goal "enforce") is ignored by m2e."
-                                    -->
-                                    <pluginExecutionFilter>
-                                        <groupId>org.apache.maven.plugins</groupId>
-                                        <artifactId>maven-remote-resources-plugin</artifactId>
-                                        <versionRange>[1.0.0,)</versionRange>
-                                        <goals>
-                                            <goal>process</goal>
-                                        </goals>
-                                    </pluginExecutionFilter>
-                                    <action>
-                                        <ignore />
-                                    </action>
-                                </pluginExecution>
-
-                                <pluginExecution>
-                                    <!--
-                                        Error:
-                                        Plugin execution not covered by lifecycle configuration
-                                    -->
-                                    <pluginExecutionFilter>
-                                        <groupId>org.apache.rat</groupId>
-                                        <artifactId>apache-rat-plugin</artifactId>
-                                        <versionRange>[0.11,)</versionRange>
-                                        <goals>
-                                            <goal>check</goal>
-                                        </goals>
-                                    </pluginExecutionFilter>
-                                    <action>
-                                        <ignore />
-                                    </action>
-                                </pluginExecution>
-
-                                <pluginExecution>
-                                    <pluginExecutionFilter>
-                                        <groupId>org.xenei</groupId>
-                                        <artifactId>contract-test-maven-plugin</artifactId>
-                                        <versionRange>[0.1.5,)</versionRange>
-                                        <goals>
-                                            <goal>contract-test</goal>
-                                        </goals>
-                                    </pluginExecutionFilter>
-                                    <action>
-                                        <ignore />
-                                    </action>
-                                </pluginExecution>
-
-                            </pluginExecutions>
-                        </lifecycleMappingMetadata>
-                    </configuration>
-                </plugin>
-
-            </plugins>
-        </pluginManagement>
-    </build>
-
-    <reporting>
-        <!-- <outputDirectory>${project.build.directory}/site</outputDirectory> -->
+                <pluginExecution>
+                  <pluginExecutionFilter>
+                    <groupId>org.xenei</groupId>
+                    <artifactId>contract-test-maven-plugin</artifactId>
+                    <versionRange>[0.1.5,)</versionRange>
+                    <goals>
+                      <goal>contract-test</goal>
+                    </goals>
+                  </pluginExecutionFilter>
+                  <action>
+                    <ignore />
+                  </action>
+                </pluginExecution>
+                
+              </pluginExecutions>
+            </lifecycleMappingMetadata>
+          </configuration>
+        </plugin>
 
-        <plugins>
+      </plugins>
+    </pluginManagement>
+  </build>
 
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-surefire-report-plugin</artifactId>
-                <configuration>
-                    <outputDirectory>${project.basedir}/target/surefire-reports-html</outputDirectory>
-                </configuration>
-            </plugin>
-
-            <plugin>
-                <groupId>org.codehaus.mojo</groupId>
-                <artifactId>cobertura-maven-plugin</artifactId>
-                <version>2.7</version>
-                <configuration>
-                    <instrumentation>
-                        <ignores>
-                            <ignore>org.slf4j.*</ignore>
-                        </ignores>
-                    </instrumentation>
-                </configuration>
-            </plugin>
-
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-checkstyle-plugin</artifactId>
-                <version>2.17</version>
-            </plugin>
-
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-jxr-plugin</artifactId>
-                <version>2.5</version>
-            </plugin>
-
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-pmd-plugin</artifactId>
-                <version>3.8</version>
-                <configuration>
-                    <linkXref>true</linkXref>
-                    <sourceEncoding>utf-8</sourceEncoding>
-                    <minimumTokens>100</minimumTokens>
-                </configuration>
-            </plugin>
-
-            <plugin>
-                <groupId>com.github.spotbugs</groupId>
-                <artifactId>spotbugs-maven-plugin</artifactId>
-                <version>3.1.1</version>
-            </plugin>
-        </plugins>
-    </reporting>
+  <reporting>
+    <!-- <outputDirectory>${project.build.directory}/site</outputDirectory> -->
+
+    <plugins>
+
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-surefire-report-plugin</artifactId>
+        <configuration>
+          <outputDirectory>${project.basedir}/target/surefire-reports-html</outputDirectory>
+        </configuration>
+      </plugin>
+
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>cobertura-maven-plugin</artifactId>
+        <version>2.7</version>
+        <configuration>
+          <instrumentation>
+            <ignores>
+              <ignore>org.slf4j.*</ignore>
+            </ignores>
+          </instrumentation>
+        </configuration>
+      </plugin>
+
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-checkstyle-plugin</artifactId>
+        <version>2.17</version>
+      </plugin>
+
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-jxr-plugin</artifactId>
+        <version>2.5</version>
+      </plugin>
+
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-pmd-plugin</artifactId>
+        <version>3.8</version>
+        <configuration>
+          <linkXref>true</linkXref>
+          <sourceEncoding>utf-8</sourceEncoding>
+          <minimumTokens>100</minimumTokens>
+        </configuration>
+      </plugin>
+
+      <plugin>
+        <groupId>com.github.spotbugs</groupId>
+        <artifactId>spotbugs-maven-plugin</artifactId>
+        <version>3.1.1</version>
+      </plugin>
+    </plugins>
+  </reporting>
 
 </project>