maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sizu <scott...@gmail.com>
Subject Re: Is there any maven plugin to add dependency to existing pom.xml ?
Date Fri, 11 Oct 2013 17:19:26 GMT
This is useful for many reasons.  The less steps required to use external
dependencies the better.  If someone must add and configure xml to add a
dependency, it leads to human in the loop, which leads to errors.

I am all about how quick, I can get installed.

For instance, maybe I am writing an organizations how to, to download the
standard speech jar.

I would rather say, issue these ten commands:

curl http://dl.ghost4j.org/ghost4j-0.5.0.zip > ghost4j-0.5.0.zip

open ghost4j-0.5.0.zip

/usr/bin/mvn install:install-file -Dfile=ghost4j-0.5.0/ghost4j-0.5.0.jar
-Dpackaging=jar -DgroupId=org.ghost4j -DartifactId=ghost4j -Dversion=0.5.0
-DaddToPom=true

/usr/bin/mvn install:install-file
-Dfile=ghost4j-0.5.0/lib/xmlgraphics-commons-1.4.jar -Dpackaging=jar
-DgroupId=org.ghost4j -DartifactId=xmlgraphics-commons -Dversion=1.4
-DaddToPom=true

/usr/bin/mvn install:install-file
-Dfile=ghost4j-0.5.0/lib/commons-io-1.3.1.jar -Dpackaging=jar
-DgroupId=org.ghost4j -DartifactId=commons-io -Dversion=1.3.1
-DaddToPom=true

/usr/bin/mvn install:install-file -Dfile=ghost4j-0.5.0/lib/log4j-1.2.15.jar
-Packaging=jar -DgroupId=org.ghost4j -DartifactId=log4j -Dversion=1.2.15
-DaddToPom=true

/usr/bin/mvn install:install-file
-Dfile=ghost4j-0.5.0/lib/commons-beanutils-1.8.3.jar -Dpackaging=jar
-DgroupId=org.ghost4j -DartifactId=commons-beanutils -Dversion=1.8.3
-DaddToPom=true

/usr/bin/mvn install:install-file
-Dfile=ghost4j-0.5.0/lib/commons-logging-1.1.1.jar -Dpackaging=jar
-DgroupId=org.ghost4j -DartifactId=commons-logging -Dversion=1.1.1
-DaddToPom=true

/usr/bin/mvn install:install-file -Dfile=ghost4j-0.5.0/lib/itext-2.1.7.jar
-Dpackaging=jar -DgroupId=org.ghost4j -DartifactId=itext -Dversion=2.1.7
-DaddToPom=true

/usr/bin/mvn install:install-file -Dfile=ghost4j-0.5.0/lib/jna-3.3.0.jar
-Dpackaging=jar -DgroupId=org.ghost4j -DartifactId=jna -Dversion=3.3.0
-DaddToPom=true

More commands, fine, but command line also leads to automation.  Users can
include ghostscript via a batch file!



--
View this message in context: http://maven.40175.n5.nabble.com/Is-there-any-maven-plugin-to-add-dependency-to-existing-pom-xml-tp2839092p5772853.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message