wiki:TutorialMaven

Version 4 (modified by vegasm, 10 years ago) (diff)

--

Thredds development with eclipse

We have to follow some steps to develop Thredds project with Eclipse IDE and Java Environment. Thredds is a project that uses Maven so we will configurate Maven in our pc too.

Setting up java envionment in our pc:

1- Download JDK (Java Development Kit) latest release 1.7, Maven and eclipse

JDK: http://www.oracle.com/technetwork/java/javase/downloads/java-se-jdk-7-download-432154.html MAVEN: http://apache.rediris.es/maven/maven-3/3.0.4/binaries/apache-maven-3.0.4-bin.zip Eclipse Juno for Java EE Developers: http://www.eclipse.org/downloads/

JDK is necessary to install and the others only unzip the folders where you prefer.

2- Configuration of Java Environtment variables in our system

PATH = C:\Program Files\Java\jdk1.7.0\bin (Necessary to exec javac command) JAVA_HOME = C:\Program Files\Java\jdk1.7.0

3- Configuration of Apache Maven Environment variables

MAVEN_HOME = C:\Program Files\apache-maven-3.0.4 PATH = C:\Program Files\Java\jdk1.7.0\bin;%MAVEN_HOME%\bin; (Necessary to exec mvn command)

4- Check if your configuration is OK

Go to Start menu => execute => type cmd Type mvn-version and you should see something like this:

Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100) Maven home: C:\Program Files\apache-maven-3.0.4\bin\.. Java version: 1.7.0, vendor: Oracle Corporation Java home: C:\Program Files\Java\jdk1.7.0\jre Default locale: es_ES, platform encoding: Cp1252 OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"

How to download thredds project and include in Eclipse

Dirección subversion del proyecto de ejemplo: https://www.meteo.unican.es/svn/repos/documentos/trunk/software

1- http://www.youtube.com/watch?v=X8lu7Oi23YQ (Creación de un proyecto sencillo) 2- http://www.youtube.com/watch?v=H8QdjyCB8Nw (Añadir dependencias)