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

With multiple modules using the same plugin later invocations of the plugin are not initialized

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • None
    • All

    Description

      In Module A I have an invocation of the antrun plugin. In module B I have another invocation of antrun but this plugin has an additional dependency on ant-contrib. If I run mvn in the root of the project I get a taskdef not found error from ant because the additional dependency is not on the classpath for the invocation in module B.

      Embedded error: The following error occurred while executing this line:
      /data/workspaces/workspace/MoleTracker/uberjar/build.xml:20: Could not create task or type of type: foreach.

      If I run mvn -f moduleB/pom.xml it runs fine.

      workaround is to configure all plugin configurations the same but this seems a tad ham fisted.

      I assume this is a general fault for all plugins.

      Attachments

        Issue Links

          Activity

            People

              bentmann Benjamin Bentmann
              amartinwest Martin West
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: