Add Maven to a Web Application Project

Asked

Viewed 574 times

2

Good morning, I am using a Web Application Project, to be able to use the Google App Engine. I wish I could download the . jar and its dependencies using Maven, someone knows how to add Maven to my Web Application Project?

  • https://cloud.google.com/appengine/docs/java/tools/maven

  • mvn archetype:generate -Dappengine-version=1.9.18 -Dapplication-id=accounts -Dfilter=com.google.appengine.archetypes:appengine-Skeleton-archetype. I tried to create the project as well, as the description says, gave build Success, but still gave the error: 'your filter doesn’t match any archetype'. How can I fix this? and where my project will be created, I did not find it.

  • I did the whole process until the 15, I was able to create the project. I only found a problem when I import the . War to the eclipse, and I try to deploy it, it says that my project is not a web app project. I did everything as you say there, and yet it didn’t work, which is missing?

1 answer

1

What you can do if you already have Maven installed and configured on your machine and the IDE is right-click on the project > Configure > Convert to Maven Project (see image). Or before that you would need to configure Maven on your machine, environment variables and your IDE if necessary, follow the following link: https://stackoverflow.com/questions/6156647/installing-maven.

If your IDE is Eclipse you can download to this IDE in the Eclipse Marketplace. Help > Eclipse Marketplace > Search for Maven > And install Maven Integration For Eclipse Luna, or named after the version of your IDE that may be Luna, Kepler, and more.

And after that it remains to configure the pom.xml that Maven generates according to the frameworks you need to use

inserir a descrição da imagem aqui

Browser other questions tagged

You are not signed in. Login or sign up in order to post.