Changes between Version 5 and Version 6 of TutorialMaven
- Timestamp:
- Feb 13, 2013 11:12:01 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TutorialMaven
v5 v6 1 = Thredds development with eclipse =1 = Thredds development with Eclipse = 2 2 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 your pc: ==5 == How to configurate Java environment in your pc: == 6 6 7 === 1- Download JDK (Java Development Kit) latest release 1.7, Maven and eclipse ===7 === 1- Download JDK (Java Development Kit) latest release 1.7, Maven and Eclipse === 8 8 {{{ 9 9 JDK: http://www.oracle.com/technetwork/java/javase/downloads/java-se-jdk-7-download-432154.html … … 70 70 }}} 71 71 72 == How to integrate Maven in eclipse and import Thredds project ==72 == How to integrate Maven in Eclipse and import Thredds project == 73 73 74 74 === Maven integration === … … 81 81 Check on Maven Integration for Eclipse and follow the steps 82 82 83 Restart eclipse83 Restart Eclipse 84 84 85 85 === Import thredds project === 86 Go to File > Import > Maven > Existing Maven Projects > Select thredds folder86 Go to File > Import > Maven > Check out Maven Projects from SCM 87 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.88 To download thredds project from remote server, m2eclipse needs git SCM Connector. So click on m2e Marketplace and install git connector. You will see an installation wizard. After the installation finishes, select git from SCM URL, paste the following URL: https://github.com/Unidata/thredds.git and click on finish. 89 89 90 Wait for building and validation 90 A Checking out and Building process will be started. It could take several minutes so be patient. 91 92 == How to fix opendap bug == 93 94 Eclipse Project Explorer contains thredds-parent project and all its subprojects. Opendap subproject has a bug in some java classes caused by an old uri declaration on package sentence. 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. 95 96 == Configure and deploy TDS over Apache Tomcat 6 in Eclipse == 97 98 Now we will focus on TDS subproject. TDS is a web project that contains J2EE web project structure but Eclipse doesn't interpret it as a web project. It's neccesary to add web project facet. So right click on tds subproject > Properties >Project facets > Convert to faceted form... > Check Dynamic web module > Right click on Dynamic Web Module > Change version > 2.5 > Apply > OK 99 100 Delete WebContent empty structure. It was created by Dynamic web module facet. 101 102 == How to fix tds bugs == 103 104 1- newExamples.xml: add an space on line 118 col 44 105 2- UnidataDD2MI.xsl : change version 1.1 to 2.0 on line 2 col 26 106 3- wms folder needs taglib folder so you can copy it. 107 108 == Change Context root == 109 Project properties > Web Project Settings. Replace tds for thredds Apply and OK. 110 111 == Change Deployment Assembly == 112 1. Project properties > Deployment Assembly 113 Add.. > Folder > /src/main/webapp 114 115 2. Remove /WebContent source 116 117 3. Go to Java Build path > Order and Export and check on Maven Dependencies. Then click on add > Java Build Path Entries > Maven dependencies 118 119 4. Rebuild project 120 121 Now the project is prepared to deploy 91 122 92 123