简体   繁体   中英

How to setup a Java Eclipse (Juno) dynamic web project with Maven for App Engine

I am using appengine + GWT in Eclipse and have working code but wanted to add Maven to control jar files. What is the current suggested way to setup such a project?

I have found a few possible options, but non work for me:

1) create "Dynamic Web Project" and setup directories to fit with Maven ... https://developers.google.com/eclipse/docs/faq#gwt_with_maven

2) Similar to 1, with more steps Java Dynamic Web project with Maven and Eclipse

3) use plugins m2e 1.3+ and m2e-wtp 0.16.0+ http://wiki.eclipse.org/M2E-WTP/New_and_Noteworthy/0.16#New_project_conversion_participants

I have tried creating projects from scratch and adding Maven to a working project, but non work. Maven looks to be working as every thing compiles ok, but the deploy fails. Look like the Jar files from Maven are not being deployed.

我认为Maven GWT插件可以帮到你!

You can do it by terminal:

mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false

and make it compatible with eclipse with:

mvn eclipse::eclipse

(last command you may do in the project folder)

(If command not works, make sure than you have Maven installed with: mvn -version )

After that open Eclipse import and u have maven's setup project ready... For change things you can use pow.xml file

Hope that helps you

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM