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

  • Home
  • SEARCH
  • 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 903731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T15:56:03+00:00 2026-05-15T15:56:03+00:00

I want to specify the expression to evaluate on the command line, so the

  • 0

I want to specify the expression to evaluate on the command line, so the plugin does not go into interactive mode.

According to the docs, the expression parameter should do the trick.

I tried:

mvn help:evaluate -Dexpression=project.groupId

and

mvn help:evaluate -Dexpression=xxx

but the expression is ignored, and the plugin enters interactive mode, as undesired.

Curiously, the following works just fine:

mvn help:describe -Dplugin=help

(“Curiously” because it is the same plugin, and I’m following the same convention for specifying parameters, but one time it works, and the other time it does not.)

  • 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-15T15:56:03+00:00Added an answer on May 15, 2026 at 3:56 pm

    The version 2.1 of the plugin does not support batch mode as reported in MPH-71:

    The help:evaluate goal is designed to
    be called in interactive mode. I would
    like to call this goal in batch mode,
    passing the expression to evaluate in
    a property (on the command line).

    But the issue is fixed and the feature is available in the version 2.1.1 of the plugin:

    $ mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version
    [INFO] Scanning for projects...
    [INFO] ------------------------------------------------------------------------
    [INFO] Building Demo - Child
    [INFO]    task-segment: [org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate] (aggregator-style)
    [INFO] ------------------------------------------------------------------------
    [INFO] [help:evaluate {execution: default-cli}]
    [INFO] No artifact parameter specified, using 'my.group.id:child:jar:1.0-SNAPSHOT' as project.
    [INFO] 
    1.0-SNAPSHOT
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD SUCCESSFUL
    [INFO] ------------------------------------------------------------------------
    ...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to let users specify a date that may or may not include
Can I add a column which is I specify as NOT NULL,I don't want
I want to specify a file system path as part of a Spring bean
I want to specify an argument in an attribute, like this: [OutputCache(Duration = GlobalSettings.GlobalVar)]
I have a base class in which I want to specify the methods a
I am writing a DLL with mixed C/C++ code. I want to specify the
I want to be able to specify the file name stem for the log
I want to specify that my output rule should only apply to the contents
I want to specify that for horizontal content it should be overflow:hidden but for
Per the Google Page Speed recommendations, I want to Specify image dimensions to Optimize

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.