How to build war file in eclipse using maven


















But yes if you follow the WAR-directory layout and have a working webapplication inside that structure could be a single index. I tried the zip method and unfortunately that didn't work. However the stackoverflow. Voicu Voicu With all these options: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy Francesco Marchioni Francesco Marchioni 3, 19 19 silver badges 36 36 bronze badges.

Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually.

Visit chat. Linked Related Hot Network Questions. Hi there, sorry for my delay but I was offline for two days I tried again with this structure: -src -main. It gives me the following error Failed to execute maven. I have the webxml file. What attribute does it require?

I'm sorry. That didn't work because I gave you bad information. Which I got from the war plugin doc page. Well, I still can't manage to generate a war file. I want later to upload this WAR file to a Tomcat server and use my web services from there Can someone explain me what should I do, please.

If you have any questions you may ask me, too. Peter Johnson. These statements are conflicting, which one is true? If you want to deploy a generated WAR, you will need to use a Maven plugin to do that. Thanks for the support.

Tomorrow I will try these plugins and I hope it would work this time. I suppose that I don't need to install anything just to configure the pom file and maven will take care of the rest by itself.

Thank you a lot for all the explanations. R Dhaval R Dhaval 8 8 silver badges 20 20 bronze badges. The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. Linked Related Hot Network Questions.



0コメント

  • 1000 / 1000