== How to download Thredds project manually and compile it with Maven == Download Thredds from here by clicking Zip button and unzip wherever you want: ''https://github.com/Unidata/thredds'' 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: {{{ [INFO] Parent THREDDS and CDM modules .................... SUCCESS [0.413s] [INFO] udunits ........................................... SUCCESS [1.731s] [INFO] NetCDF-Java Library ............................... SUCCESS [7.892s] [INFO] BUFR IOSP ......................................... SUCCESS [2.338s] [INFO] GRIB IOSP and Feature Collection .................. SUCCESS [4.176s] [INFO] OPeNDAP ........................................... SUCCESS [1.208s] [INFO] DAP Test Server (DTS) webapp ...................... SUCCESS [5.381s] [INFO] VisAD-based IOSPs ................................. SUCCESS [10.800s] [INFO] UI Module ......................................... SUCCESS [26.342s] [INFO] THREDDS Data Server (TDS) ......................... SUCCESS [14.164s] [INFO] THREDDS Data Manager (TDM) ........................ SUCCESS [5.220s] [INFO] WMO tables webapp ................................. SUCCESS [5.628s] [INFO] CDM validator webapp .............................. SUCCESS [16.842s] [INFO] Test CDM (upc/share - Unidata only) ............... SUCCESS [1.050s] [INFO] Test Integration .................................. SUCCESS [2.224s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1:45.999s [INFO] Finished at: Wed Dec 05 13:04:12 CET 2012 [INFO] Final Memory: 31M/448M [INFO] ------------------------------------------------------------------------ }}} === How to import a Maven project into Eclipse === Go to '''File > Import > Maven > Existing Maven projects''' Build and validation process may take several minutes == How to import Thredds project automatically using git connector == Go to '''File > Import > Maven > Check out Maven Projects from SCM''' Note: Before downloading a git project properly you should follow some steps. Check it out EclipseIntegration/SubversionAndGit After finishing the installation, go to '''Import > Checkout Maven Project from SCM'''. On the dialog, select '''git''' in the SCM URL selector, paste the following URL: ''https://github.com/Unidata/thredds.git'' and click on finish. A Check out and Build process will be started. This process may take several minutes so be patient. After finishing the process, you will see some errors in opendap subproject. These errors appear because Thredds project aren't developed with Eclipse. The programmers moved some clases to new folders and forget to update the package sentences. To solve this problem, go to each class, click on error sentence and solve the problem by clicking '''Change package declaration to...'''. ''In GuiTest.java'' remove the two unused imports. == Prepare TDS to develop and deploy in Eclipse == Now we will focus on TDS subproject. TDS is a web project that contains J2EE web project structure but Eclipse doesn't interpret as a web project. It is neccesary to add web project facet. So right click on '''tds subproject > Properties >Project facets > Convert to faceted form... > Check Dynamic web module''' and right click on '''Dynamic Web Module > Change version > 2.5 > Apply > OK ''' Delete WebContent empty folder structure because it was created by default. New errors will be shown: 1- ''newExamples.xml'': add an space on line 118 col 44 2- ''UnidataDD2MI.xsl'' : change version 1.1 to 2.0 on line 2 col 26 3- wms folder needs taglib folder so you can copy it. === Change context root === Right click on '''Project properties > Web Project Settings'''. Replace tds for thredds Apply and OK. === Change development assembly to deploy the project properly=== 1. Right click on Project '''properties > Deployment Assembly''' and click on '''Add.. > Folder > /src/main/webapp''' 1. Remove /WebContent source 1. Go to '''Java Build path > Order and Export and check on Maven Dependencies'''. Then click on '''add > Java Build Path Entries > Maven dependencies''' 1. Rebuild project == Deploy TDS over Apache Tomcat 6 in Eclipse == To run ''tds'' web app in Eclipse is necessary to create a new server. You can install whatever you want but in our case will be ''Tomcat 6''. Download tomcat from http://tomcat.apache.org/download-60.cgi and unzip it in your system. Go to '''Servers tab''' (See EclipseDevelopment, Eclipse interface, element 6), select '''Apache and Tomcat v6.0'''. Click on '''Browse''' and select your Tomcat folder. In the next step we have ''tds'' available because it has a web facet. Select ''tds'', click on '''Add''' and '''finish'''. Now you are ready for launch the web app == Adding ESGF Security to TDS == In order to make secure the access to the different resources of Thredds Catalog, it is possible to add ESGF-Security to TDS and login with an openid credential. See the instructions [[ESGF-Security]]