summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnaël Closson <ac2550@intl.att.com>2017-09-06 11:55:21 +0200
committerAnaël Closson <ac2550@intl.att.com>2017-09-06 12:02:51 +0200
commit7066e9c21f965a4202dee894a1146d70d389df1a (patch)
treeb11adb048a4fed1e900120aeabb0b53d4d78feab
parent504d5c7f408b8f4ec0eb6738283acda4ddf4ccb9 (diff)
OParent children do not find checkstyle
The checkstyle plugin cannot be found by projects inheriting by OParent. When maven executes the check-license execution, he finds the org.onap.oparent:checkstyle:jar:1.0.0 as dependency and tries to retreive it. The repository section doesn't apply to plugin dependencies and so the org.onap.oparent:checkstyle:jar cannot be found. By adding it as dependency of the org.onap.oparent:oparent project, the artifact is downloaded using the project repositories and is already available when the plugin dependencies are checked. This might be due to a maven bug. Change-Id: I9eabea660b5fe8ceacc7299914e64ccccd7c2850 Issue-Id: INT-128 Signed-off-by: Anaël Closson <ac2550@intl.att.com>
-rw-r--r--oparent/pom.xml13
1 files changed, 13 insertions, 0 deletions
diff --git a/oparent/pom.xml b/oparent/pom.xml
index 0c636ba..fe603f2 100644
--- a/oparent/pom.xml
+++ b/oparent/pom.xml
@@ -68,6 +68,19 @@
</releases>
</repository>
</repositories>
+ <dependencies>
+ <dependency>
+ <!-- Needed to download the checkstyle artifact
+ using the repository section of this pom.
+ The checkstyle plugin below use it as dependency,
+ but maven does not want to use the repositories
+ to download the plugin dependency.
+ -->
+ <groupId>org.onap.oparent</groupId>
+ <artifactId>checkstyle</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
<profiles>
<profile>
<id>generate-json</id>