Version 3 (modified by yxin, 11 years ago)



Install Maven

export M2_HOME=/usr/local/apache-maven/apache-maven-2.0.9 export M2=$M2_HOME/bin export PATH=$M2:$PATH

Automatic login to the repository server using public key: (, in our case)

client$ mkdir ~/.ssh client$ chmod 700 ~/.ssh client$ ssh-keygen -q -f ~/.ssh/id_rsa -t rsa Enter passphrase (empty for no passphrase): … Enter same passphrase again: … client$ scp ~/.ssh/

# next, setup the public key on server

server$ cd ~/.ssh server$ cat >> authorized_keys server$ chmod 600 authorized_keys server$ rm

MAVEN package, install, deploy

Modified "pom.xml" $mvn clean $mvn package $mvn deploy