Changes between Version 4 and Version 5 of TutorialMaven
- Timestamp:
- Feb 7, 2013 12:52:16 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TutorialMaven
v4 v5 3 3 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. 4 4 5 == Setting up java envionment in our pc: ==5 == Setting up java envionment in your pc: == 6 6 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 {{{ 9 9 JDK: http://www.oracle.com/technetwork/java/javase/downloads/java-se-jdk-7-download-432154.html 10 10 MAVEN: http://apache.rediris.es/maven/maven-3/3.0.4/binaries/apache-maven-3.0.4-bin.zip 11 11 Eclipse Juno for Java EE Developers: http://www.eclipse.org/downloads/ 12 }}} 12 13 13 14 JDK is necessary to install and the others only unzip the folders where you prefer. 14 15 15 === 2- Configuration of Java Environtment variables in our system ===16 16 === 2- Configuration of Java Environtment variables in our system === 17 {{{ 17 18 PATH = C:\Program Files\Java\jdk1.7.0\bin (Necessary to exec javac command) 18 19 JAVA_HOME = C:\Program Files\Java\jdk1.7.0 20 }}} 19 21 20 === 3- Configuration of Apache Maven Environment variables ===21 22 === 3- Configuration of Apache Maven Environment variables === 23 {{{ 22 24 MAVEN_HOME = C:\Program Files\apache-maven-3.0.4 23 25 PATH = C:\Program Files\Java\jdk1.7.0\bin;%MAVEN_HOME%\bin; (Necessary to exec mvn command) 26 }}} 24 27 25 === 4- Check if your configuration is OK ===28 === 4- Check if your configuration is OK === 26 29 27 30 Go to Start menu => execute => type cmd 28 31 Type mvn-version and you should see something like this: 29 32 {{{ 30 33 Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100) 31 34 Maven home: C:\Program Files\apache-maven-3.0.4\bin\.. … … 34 37 Default locale: es_ES, platform encoding: Cp1252 35 38 OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows" 39 }}} 36 40 37 41 38 == How to download thredds project and include in Eclipse==42 == How to download thredds project and compile it with Maven == 39 43 44 Download thredds from here by clicking Zip button and unzip wherever you want: https://github.com/Unidata/thredds 45 46 Then 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 === 75 First of all download m2eclipse plugin. Go to Help > Install > New software 76 77 In work with you have to paste this url: http://download.eclipse.org/technology/m2e/releases 78 79 Click on add and type the name (Maven it could be perfect) 80 81 Check on Maven Integration for Eclipse and follow the steps 82 83 Restart eclipse 84 85 === Import thredds project === 86 Go to File > Import > Maven > Existing Maven Projects > Select thredds folder 87 88 At this point you can select all the subprojects that you want because thredds includes a lot of subprojects such as tds, tdm, etc. 89 90 Wait for building and validation 40 91 41 92 … … 43 94 Dirección subversion del proyecto de ejemplo: 44 95 https://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)