Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6983175
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:23:05+00:00 2026-05-27T18:23:05+00:00

I need to deploy a production version of a web application. So far, I’ve

  • 0

I need to deploy a production version of a web application. So far, I’ve been testing it with mvn jetty:run. I’ve used actual jetty installations before, but they seem only necessary when you want to serve multiple wars on the same web server. In some ways this is the most staightforward however (mvn package and copy it over).

My other options are to create a runnable jar (mvn assembly:single) that starts a server, but I need to tweak the configuration so that the static content src/main/webapp is served and the web.xml can be found.

I’ve also read about a “runnable war”. This might avoid the src/main/webapp problem since these files are already laid out in the warfile. I don’t know how to go about doing this, however.

I could also stick with mvn jetty:run, but this doesn’t seem like the best option because then the production deployment is tied to code instead of being a standalone jar.

Any opinions on the best way or pros and cons of these different approaches? Am I missing some options?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T18:23:05+00:00Added an answer on May 27, 2026 at 6:23 pm

    The jetty-console-maven-plugin from simplericity is simple to use and works great. When you run mvn package you get two wars–one that is executable. java -jar mywar.war --help gives usage, which allows a bit of configuration (port, etc.).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to deploy a web application on several laptops (although it is a
I have 6 servers that i need to deploy my ASP.NET web application to.
I need to deploy an application on the WAS ND 6.1 and do not
I need to deploy a Windows Forms application using ClickOnce deployment. (VS2008, .NET 3.5)
We have a web application (Metro web services on tomcat) and need to handle
I have need to deploy my app to production now that uses sunspot for
I have a repo that I need to use to deploy the production code
I want to run my new web application with forms authentication under the ASP.NET
I need to deploy a few files that were checked in sometime ago (can't
I need to deploy a few .net dlls. They need to be put in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.