You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Bernd Eckenfels <ec...@zusammenkunft.net> on 2014/02/13 02:19:17 UTC
Getting a list of used artifacts
Hello,
I want to write a plugin which does dump/verify the hashes of all
dependencies and plugins used in the build. That way I can "lock"
dependencies in the source not only by version, but also by checksum.
I have currently the following
@Mojo(requiresDependencyCollection=TEST)
project.getArtifacts()
project.getPluginArtifacts()
This looks about right, I get the dependencies of my project as well as
some plugins. For the Artifacts of the plugins I dont see a file
location, what would be the best way to get a file handle. Or is there
an alternate method where I can get the SHA1 hash of the (used) files?
Do you think this is a robust method to get hold of the most resolved
dependencies?
Gruss
Bernd
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: Getting a list of used artifacts
Posted by Bernd Eckenfels <ec...@zusammenkunft.net>.
Am Thu, 13 Feb 2014 02:19:17 +0100
schrieb Bernd Eckenfels <ec...@zusammenkunft.net>:
> @Mojo(requiresDependencyCollection=TEST)
> project.getArtifacts()
> project.getPluginArtifacts()
Actual test source is here:
https://github.com/ecki/lockdep-maven-plugin
Gruss
Bernd
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org