Changes between Version 4 and Version 5 of TutorialMaven


Ignore:
Timestamp:
Feb 7, 2013 12:52:16 PM (10 years ago)
Author:
vegasm
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TutorialMaven

    v4 v5  
    33We 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.
    44
    5 == Setting up java envionment in our pc: ==
     5== Setting up java envionment in your pc: ==
    66
    7 === 1- Download JDK (Java Development Kit) latest release 1.7, Maven and eclipse ===
    8 
     7 === 1- Download JDK (Java Development Kit) latest release 1.7, Maven and eclipse ===
     8{{{
    99JDK: http://www.oracle.com/technetwork/java/javase/downloads/java-se-jdk-7-download-432154.html
    1010MAVEN: http://apache.rediris.es/maven/maven-3/3.0.4/binaries/apache-maven-3.0.4-bin.zip
    1111Eclipse Juno for Java EE Developers:  http://www.eclipse.org/downloads/
     12}}}
    1213
    1314JDK is necessary to install and the others only unzip the folders where you prefer.
    1415
    15 === 2- Configuration of Java Environtment variables in our system ===
    16 
     16 === 2- Configuration of Java Environtment variables in our system ===
     17{{{
    1718PATH = C:\Program Files\Java\jdk1.7.0\bin (Necessary to exec javac command)
    1819JAVA_HOME = C:\Program Files\Java\jdk1.7.0
     20}}}
    1921
    20 === 3- Configuration of Apache Maven Environment variables ===
    21 
     22 === 3- Configuration of Apache Maven Environment variables ===
     23{{{
    2224MAVEN_HOME = C:\Program Files\apache-maven-3.0.4
    2325PATH = C:\Program Files\Java\jdk1.7.0\bin;%MAVEN_HOME%\bin; (Necessary to exec mvn command)
     26}}}
    2427
    25 === 4- Check if your configuration is OK ===
     28 === 4- Check if your configuration is OK ===
    2629
    2730Go to Start menu => execute => type cmd
    2831Type mvn-version and you should see something like this:
    29 
     32{{{
    3033Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100)
    3134Maven home: C:\Program Files\apache-maven-3.0.4\bin\..
     
    3437Default locale: es_ES, platform encoding: Cp1252
    3538OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
     39}}}
    3640
    3741
    38 == How to download thredds project and include in Eclipse ==
     42== How to download thredds project and compile it with Maven ==
    3943
     44Download thredds from here by clicking Zip button and unzip wherever you want: https://github.com/Unidata/thredds
     45
     46Then is time to test out maven installation. Open cmd and go to the main folder project. Execute mvn install and you should see something like this:
     47{{{
     48[INFO] Parent THREDDS and CDM modules .................... SUCCESS [0.413s]
     49[INFO] udunits ........................................... SUCCESS [1.731s]
     50[INFO] NetCDF-Java Library ............................... SUCCESS [7.892s]
     51[INFO] BUFR IOSP ......................................... SUCCESS [2.338s]
     52[INFO] GRIB IOSP and Feature Collection .................. SUCCESS [4.176s]
     53[INFO] OPeNDAP ........................................... SUCCESS [1.208s]
     54[INFO] DAP Test Server (DTS) webapp ...................... SUCCESS [5.381s]
     55[INFO] VisAD-based IOSPs ................................. SUCCESS [10.800s]
     56[INFO] UI Module ......................................... SUCCESS [26.342s]
     57[INFO] THREDDS Data Server (TDS) ......................... SUCCESS [14.164s]
     58[INFO] THREDDS Data Manager (TDM) ........................ SUCCESS [5.220s]
     59[INFO] WMO tables webapp ................................. SUCCESS [5.628s]
     60[INFO] CDM validator webapp .............................. SUCCESS [16.842s]
     61[INFO] Test CDM (upc/share - Unidata only) ............... SUCCESS [1.050s]
     62[INFO] Test Integration .................................. SUCCESS [2.224s]
     63[INFO] ------------------------------------------------------------------------
     64[INFO] BUILD SUCCESS
     65[INFO] ------------------------------------------------------------------------
     66[INFO] Total time: 1:45.999s
     67[INFO] Finished at: Wed Dec 05 13:04:12 CET 2012
     68[INFO] Final Memory: 31M/448M
     69[INFO] ------------------------------------------------------------------------
     70}}}
     71
     72== How to integrate Maven in eclipse and import Thredds project ==
     73
     74=== Maven integration ===
     75First of all download m2eclipse plugin. Go to Help > Install > New software
     76
     77In work with you have to paste this url: http://download.eclipse.org/technology/m2e/releases
     78
     79Click on add and type the name (Maven it could be perfect)
     80
     81Check on Maven Integration for Eclipse and follow the steps
     82
     83Restart eclipse
     84
     85=== Import thredds project ===
     86Go to File > Import > Maven > Existing Maven Projects > Select thredds folder
     87
     88At this point you can select all the subprojects that you want because thredds includes a lot of subprojects such as tds, tdm, etc.
     89
     90Wait for building and validation
    4091
    4192
     
    4394Dirección subversion del proyecto de ejemplo:
    4495https://www.meteo.unican.es/svn/repos/documentos/trunk/software
    45 
    46 
    47 1- http://www.youtube.com/watch?v=X8lu7Oi23YQ (Creación de un proyecto sencillo)
    48 2- http://www.youtube.com/watch?v=H8QdjyCB8Nw (Añadir dependencias)