Hi,
Use the dependencies-report[1] as inspiration.
This will create a HTML page looking something like this[2]
The source-repository page[3] will explain how you can get the sources.
Robert
[1]
http://maven.apache.org/plugins/maven-project-info-reports-plugin/dependencies-mojo.html
[2]
http://maven.apache.org/plugins/maven-project-info-reports-plugin/dependencies.html
[3]
http://maven.apache.org/plugins/maven-project-info-reports-plugin/source-repository.html
Op Wed, 16 Jan 2013 20:33:46 +0100 schreef Danny Schimke
<[email protected]>:
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!
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]