I’m trying to get all dependencies (include transitives) within my plugin using mavenProject.getArtifacts() but get an empty Set. part of the dependencies which I have to get cannot be resolved. I know that Maven 3 offers the @requiresDependencyCollection but that is no use for me since I must use Maven 2. What can I do?
I’m trying to get all dependencies (include transitives) within my plugin using mavenProject.getArtifacts() but
Share
https://svn.apache.org/repos/asf/maven/shared/trunk/maven-artifact-resolver will help with this.
For an example of its use, see https://svn.apache.org/repos/asf/cxf/trunk/maven-plugins/codegen-plugin.