Hi Richard,
Someone posted the similar idea before and actually got an working
example, here is the link of the thread:
http://groovy.329449.n5.nabble.com/JVM-application-installer-via-maven-gradle-repo-tp5722094p5722112.html,
and the repository https://github.com/tkruse/gpi, but I have not tried
it myself.
On Wed, Jul 15, 2015 at 9:04 AM, Richard Heintze <sieg_heintze@yahoo.com> wrote:
>
> Can someone help me get started with a little groovy program that will
> (1) ingest a maven pom.xml
> (2) construct the dependency tree
> (3) download dependencies into the local maven repository if needed
> (4) construct the class path strings that includes all the dependent jars
> and display this so I can use it with the java command to run the java
> program with this bash syntax
>
> java -cp `getClassPath.groovy ./pom.xml` abc.def.main
>
> This would be very handy for running command line utilities like the derby
> toolkit command line and the flyway command line utility.
>
> Thanks
> Siegfried
|