Version 6 (modified by yxin, 10 years ago)

--

MAVEN Set UP

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: (https://geni-orca.renci.org, 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/id_rsa.pub geni-orc.renci.org:/home/yxin/.ssh:

# next, setup the public key on server

* server$ cd ~/.ssh

* server$ cat id_rsa.pub >> authorized_keys

* server$ chmod 600 authorized_keys

* server$ rm id_rsa.pub

MAVEN package, install, deploy

* Modified "pom.xml"

* $mvn clean

* $mvn package

* $mvn deploy