[ 
https://jira.codehaus.org/browse/MRRESOURCES-53?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=287974#comment-287974
 ] 

Scott Carey commented on MRRESOURCES-53:
----------------------------------------

In the base pom.xml:

{quote}
<!-- if this override is set, the project builds, if it is
         commented out, it fails. -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-remote-resources-plugin</artifactId>
        <version>1.1</version>
        <executions>
          <execution>
            <phase>none</phase>
            <goals>
              <goal>process</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
{quote}

It works 'out of the box' because that section is not commented out.  I just 
tested it and it works in maven 3.0.1, 3.0.2, and 3.0.3.

It does NOT work if you comment out that version override and inherit it all 
from the parent.  It breaks with maven 3.0.1, 3.0.2, and 3.0.3.

There is still a bug, though I have not tried updating all the version 
references to the latest.

'mvn versions:display-plugin-updates' prints out:
[INFO] The following plugin updates are available:
[INFO]   maven-jar-plugin ..................................... 2.3.1 -> 2.3.2
[INFO]   maven-remote-resources-plugin .......................... 1.1 -> 1.2.1
[INFO]   maven-resources-plugin ................................. 2.4.3 -> 2.5

and the apache parent has been revved from version 8 to 10.



                
> use of remote resources plugin breaks ability to use test-jar artifacts
> -----------------------------------------------------------------------
>
>                 Key: MRRESOURCES-53
>                 URL: https://jira.codehaus.org/browse/MRRESOURCES-53
>             Project: Maven 2.x Remote Resources Plugin
>          Issue Type: Bug
>    Affects Versions: 1.1
>            Reporter: Scott Carey
>            Priority: Critical
>         Attachments: project.zip
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to