Danny Schimke
2013-01-16 19:33:46 UTC
Hi,
for 3 years now I have no more experience with Maven. But today I got a
challenge. I have to resolve the projects dependencies and write those into
a file. There already a template file exists with placeholders where to
replace with the dependencies. Finally the file will be copied to a
specified directory. The output should be plain text as well XML depending
upon the POMs configuration. It should be possible to configure in the pom
which artifacts are written/captured. Important is to gather the version of
depending artifacts in a file.
Entire thoughts were to write a new maven plugin. But then I need to call
the dependency:resolve plugin within my plugin and use its result to
achieve my goal. How can I do this?
Are there other possible and good solutions to do it (maybe using Groovy
script and call "mvn" on command line)?
Thanks a lot!
--
Mit freundlichen Grüßen / Kind regards
-Danny Schimke*
Place To Remember* (Android- App)
goo.gl/M9OGs - *Free*
goo.gl/A8bZ3 - *Donate*
Viel Spaß und vielen Dank!
for 3 years now I have no more experience with Maven. But today I got a
challenge. I have to resolve the projects dependencies and write those into
a file. There already a template file exists with placeholders where to
replace with the dependencies. Finally the file will be copied to a
specified directory. The output should be plain text as well XML depending
upon the POMs configuration. It should be possible to configure in the pom
which artifacts are written/captured. Important is to gather the version of
depending artifacts in a file.
Entire thoughts were to write a new maven plugin. But then I need to call
the dependency:resolve plugin within my plugin and use its result to
achieve my goal. How can I do this?
Are there other possible and good solutions to do it (maybe using Groovy
script and call "mvn" on command line)?
Thanks a lot!
--
Mit freundlichen Grüßen / Kind regards
-Danny Schimke*
Place To Remember* (Android- App)
goo.gl/M9OGs - *Free*
goo.gl/A8bZ3 - *Donate*
Viel Spaß und vielen Dank!