From 11730c8f9c91782d794f6c8b67fd2add5f05228d Mon Sep 17 00:00:00 2001 From: Gary Wu Date: Wed, 6 Sep 2017 15:08:32 -0700 Subject: Change to report only direct dependencies Change-Id: I752f62126cd710b33e926d12a994be9514bb6113 Issue-ID: INT-124 Signed-off-by: Gary Wu --- .../java/org/onap/integration/versionmanifest/VersionCheckMojo.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'version-manifest/src/main/java/org') 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()); -- cgit 1.2.3-korg