Move common profile to parent pom 56/119256/1
authorJim Hahn <jrh3@att.com>
Fri, 12 Mar 2021 15:01:53 +0000 (10:01 -0500)
committerJim Hahn <jrh3@att.com>
Fri, 12 Mar 2021 15:04:06 +0000 (10:04 -0500)
The "m2e" lifecycle-mappings appear in all of the policy repos.  Moved
it to parent so that it only has to be managed in one place.
Also embedded it within a profile, per discussions on the web:
  https://stackoverflow.com/questions/7409823/m2e-lifecycle-mapping-not-found

Issue-ID: POLICY-3126
Change-Id: I90f4abdc72b7344dd262077fad8869f8963f4313
Signed-off-by: Jim Hahn <jrh3@att.com>
integration/pom.xml

index c513d73..3ef1cbb 100644 (file)
         <url>https://wiki.onap.org/display/DW/Integration+Project</url>
     </scm>
 
+    <profiles>
+        <profile>
+            <id>m2e</id>
+            <!-- This profile is only active when the property "m2e.version" is set,
+                which is the case when building in Eclipse with m2e. -->
+            <activation>
+                <property>
+                    <name>m2e.version</name>
+                </property>
+            </activation>
+            <build>
+                <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>
+        </profile>
+    </profiles>
+
     <build>
         <extensions>
             <extension>