RE: [m2] How to get artifact and Maven project for dependencies and tran
the diff between project.getDependencies() and project.getDependencyArtifacts() is basically that getDependencies() returns also transitive dependencies Doesn't seem to work for me (with maven-plugin-api 2.0) - I only get the direct dependencies (declared in the pom). Is this a surprise to anyone? -- View this message in context: http://www.nabble.com/-m2--How-to-get-artifact-and-Maven-project-for-dependencies-and-transitive-dependencies-tf866711.html#a5758645 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] How to get artifact and Maven project for dependencies and tran
the diff between project.getDependencies() and project.getDependencyArtifacts() is basically that getDependencies() returns also transitive dependencies Actually, getDependencyArtifacts() is always empty for me, wheras getDependencies() is just the dependencies declared in the pom. Is that right? -- View this message in context: http://www.nabble.com/-m2--How-to-get-artifact-and-Maven-project-for-dependencies-and-transitive-dependencies-tf866711.html#a5759453 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] How to get artifact and Maven project for dependencies and tran
Actually, getDependencyArtifacts() is always empty for me, wheras getDependencies() is just the dependencies declared in the pom. Is that right? I think that is right, and I found a reference to @requiresDependencyResolution that helped a bit - if @requiresDependencyResolution is included in my mojo declaration, then getDependencyArtifacts() works at runtime. But not in my unit tests. Even if I put @requiresDependencyResolution test it still only kicks in at runtime. How can I make it work in unit tests? -- View this message in context: http://www.nabble.com/-m2--How-to-get-artifact-and-Maven-project-for-dependencies-and-transitive-dependencies-tf866711.html#a5760300 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]