Merge "Remove MojoHaus Maven plug-in"
authorPamela Dragosh <pdragosh@research.att.com>
Wed, 16 Aug 2017 11:34:09 +0000 (11:34 +0000)
committerGerrit Code Review <gerrit@onap.org>
Wed, 16 Aug 2017 11:34:09 +0000 (11:34 +0000)
1  2 
pom.xml

diff --combined pom.xml
+++ b/pom.xml
@@@ -24,7 -24,7 +24,7 @@@
                <project.source.version>1.8</project.source.version>
                <project.target.version>1.8</project.target.version>
                <project.encoding>UTF-8</project.encoding>
-               
                <sonar.language>java</sonar.language>
                <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
                <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
                                <artifactId>maven-clean-plugin</artifactId>
                                <version>2.4.1</version>
                        </plugin>
-                       <!-- license plugin Run mvn clean before running from the command line 
-                               mvn license:update-file-header -->
-                       <plugin>
-                               <groupId>org.codehaus.mojo</groupId>
-                               <artifactId>license-maven-plugin</artifactId>
-                               <version>1.9</version>
-                               <configuration>
-                                       <extraExtensions>
-                                               <!-- Used to add or change the header style <fileTypeYouAreMapping> 
-                                                       fileTypeMappedInto </fileTypeYouAreMapping> -->
-                                               <drl>java</drl>
-                                               <ccf>properties</ccf>
-                                               <!-- Because the typical sql comment type confuses the update algorithm -->
-                                               <sql>java</sql>
-                                       </extraExtensions>
-                                       <licenseName>apache_v2</licenseName>
-                                       <inceptionYear>2017</inceptionYear>
-                                       <organizationName>AT&amp;T Intellectual Property. All rights
-                                               reserved.</organizationName>
-                                       <!-- Once you have established the tags and delimiter, they cannot be 
-                                               changed -->
-                                       <processStartTag>============LICENSE_START=======================================================</processStartTag>
-                                       <processEndTag>============LICENSE_END=========================================================</processEndTag>
-                                       <sectionDelimiter>================================================================================</sectionDelimiter>
-                                       <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
-                                       <canUpdateCopyright>true</canUpdateCopyright>
-                                       <canUpdateDescription>true</canUpdateDescription>
-                                       <canUpdateLicense>true</canUpdateLicense>
-                                       <emptyLineAfterHeader>true</emptyLineAfterHeader>
-                                       <roots>
-                                               <!-- Default is src, target/generated-sources, target/processed-sources -->
-                                               <!-- Everything except the files in the excludes section -->
-                                               <root>/</root>
-                                       </roots>
-                                       <excludes>
-                                               <!-- Files which are to be excluded. The pom.xml is excluded because 
-                                                       the start/end tags and the delimiters are in the body of the file. This confuses 
-                                                       the algorithm. So, this file must be manually updated with a license header. -->
-                                               <exclude>pom.xml</exclude>
-                                       </excludes>
-                               </configuration>
-                       </plugin>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-compiler-plugin</artifactId>
                                        <failOnMissingWebXml>false</failOnMissingWebXml>
                                </configuration>
                        </plugin>
-                       <!-- The Jetty plugin allows us to easily test the development build by 
+                       <!-- The Jetty plugin allows us to easily test the development build by
                                running jetty:run on the command line. -->
  
                        <plugin>
                          </dependencies>
                        </plugin>
                </plugins>
 +        <pluginManagement>
 +            <plugins>
 +                <plugin>
 +                    <groupId>org.eclipse.m2e</groupId>
 +                    <artifactId>lifecycle-mapping</artifactId>
 +                    <version>1.0.0</version>
 +                    <configuration>
 +                        <lifecycleMappingMetadata>
 +                            <pluginExecutions>
 +                                <pluginExecution>
 +                                    <pluginExecutionFilter>
 +                                        <groupId>org.apache.maven.plugins</groupId>
 +                                        <artifactId>maven-checkstyle-plugin</artifactId>
 +                                        <versionRange>2.17,)</versionRange>
 +                                        <goals>
 +                                            <goal>check</goal>
 +                                        </goals>
 +                                    </pluginExecutionFilter>
 +                                    <action>
 +                                        <ignore />
 +                                    </action>
 +                                </pluginExecution>
 +                            </pluginExecutions>
 +                        </lifecycleMappingMetadata>
 +                    </configuration>
 +                </plugin>
 +            </plugins>
 +        </pluginManagement>
        </build>
  </project>