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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:08:36+00:00 2026-05-23T17:08:36+00:00

I am using maven in a project here at work and I’ve come up

  • 0

I am using maven in a project here at work and I’ve come up to a rather strange (at least for me) problem. When I do an: mvn package everything seems ok but the output of mvn disappears as soon as maven completes. To test it more I just did a: mvn –help and I could not see the output. As soon as the command finishes the prompt is cleared. I am doing my work now using redirections: mvn package > out and then: type out in order to see the output. Any help would be greatly appreciated!

Thanx!

Solved: To whoever finds this useful. At the end of mvn.bat there was the line

    cmd /C exit /B %ERROR_CODE%

which I had to comment out like this:

    @REM cmd /C exit /B %ERROR_CODE%
  • 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-23T17:08:36+00:00Added an answer on May 23, 2026 at 5:08 pm

    Check if the MAVEN_TERMINATE_CMD is set to on. If it is unset it:

    set MAVEN_TERMINATE_CMD=
    

    Check that the mvn.bat script in maven’s bin directory doesn’t contain an exit command without the /b option. It should end with the following line:

    cmd /C exit /B %ERROR_CODE%
    

    If neither alternative solves your problem, set the MAVEN_BATCH_PAUSE variable to on:

    set MAVEN_BATCH_PAUSE=on
    

    before you run maven. This should cause mvn.bat to wait for a keystroke before exiting.

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

Sidebar

Related Questions

For a project at work, we're considering using the Maven plugin for Eclipse to
In my Khatami project I'm using maven to both manage compilation and package up
I am having problem building my project (using maven 2) which references some jars
I'm using Maven JPA(hibernate) and Spring3 in my project. I'm having a new problem
I've got a project using Maven 2 as the build tool. Now I am
Im using maven to build a multi module project. But some projects are in
I am using Maven in Eclipse to manage the project dependencies which are resolved
I am considering using Maven for a Java open source project I manage. In
I am using maven to generate a website for a Java project, which uses
I have this task for the project with 4 nested subprojects using Maven: For

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.