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 6252457
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T13:48:16+00:00 2026-05-24T13:48:16+00:00

how would i get maven to deploy my app for me. i want to

  • 0

how would i get maven to deploy my app for me.

i want to be able to type

mvn deply:devserver (or something like that) and have it do the following things

SCP all dependency jars to the remote devserver/var/lib/tomcat6/shared/company folder

SCP the war file to the remote devserver/var/lib/tomcat6/webapps folder

and since i can already hear the statements/questions “why are you doing it like this, you can just build the war with dependencies in it” bla bla bla i will answer. this server is going to be running about 35 different war files (be gentle i inherited this project) all using the same dependencies so i don’t see the point of having the tomcat classloader loading the same 50 or so libraries 35 times. id rather have tomcat load them on startup and share them with the webapps.

and NO, manager is not installed on this instance of tomcat so please don’t go there. security guys wont let us install the management console on a publicly visible server so all the deployments must be via SCP file copies.

i could do this in about 5 minutes with ant and i havn’t eliminated the possibility of simply writing a shell script to do it but i would like to give maven a chance first.

  • 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-24T13:48:16+00:00Added an answer on May 24, 2026 at 1:48 pm

    You should script the ‘deploy’ of the code to the server. If you choose to use Ant, do it, but Maven is not the right tool for this job.

    The Maven ‘deploy’ goal is used to deploy built artifacts to a repository server for other projects to be able to download as dependencies. It is not the ‘deploy’ you are thinking of.

    If you really need this done by Maven though, there is a maven ant plugin which lets you run Ant tasks in Maven and you could bind this to your deploy step. I would advise against this though because it very much goes against the conventions of using Maven as a build tool.

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

Sidebar

Related Questions

I have a web app that I would like to split into three pieces.
Using maven, I would like to get the my project version within spring but
I would like to be able to check out my Android app project and
I would like to have Maven download the JARs listed in a pom.xml file.
Inside a maven project, I would like to use some classes that were already
i would get details from two MySQL tables tables structure as shown table:App |AppID|AppName|AppType|
How would get find an average from an array? If I have the array:
Just wanted to know if overriding UITabBarController would get my app rejected? Is it
I'm looking for a method or an event that would get fired when a
I'm trying to write a recursive function that would get some string, as well

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.