note to self: maven differentiates between installing and
deploying a package (which might have been built via a mvn
package
):
- install — just installs the JAR file and the POM file, if the
-DcreateChecksum=true
flag is provided it will create the SHA1 for the JAR only - deploy — install JAR and POM and all necessary meta data along with SHA1s
to install a package to a shared repository a deploy is to be
preferred over an install as with an install we’ll get missing
checksum
errors later in life.
so, this works like this (using the lift-ldap
package as an example):
[shell] $ mvn deploy:deploy-file -DgroupId=net.liftweb -DartifactId=lift-ldap -Dversion=1.0.0 -Dpackaging=jar -Dfile=target/lift-ldap-1.0.0.jar -DcreateChecksum=true -Durl=scp://eyeteadee.zurich.ibm.com/var/www/eyeteadee.zurich.ibm.com/maven [/shell]