summaryrefslogtreecommitdiffstats
path: root/version-manifest
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2017-09-06 15:08:32 -0700
committerGary Wu <gary.i.wu@huawei.com>2017-09-06 15:08:32 -0700
commit11730c8f9c91782d794f6c8b67fd2add5f05228d (patch)
tree9531a910ac60c8e2735f1c1c02dab8fe92f8c45a /version-manifest
parent6fd61b5fa717862fa554fa4c4a076f56be3aaac1 (diff)
Change to report only direct dependencies
Change-Id: I752f62126cd710b33e926d12a994be9514bb6113 Issue-ID: INT-124 Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
Diffstat (limited to 'version-manifest')
-rw-r--r--version-manifest/src/main/java/org/onap/integration/versionmanifest/VersionCheckMojo.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/version-manifest/src/main/java/org/onap/integration/versionmanifest/VersionCheckMojo.java b/version-manifest/src/main/java/org/onap/integration/versionmanifest/VersionCheckMojo.java
index 5909c74f5..d6e5d4ca6 100644
--- a/version-manifest/src/main/java/org/onap/integration/versionmanifest/VersionCheckMojo.java
+++ b/version-manifest/src/main/java/org/onap/integration/versionmanifest/VersionCheckMojo.java
@@ -32,7 +32,7 @@ import java.util.TreeSet;
import org.apache.commons.csv.CSVFormat;
import org.apache.commons.csv.CSVRecord;
-import org.apache.maven.model.Dependency;
+import org.apache.maven.artifact.Artifact;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.logging.Log;
@@ -108,8 +108,8 @@ public class VersionCheckMojo extends AbstractMojo {
log.debug("No parent");
}
- for (Dependency dep : project.getDependencies()) {
- log.debug("Dependency: " + dep.toString());
+ for (Artifact dep : project.getDependencyArtifacts()) {
+ log.debug("DependencyArtifact: " + dep.toString());
// don't warn within the same groupId
if (!project.getGroupId().equals(dep.getGroupId())) {
actualVersions.put(dep.getGroupId() + ":" + dep.getArtifactId(), dep.getVersion());