Maven Remote Resources Plugin
  1. Maven Remote Resources Plugin

use of remote resources plugin breaks ability to use test-jar artifacts


    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: 1.5
    • Labels:


      I have a dead simple project configuration that breaks if I inherit from org.apache:apache . If I disable the remote resources plugin portion, it works.

      The plugin is trying to resolve a test-jar artifact during the compile phase, but such an artifact does not exist until the test-compile phase.

      To reproduce: unpack the project provided. run 'mvn clean compile'. that will fail. test-compile will work. If you install, then compile will work because it will find the test-jar in the local repo. You must not have any related snapshot artifacts in the local repo related to this project to reproduce.

      If you break the inheritance to the apache parent, it will work. Or, you can override the usage of the remote resources plugin and disable it to get the project to function.

      It seems to work if I assign the plugin to operate in a late phase – such as prepare-package. Perhaps all that is required is that the plugin operate in as late a phase as it can by default?
      If it must operate in compile however, it cannot look for dependencies that are not generated until test-compile such as test-jar types.

        4 kB
        Scott Carey


        Scott Carey created issue -
        Daniel Kulp made changes -
        Field Original Value New Value
        Assignee Daniel Kulp [ dkulp ]
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s 1.5 [ 18924 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 12:17:56 UTC 2015 [ 1428236276684 ]
        Mark Thomas made changes -
        Workflow jira [ 12724761 ] Default workflow, editable Closed status [ 12763947 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 00:55:18 UTC 2015 [ 1428281718795 ]
        Mark Thomas made changes -
        Workflow jira [ 12962444 ] Default workflow, editable Closed status [ 12998458 ]


          • Assignee:
            Daniel Kulp
            Scott Carey
          • Votes:
            3 Vote for this issue
            4 Start watching this issue


            • Created: