Maven Antrun Plugin
  1. Maven Antrun Plugin
  2. MANTRUN-106

Maven dependency bug can lead to very confusing failures

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 1.3
    • Fix Version/s: None
    • Labels:
      None

      Description

      The purpose of this report is to suggest an FAQ entry or other web content, as follows.

      Using the Maven Antrun Plugin in multiple projects in the Reactor

      In Maven 2.0.x, there is a significant bug that can lead to very perplexing failures with the antrun plugin. There are two conditions that you have to meet to get into this problem.

      1) You have to use the plugin in two projects that are loaded into the reactor via <modules/> .
      2) You have to require additional plugin dependencies on the plugin.

      In Maven 2.0.x, the dependencies of the first project into the reactor win, and all the others are entirely ignored.

      Concretely, if your first project uses the plugin with no special dependencies, and your second one tries to use ant-trax, the second antrun execution will fail, and complain that it can't find the classes in ant-trax.

      The only solution to this is to ensure that, in all of the places where you use the plugin, you list the same dependencies.

        Issue Links

          Activity

          Mark Thomas made changes -
          Workflow jira [ 12953748 ] Default workflow, editable Closed status [ 12990897 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 22:13:33 UTC 2015 [ 1428272013336 ]
          Mark Thomas made changes -
          Workflow jira [ 12716404 ] Default workflow, editable Closed status [ 12759844 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 09:04:27 UTC 2015 [ 1428224667361 ]
          Paul Gier made changes -
          Resolution Duplicate [ 3 ]
          Status Open [ 1 ] Closed [ 6 ]
          Assignee Paul Gier [ pgier ]
          Paul Gier made changes -
          Link This issue duplicates MANTRUN-51 [ MANTRUN-51 ]
          Benjamin Bentmann made changes -
          Field Original Value New Value
          Link This issue is related to MNG-1323 [ MNG-1323 ]
          Benson Margulies created issue -

            People

            • Assignee:
              Paul Gier
              Reporter:
              Benson Margulies
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development