diff options
author | Jim Hahn <jrh3@att.com> | 2021-03-12 10:01:53 -0500 |
---|---|---|
committer | Jim Hahn <jrh3@att.com> | 2021-03-12 10:04:06 -0500 |
commit | a91d753c2039623b606fadb7316dc5a40e749e94 (patch) | |
tree | f080ef1c741640326f6e54f424a468741c617bb9 /integration/pom.xml | |
parent | 8da51100a7d1ba19db49521433b96c8032903954 (diff) |
Move common profile to parent pom
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>
Diffstat (limited to 'integration/pom.xml')
-rw-r--r-- | integration/pom.xml | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/integration/pom.xml b/integration/pom.xml index c513d731..3ef1cbb4 100644 --- a/integration/pom.xml +++ b/integration/pom.xml @@ -539,6 +539,49 @@ <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> |