run maven command
mvn -Dwtpversion=2.0 compile eclipse:eclipse
then refresh the project
Monday, February 6, 2012
force eclipse to recognize war maven projects
loading additional spring context files from web.xml
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:xml1.xml classpath:xml2.xml classpath:xml3.xml /WEB-INF/classes/xml4.xml, /WEB-INF/classes/xml5.xml, /WEB-INF/classes/xml6.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
Posted by
King Harbromm
at
1:42 PM
0
comments
Tags: snippet
Wednesday, September 14, 2011
download maven source and javadocs
dependency:sources
dependency:resolve -Dclassifier=javadoc
Posted by
King Harbromm
at
1:38 PM
0
comments
Friday, September 9, 2011
Could not find any host pages for GWT project
0. Make sure your webapps\*.html file registered the *.nocache.js and *.css
1. Disable your maven Dependency Management
2. Unchecked Google Web setting
3. Refresh you project
4. Now gain checked Google Web setting
5. Enable your maven Dependency Management again
Posted by
King Harbromm
at
12:40 PM
0
comments
Thursday, August 25, 2011
Adding GWT Maven Archetype
Add Archetype... and enter:
* Archetype Group Id: org.codehaus.mojo
* Archetype Artifact Id: gwt-maven-plugin
* Archetype Version: 2.1.0-1
* Repository URL: http://repo1.maven.org/maven2
Posted by
King Harbromm
at
6:14 PM
0
comments
Tuesday, January 4, 2011
Configure web.xml to load the servlet context from another location
<servlet>
<servlet-name>tatts</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet
</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/spring/tatts-servlet.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
Posted by
King Harbromm
at
11:11 AM
0
comments
Friday, August 22, 2008
linking pojo projects into a gwt project in eclipse
1. export the pojo project as a jar file. make sure the source code is included
2. import the jar file into the gwt project as an external jar
Posted by
King Harbromm
at
1:30 PM
0
comments