Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aether-users] Resolving dependencies from local pom.xml

Jérémy wrote:

My goal is to resolve the dependencies of the current project where the
Maven plugin has been called from.

Usually, plugins can use the requiresDependencyResolution annotation [0] for this.

I experience 2 different behaviors, depending on the environment:
1) If an artifact of the current project already exists (either on Nexus or
in the local repository), the dependencies from the remote pom.xml will be
resolved.
2) If the environment is clean, the dependencies will come from the local
pom.xml, as I expect.

I don't quite understand, what is a "local pom.xml" and how exactly do you tell where dependencies were resolved from?


Benjamin


[0] http://maven.apache.org/developers/mojo-api-specification.html


Back to the top