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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T23:26:59+00:00 2026-06-12T23:26:59+00:00

I am new to Java and Springsource tool suite. Currently, I am running the

  • 0

I am new to Java and Springsource tool suite.

Currently, I am running the following commands one after the other to deploy the project in tomcat.

  • mvn clean package
  • mvn tomcat:run

In SpringSource tool suite, I use Run as -> maven Build and first using the goal as clean package. Then I again use Run as -> maven Build with goal as tomcat:run.

Can these two command be done in a single execution?

I was told that Linux allows such a process as mvn clean package;mvn tomcat:run

Is there any way to replicate this in Windows?

Every time I try this in windows I get the message showing that the program has started a thread that cannot be stopped.

  • 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-06-12T23:27:00+00:00Added an answer on June 12, 2026 at 11:27 pm

    As said before, you can invoke a Maven command with several actions on the same line.
    Generally, you invoke Maven with some phases like in mvn clean install site.
    The phases belong to a lifecycle (Clean, Default or Site).

    You can also add some goals invocations in addition to the phases. They will be be executed in sequence.
    Like in mvn clean dependency:copy-dependencies package (Running Maven Tools).

    The execution time will be optimized if you execute all of your tasks in one command rather than with severals invocations.

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

Sidebar

Related Questions

When creating a new Java project in IntelliJ IDEA, the following directories and files
I am currently calling the following line of code: java.net.URL connection_url = new java.net.URL(http://<ip
While creating new Java project in Eclipse I got following warning The current workspace
I am using SpringSource Tool Suite Version: 2.3.3.CI-R5608-B54 Build Id: 201008210801 with Java 1.6.0.u21
I'm fairly new to the Spring framework. I have recently installed SpringSource Tool Suite
I am trying to setup a maven based project in SpringSource tool suite. I
When I start a new Java project in eclipse, the first popup screen allow
We are starting a new Java EE project and am looking for suggestions regarding
I am starting a new Java web project that will be worked on by
Eclipse and MyEclipse create new Java files with an extra blank line after the

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.