jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Signup
Maven 2 & 3
  • Maven 2 & 3
  • MNG-5059

--also-make-phase

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Improvement Improvement
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 3.0.3
  • Fix Version/s: None
  • Component/s: Command Line
  • Labels:
    None
  • Complexity:
    Intermediate
  • Number of attachments :
    0

Description

Background: http://mail-archives.apache.org/mod_mbox/maven-dev/201104.mbox/%3Cincnbn$4kl$1@dough.gmane.org%3E

-also-make (with -projects) is useful, but suffers from the problem that dependent projects are always built to the same goal/phase as the selected project(s). That is fine for e.g. compile or install, but not for e.g. test where you would only want to build compile (or test-compile) for dependencies, not actually test them.

Suggest a variant form of this parameter (say -also-make-phase / -amp) which would accept a goal or phase to run on dependencies in place of the regular arguments. For example, to run a unit test after making sure all its dependencies have been (re)compiled:

mvn -amp test-compile -pl testedmod test -Dtest=OneTest

or to run an (unpacked) web application after (re-)compiling libraries it uses:

mvn -amp compile -pl webapp jetty:run

You might want to pass a goal rather than a phase, so the name could be misleading, but I think that would be a rarer use case. Ditto passing multiple goals/phases for the upstream projects.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Jason van Zyl made changes - 13/Nov/12 5:42 PM
Field Original Value New Value
Assignee Jason van Zyl [ jason ]

People

  • Assignee:
    Jason van Zyl
    Reporter:
    Jesse Glick
Vote (0)
Watch (2)

Dates

  • Created:
    06/Apr/11 10:14 AM
    Updated:
    19/Mar/13 9:36 AM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.