Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-7036

Avoid non-compile goals (e.g., test) for --also-make introduced modules

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      It is a common practice to execute goals for a single module, e.g., mvn -pl son verify. Though if there exists a dependency to another module, one needs to provide the extra -am (--also-make) flag, which repeats the requested goal for the dependency modules too. This is not a desirable behavior in many circumstances. For instance, consider: mvn -am -pl son verify. Here it is highly likely that the user only wants to verify son, not its dependencies.

      I would really appreciate an extra configuration property to avoid executing non-compile goals on dependencies introduced by --also-make.

      Attachments

        Activity

          People

            Unassigned Unassigned
            vy Volkan Yazici
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: