Remove Eclipse lifecycle error on plugin 15/50715/1
authorliamfallon <liam.fallon@ericsson.com>
Wed, 6 Jun 2018 15:26:10 +0000 (16:26 +0100)
committerliamfallon <liam.fallon@ericsson.com>
Wed, 6 Jun 2018 15:26:29 +0000 (16:26 +0100)
The kie-maven-plugin causes a lifecycle management
error in Eclipse (not in normal build). A profile
is added to the POM to remove this eclipse
error.

Change-Id: I6f5e5bec5e1e388edb083a910b9d1472af889a47
Issue-ID: POLICY-716
Signed-off-by: liamfallon <liam.fallon@ericsson.com>
controlloop/common/controller-beijing/pom.xml

index ba9afa9..8efd25c 100644 (file)
             <groupId>com.att.research.xacml</groupId>
             <artifactId>xacml-pdp</artifactId>
             <version>1.0.1</version>
-                     <exclusions>
-                       <!-- The LDAP PIP uses velocity which pulls this insecure jar in. We
-                       are not using that PIP and can safely exclude this jar to resolve CLM issue.
-                        -->
-                       <exclusion>
-                         <groupId>commons-collections</groupId>
-                         <artifactId>commons-collections</artifactId>
-                       </exclusion>
-                     </exclusions>
+            <exclusions>
+                <!-- The LDAP PIP uses velocity which pulls this insecure jar in. We
+                are not using that PIP and can safely exclude this jar to resolve CLM issue.
+                 -->
+                <exclusion>
+                    <groupId>commons-collections</groupId>
+                    <artifactId>commons-collections</artifactId>
+                </exclusion>
+            </exclusions>
         </dependency>
         <dependency>
             <groupId>org.onap.policy.drools-pdp</groupId>
         </dependency>
     </dependencies>
 
+    <profiles>
+        <profile>
+            <!--This profile is used to store Eclipse m2e settings only. It has no 
+                influence on the Maven build itself. -->
+            <id>only-eclipse</id>
+            <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.kie</groupId>
+                                                <artifactId>kie-maven-plugin</artifactId>
+                                                <versionRange>6.5.0.Final</versionRange>
+                                                <goals>
+                                                    <goal>build</goal>
+                                                </goals>
+                                            </pluginExecutionFilter>
+                                            <action>
+                                                <ignore />
+                                            </action>
+                                        </pluginExecution>
+                                    </pluginExecutions>
+                                </lifecycleMappingMetadata>
+                            </configuration>
+                        </plugin>
+                    </plugins>
+                </pluginManagement>
+            </build>
+        </profile>
+    </profiles>
 </project>