Showing posts with label maven. Show all posts
Showing posts with label maven. Show all posts

Wednesday, August 15, 2012

Installing Maven On CentOS

Copy from key2start wordpress

Installing Maven On CentOS

05APR
These are the simple sequences for making maven work on a CentOS machine.
Pre-requisite : Java to be installed, check using java -version
1. Download the current maven version from the prescribed repository, http://maven.apache.org/download.html. I use to work with maven version 2.0.11 and hence downloaded using,
> wget http://www.eng.lsu.edu/mirrors/apache//maven/binaries/apache-maven-2.0.11-bin.tar.gz
Please wait while it is downloaded as a tar archive.
2. Extract the archive to the desired maven home directory, which can be a common, /usr/local/
So move the downloaded apache-maven-2.0.11-bin.tar.gz to /usr/local/ path using mv command or a short way can be use the wget command told before after going to the /usr/local/ path. Any way no issues..
> mv apache-maven-2.0.11-bin.tar.gz /usr/local
> cd /usr/local
> tar -zxvf apache-maven-2.0.11-bin.tar.gz
This will extract the apache-maven-2.0.11 directory into /usr/local/
3. Create sym link..
> ln -s apache-maven-2.0.11 maven
4. Open ~/.bashrc file with vi ~/.bashrc and add the following lines to the end of the file,
export M2_HOME=/usr/local/apache-maven-2.0.11
export PATH=${M2_HOME}/bin:${PATH}
5. AT last execute the environment changes with the command,    
> . ~/.bashrc
Check the installation with,
> mvn -version

http://key2start.wordpress.com/2011/04/05/maven-on-centos/

Wednesday, July 18, 2012

Install M2E in RAD


Install - M2Eclipse 0.10 cannot install 



Well, don't know the reason... reading the log, it seems it tries to use org.eclipse.zest.core plug-in and it is not found.

Doing some digging, it seems org.eclipse.zest.core is part of Eclipse GEF project: http://wiki.eclipse.org/GEF_Zest_Visualization which doesn't seem to be installed by default as part of Eclipse 3.6 (my installation) nor RAD 8.0 Beta 1.

I checked the Update Site you mentioned, and I didn't see the plug-in too.

I would suggest as workaround, try to connect to Helios Update site (Helios - http://download.eclipse.org/releases/helios)and install Graphical Editing Framework Zest Visualization Toolkit SDK. And then, try to install M2Eclipse plug-ins again...

About, why Equinox p2 within Eclipse 3.6 knows how to manage this dependency and Equinox p2 within RAD 8.0 Beta 1 doesn't... I don't know the answer.

Hope this helps.


Thursday, June 14, 2012

Installing Maven On CentOS


http://key2start.wordpress.com/2011/04/05/maven-on-centos/

These are the simple sequences for making maven work on a CentOS machine.

Pre-requisite : Java to be installed, check using java -version

1. Download the current maven version from the prescribed repository, http://maven.apache.org/download.html. I use to work with maven version 2.0.11 and hence downloaded using,

> wget http://www.eng.lsu.edu/mirrors/apache//maven/binaries/apache-maven-2.0.11-bin.tar.gz

Please wait while it is downloaded as a tar archive.

2. Extract the archive to the desired maven home directory, which can be a common, /usr/local/

So move the downloaded apache-maven-2.0.11-bin.tar.gz to /usr/local/ path using mv command or a short way can be use the wget command told before after going to the /usr/local/ path. Any way no issues..

> mv apache-maven-2.0.11-bin.tar.gz /usr/local

> cd /usr/local

> tar -zxvf apache-maven-2.0.11-bin.tar.gz

This will extract the apache-maven-2.0.11 directory into /usr/local/

3. Create sym link..

> ln -s apache-maven-2.0.11 maven

4. Open ~/.bashrc file with vi ~/.bashrc and add the following lines to the end of the file,

export M2_HOME=/usr/local/apache-maven-2.0.11
export PATH=${M2_HOME}/bin:${PATH}

5. AT last execute the environment changes with the command,  

> . ~/.bashrc

Check the installation with,

> mvn -version