summaryrefslogtreecommitdiffstats
path: root/pom.xml
diff options
context:
space:
mode:
authorAnaël Closson <ac2550@intl.att.com>2017-08-28 15:35:58 +0200
committerAnaël Closson <ac2550@intl.att.com>2017-08-28 16:04:36 +0200
commit9ab3bc578adf6f095b3da4f8e5b388d8268babbc (patch)
tree67ca9675ee62cd9ded4a6f4f6335bc451dad1d47 /pom.xml
parentff1f3422841a4a6464db72c9dbe10406dd158989 (diff)
Warn project for outdated dependencies
Projects using oparent as parent should have information about outdated dependencies. This is done at validation phase. A (template of a) list of rules is provided to ignore certain versions, a more importantly to ignore all versions of an artifact but one. This might be use to warn projects not using the needed dependency of an artifact when preparing for an specific release of ONAP. Current rule file is commented as it breaks it's not available on the git repository. Change-Id: I30bbbe5d14d8f297f046700963cc5a238e41901f Issue-id:INT-121 Signed-off-by: Anaël Closson <ac2550@intl.att.com>
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml22
1 files changed, 22 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index ebab15a..ab67a2f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2016-2017 Huawei Technologies Co., Ltd.
+ Modifications copyright (C) 2017 AT&T Intellectual Property
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -81,6 +82,23 @@
</dependency>
</dependencies>
</plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>versions-maven-plugin</artifactId>
+ <version>2.4</version>
+ <executions>
+ <execution>
+ <id>check-dependencies-version</id>
+ <phase>validate</phase>
+ <goals>
+ <goal>display-dependency-updates</goal>
+ </goals>
+ <configuration>
+ <!--<rulesUri>https://git.onap.org/oparent/plain/oparent/versions/src/main/resources/onap-versions/ruleset.xml</rulesUri>-->
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</pluginManagement>
<plugins>
@@ -96,6 +114,10 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
</plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>versions-maven-plugin</artifactId>
+ </plugin>
</plugins>
</build>
</project>