Saturday, September 08, 2007

Add plugin for Maven in Ubuntu

If you put your Maven in under /opt or any other folder needed root to modify, you will need to be root to add a plugin for Maven in Ubuntu

####To start a root terminal:
gksudo gnome-terminal


export MAVEN_HOME=/opt/maven
export MAVEN_REPO=/home/ji/.maven/repository
export MAVEN_OPTS='-Xms256m -Xmx512m -XX:PermSize=64m -XX:MaxPermSize=128m'
export PATH=$PATH:$MAVEN_HOME/bin

maven plugin:download -DgroupId=maven-plugins -DartifactId=maven-axis-plugin -Dversion=0.7


####This creates a new Maven repository under /root, I don't know how to change it back to my normal user repository.

This is the server I use to download plugin:
http://mirrors.ibiblio.org/pub/mirrors/maven/maven-plugins/plugins/

Don't try to put a plugin straight to Maven plugin folder, it crashes Maven.

My Eclipse still doesn't work in using Maven plugin~~~!!! Is it possible my Maven too old for Eclipse 3.3.
Why don't we use higher version of Sakai, so that it can support Maven 2?
The answer to this is, till now the lastest version of Sakai only supports Maven 1.0.2 well.

No comments: