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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T13:54:35+00:00 2026-06-03T13:54:35+00:00

I have a long build with numerous steps, plugins and executions configured in roughly

  • 0

I have a long build with numerous steps, plugins and executions configured in roughly 30 poms belonging to a complex modularized project. As the build is taking too much (2h) I’d like to streamline it a bit, for which I’d like maven to list me all the steps it would go through without executing it. Something like:

$ mvn --dry-run clean
[INFO] Reactor Build Order:
[INFO] 
[INFO] Main project
[INFO] Module#1
[INFO] Module#2
[..]
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Main Project
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ main ---
[INFO] 
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Module#1
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ module1 ---
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0:01.020s
[INFO] Finished at: Thu Apr 26 09:56:14 CEST 2012
[INFO] Final Memory: 198M/379M
[INFO] ------------------------------------------------------------------------

Is there any way to have such information without me digging in a couple of megs of a log file?

  • 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-03T13:54:37+00:00Added an answer on June 3, 2026 at 1:54 pm

    As there’s apparently no OOTB way to do it, I ended up writing the plan-maven-plugin. It allows you to unroll the plan providing the goals parameter:

    mvn plan:plan -Dgoals=clean,javadoc:jar,sources:jar,package,gpg:sign,install
    

    or to execute it as part of the normal build:

    mvn plan:plan clean javadoc:jar sources:jar package gpg:sign install
    

    Sample output:

    $ mvn plan:plan clean javadoc:javadoc package install site:site
    [...]
    [INFO] --- plan-maven-plugin:1.1:plan (default-cli) @ plan-maven-plugin ---
    [INFO]
    [INFO] Current lifecycle:
    [INFO]     pre-clean
    [INFO]     clean
    [INFO]     post-clean
    [INFO]     validate
    [INFO]     initialize
    [INFO]     generate-sources
    [INFO]     process-sources
    [INFO]     generate-resources
    [INFO]     process-resources
    [INFO]     compile
    [INFO]     process-classes
    [INFO]     generate-test-sources
    [INFO]     process-test-sources
    [INFO]     generate-test-resources
    [INFO]     process-test-resources
    [INFO]     test-compile
    [INFO]     process-test-classes
    [INFO]     test
    [INFO]     prepare-package
    [INFO]     package
    [INFO]     pre-integration-test
    [INFO]     integration-test
    [INFO]     post-integration-test
    [INFO]     verify
    [INFO]     install
    [INFO]     deploy
    [INFO]
    [INFO] Execution plan:
    [INFO]     [-] tk.skuro:plan-maven-plugin:plan (default-cli)
    [INFO]     [clean] org.apache.maven.plugins:maven-clean-plugin:clean (default-clean)
    [INFO]     [-] org.apache.maven.plugins:maven-javadoc-plugin:javadoc (default-cli)
    [INFO]     [validate] org.apache.maven.plugins:maven-enforcer-plugin:enforce (enforce-maven)
    [INFO]     [generate-resources] org.apache.maven.plugins:maven-plugin-plugin:descriptor (default-descriptor)
    [INFO]     [process-resources] org.apache.maven.plugins:maven-resources-plugin:resources (default-resources)
    [INFO]     [compile] org.apache.maven.plugins:maven-compiler-plugin:compile (default-compile)
    [INFO]     [process-test-resources] org.apache.maven.plugins:maven-resources-plugin:testResources (default-testResources)
    [INFO]     [test-compile] org.apache.maven.plugins:maven-compiler-plugin:testCompile (default-testCompile)
    [INFO]     [test] org.apache.maven.plugins:maven-surefire-plugin:test (default-test)
    [INFO]     [package] org.apache.maven.plugins:maven-jar-plugin:jar (default-jar)
    [INFO]     [package] org.apache.maven.plugins:maven-plugin-plugin:addPluginArtifactMetadata (default-addPluginArtifactMetadata)
    [INFO]     [validate] org.apache.maven.plugins:maven-enforcer-plugin:enforce (enforce-maven)
    [INFO]     [generate-resources] org.apache.maven.plugins:maven-plugin-plugin:descriptor (default-descriptor)
    [INFO]     [process-resources] org.apache.maven.plugins:maven-resources-plugin:resources (default-resources)
    [INFO]     [compile] org.apache.maven.plugins:maven-compiler-plugin:compile (default-compile)
    [INFO]     [process-test-resources] org.apache.maven.plugins:maven-resources-plugin:testResources (default-testResources)
    [INFO]     [test-compile] org.apache.maven.plugins:maven-compiler-plugin:testCompile (default-testCompile)
    [INFO]     [test] org.apache.maven.plugins:maven-surefire-plugin:test (default-test)
    [INFO]     [package] org.apache.maven.plugins:maven-jar-plugin:jar (default-jar)
    [INFO]     [package] org.apache.maven.plugins:maven-plugin-plugin:addPluginArtifactMetadata (default-addPluginArtifactMetadata)
    [INFO]     [install] org.apache.maven.plugins:maven-install-plugin:install (default-install)
    [INFO]     [-] org.apache.maven.plugins:maven-site-plugin:site (default-cli)
    [INFO]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a fairly long and complex build automation script. From a configuration management
I have a long-time-to-build (setup) project in a Visual Studio 2010 Solution. It is
I have to build a C# program that makes CSV files and puts long
I have part of a build process that creates a hideously long paths in
I have been working on a project for a long time now and there
For my project, due to the long build and regression times, it is extremely
I have a long list of different names of universities. I'm trying to build
After thinking for long, I have decided to build my data app for the
I have had this doubt for a long time . I download a project
Say I have a batch file for carrying out a long build and at

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.