Re: Maven plugin development: Getting a Set of an declared and transitive dependencies

2018-07-16 Thread Robert Scholte
See https://maven.apache.org/plugin-tools/maven-plugin-tools-annotations/index.html if you want the jars, set requiresDependencyResolution thanks, Robert On Mon, 16 Jul 2018 21:40:18 +0200, Romain Manni-Bucau wrote: Hi, GetArtifacts should work if you run it in the right phase. Le lun

Re: Maven plugin development: Getting a Set of an declared and transitive dependencies

2018-07-16 Thread Romain Manni-Bucau
Hi, GetArtifacts should work if you run it in the right phase. Le lun. 16 juil. 2018 21:19, exabr...@gmail.com a écrit : > Hey guys, > > Right now, I'm doing the following: > > ``` > ... > @Inject > private ProjectDependenciesResolver projectDependenciesResolver; > ... > final List scopes

Maven plugin development: Getting a Set of an declared and transitive dependencies

2018-07-16 Thread exabrial
Hey guys, Right now, I'm doing the following: ``` ... @Inject private ProjectDependenciesResolver projectDependenciesResolver; ... final List scopes = Arrays.asList(new String[] { "compile", "runtime", "test" }); final Set artifacts = projectDependenciesResolver.resolve(mavenProject, sc