You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "jieryn (JIRA)" <ji...@codehaus.org> on 2009/03/18 02:48:12 UTC
[jira] Created: (MNG-4094) embedded error with
maven-remote-resources-plugin; maven build order?
embedded error with maven-remote-resources-plugin; maven build order?
---------------------------------------------------------------------
Key: MNG-4094
URL: http://jira.codehaus.org/browse/MNG-4094
Project: Maven 2
Issue Type: Bug
Components: General
Affects Versions: 2.0.10
Environment: [INFO] [enforcer:display-info {execution: default}]
[INFO] Maven Version: 2.0.10
[INFO] JDK Version: 1.5.0_16 normalized as: 1.5.0-16
[INFO] OS Info: Arch: i386 Family: unix Name: linux Version: 2.6.28.8
Reporter: jieryn
Attachments: testing.zip
I am attaching a sample project which exhibits the error. Please run mvn -f pom-firstTime.xml to prime your .m2/repository so that the real pom.xml's <build> finds the artifacts properly. Now, run mvn (default goal install is coded) and notice the Embedded error. I scan the previously created JARs in my .m2/repository and the maven-remote-resources-plugin files are definitely in the JAR.....
I am at a loss, not convinced this is a bug, but need better minds to examine this. Thank you!
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MRRESOURCES-37) embedded error with
maven-remote-resources-plugin; maven build order?
Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MRRESOURCES-37?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=188984#action_188984 ]
John Casey commented on MRRESOURCES-37:
---------------------------------------
interesting comment here:
http://www.mail-archive.com/jboss-dev@list.working-dogs.com/msg06762.html
This fits what's going on in this test project...the shared-resource zip archive is being replaced during the build. Notice that only in one of the later projects is the exception being thrown, which I think means it's happening after the archive is replaced under the existing classloader...
> embedded error with maven-remote-resources-plugin; maven build order?
> ---------------------------------------------------------------------
>
> Key: MRRESOURCES-37
> URL: http://jira.codehaus.org/browse/MRRESOURCES-37
> Project: Maven 2.x Remote Resources Plugin
> Issue Type: Bug
> Affects Versions: 1.0
> Environment: [INFO] [enforcer:display-info {execution: default}]
> [INFO] Maven Version: 2.0.10
> [INFO] JDK Version: 1.5.0_16 normalized as: 1.5.0-16
> [INFO] OS Info: Arch: i386 Family: unix Name: linux Version: 2.6.28.8
> Reporter: jieryn
> Assignee: John Casey
> Fix For: 1.1
>
> Attachments: MNG-4094.zip, testing.zip
>
>
> I am attaching a sample project which exhibits the error. Please run mvn -f pom-firstTime.xml to prime your .m2/repository so that the real pom.xml's <build> finds the artifacts properly. Now, run mvn (default goal install is coded) and notice the Embedded error. I scan the previously created JARs in my .m2/repository and the maven-remote-resources-plugin files are definitely in the JAR.....
> I am at a loss, not convinced this is a bug, but need better minds to examine this. Thank you!
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (MNG-4094) embedded error with
maven-remote-resources-plugin; maven build order?
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-4094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brett Porter updated MNG-4094:
------------------------------
Attachment: MNG-4094.zip
here is a structure that works around it
> embedded error with maven-remote-resources-plugin; maven build order?
> ---------------------------------------------------------------------
>
> Key: MNG-4094
> URL: http://jira.codehaus.org/browse/MNG-4094
> Project: Maven 2
> Issue Type: Bug
> Affects Versions: 1.0
> Environment: [INFO] [enforcer:display-info {execution: default}]
> [INFO] Maven Version: 2.0.10
> [INFO] JDK Version: 1.5.0_16 normalized as: 1.5.0-16
> [INFO] OS Info: Arch: i386 Family: unix Name: linux Version: 2.6.28.8
> Reporter: jieryn
> Attachments: MNG-4094.zip, testing.zip
>
>
> I am attaching a sample project which exhibits the error. Please run mvn -f pom-firstTime.xml to prime your .m2/repository so that the real pom.xml's <build> finds the artifacts properly. Now, run mvn (default goal install is coded) and notice the Embedded error. I scan the previously created JARs in my .m2/repository and the maven-remote-resources-plugin files are definitely in the JAR.....
> I am at a loss, not convinced this is a bug, but need better minds to examine this. Thank you!
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Closed: (MRRESOURCES-37) embedded error with
maven-remote-resources-plugin; maven build order?
Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MRRESOURCES-37?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Casey closed MRRESOURCES-37.
---------------------------------
Resolution: Won't Fix
I've verified that the file in question is changing during the build, which is throwing off the cached URLConnection data (apparently this is what's happening; it matches the link I posted to a tee).
I'm not aware of any way we could compensate for something like this happening down deep in the com.sun.** classes, and I've tried a few things, without any luck. My advice would be to adopt something closer to the project layout Brett described above.
> embedded error with maven-remote-resources-plugin; maven build order?
> ---------------------------------------------------------------------
>
> Key: MRRESOURCES-37
> URL: http://jira.codehaus.org/browse/MRRESOURCES-37
> Project: Maven 2.x Remote Resources Plugin
> Issue Type: Bug
> Affects Versions: 1.0
> Environment: [INFO] [enforcer:display-info {execution: default}]
> [INFO] Maven Version: 2.0.10
> [INFO] JDK Version: 1.5.0_16 normalized as: 1.5.0-16
> [INFO] OS Info: Arch: i386 Family: unix Name: linux Version: 2.6.28.8
> Reporter: jieryn
> Assignee: John Casey
> Fix For: 1.1
>
> Attachments: MNG-4094.zip, testing.zip
>
>
> I am attaching a sample project which exhibits the error. Please run mvn -f pom-firstTime.xml to prime your .m2/repository so that the real pom.xml's <build> finds the artifacts properly. Now, run mvn (default goal install is coded) and notice the Embedded error. I scan the previously created JARs in my .m2/repository and the maven-remote-resources-plugin files are definitely in the JAR.....
> I am at a loss, not convinced this is a bug, but need better minds to examine this. Thank you!
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Closed: (MRRESOURCES-37) embedded error with
maven-remote-resources-plugin; maven build order?
Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MRRESOURCES-37?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Casey closed MRRESOURCES-37.
---------------------------------
Assignee: John Casey
Resolution: Fixed
When adding the following to the pluginManagement sections in both POMs, I cannot reproduce the problem:
{code:xml}
<plugin>
<artifactId>maven-remote-resources-plugin</artifactId>
<version>1.1-SNAPSHOT</version>
</plugin>
{code}
Actually, even if I add this section below to the top-level POMs (as above), I still cannot reproduce the problem.
If I remove the directory completely and remove all com/acme/** from the local repository, then unarchive the testing.zip file again, only then can I reproduce the problem.
I'm not sure what to do with this, but it seems plain to me that this is working if you specify 1.1-SNAPSHOT for the version of the remote-resources plugin (the version we're working on now).
> embedded error with maven-remote-resources-plugin; maven build order?
> ---------------------------------------------------------------------
>
> Key: MRRESOURCES-37
> URL: http://jira.codehaus.org/browse/MRRESOURCES-37
> Project: Maven 2.x Remote Resources Plugin
> Issue Type: Bug
> Affects Versions: 1.0
> Environment: [INFO] [enforcer:display-info {execution: default}]
> [INFO] Maven Version: 2.0.10
> [INFO] JDK Version: 1.5.0_16 normalized as: 1.5.0-16
> [INFO] OS Info: Arch: i386 Family: unix Name: linux Version: 2.6.28.8
> Reporter: jieryn
> Assignee: John Casey
> Fix For: 1.1
>
> Attachments: MNG-4094.zip, testing.zip
>
>
> I am attaching a sample project which exhibits the error. Please run mvn -f pom-firstTime.xml to prime your .m2/repository so that the real pom.xml's <build> finds the artifacts properly. Now, run mvn (default goal install is coded) and notice the Embedded error. I scan the previously created JARs in my .m2/repository and the maven-remote-resources-plugin files are definitely in the JAR.....
> I am at a loss, not convinced this is a bug, but need better minds to examine this. Thank you!
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Moved: (MRRESOURCES-37) embedded error with
maven-remote-resources-plugin; maven build order?
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MRRESOURCES-37?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brett Porter moved MNG-4094 to MRRESOURCES-37:
----------------------------------------------
Affects Version/s: (was: 2.0.10)
1.0
Component/s: (was: General)
Complexity: (was: Intermediate)
Key: MRRESOURCES-37 (was: MNG-4094)
Project: Maven 2.x Remote Resources Plugin (was: Maven 2)
> embedded error with maven-remote-resources-plugin; maven build order?
> ---------------------------------------------------------------------
>
> Key: MRRESOURCES-37
> URL: http://jira.codehaus.org/browse/MRRESOURCES-37
> Project: Maven 2.x Remote Resources Plugin
> Issue Type: Bug
> Affects Versions: 1.0
> Environment: [INFO] [enforcer:display-info {execution: default}]
> [INFO] Maven Version: 2.0.10
> [INFO] JDK Version: 1.5.0_16 normalized as: 1.5.0-16
> [INFO] OS Info: Arch: i386 Family: unix Name: linux Version: 2.6.28.8
> Reporter: jieryn
> Attachments: MNG-4094.zip, testing.zip
>
>
> I am attaching a sample project which exhibits the error. Please run mvn -f pom-firstTime.xml to prime your .m2/repository so that the real pom.xml's <build> finds the artifacts properly. Now, run mvn (default goal install is coded) and notice the Embedded error. I scan the previously created JARs in my .m2/repository and the maven-remote-resources-plugin files are definitely in the JAR.....
> I am at a loss, not convinced this is a bug, but need better minds to examine this. Thank you!
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MRRESOURCES-37) embedded error with
maven-remote-resources-plugin; maven build order?
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MRRESOURCES-37?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=170064#action_170064 ]
Brett Porter commented on MRRESOURCES-37:
-----------------------------------------
while the initial project structure is a little unconventional, there is something awry in the way the resources plugin is processing artifacts since it claims not to find a JAR entry in a JAR given by path, but the file clearly exists. This may just be bad error reporting, or a bug in the code.
> embedded error with maven-remote-resources-plugin; maven build order?
> ---------------------------------------------------------------------
>
> Key: MRRESOURCES-37
> URL: http://jira.codehaus.org/browse/MRRESOURCES-37
> Project: Maven 2.x Remote Resources Plugin
> Issue Type: Bug
> Affects Versions: 1.0
> Environment: [INFO] [enforcer:display-info {execution: default}]
> [INFO] Maven Version: 2.0.10
> [INFO] JDK Version: 1.5.0_16 normalized as: 1.5.0-16
> [INFO] OS Info: Arch: i386 Family: unix Name: linux Version: 2.6.28.8
> Reporter: jieryn
> Attachments: MNG-4094.zip, testing.zip
>
>
> I am attaching a sample project which exhibits the error. Please run mvn -f pom-firstTime.xml to prime your .m2/repository so that the real pom.xml's <build> finds the artifacts properly. Now, run mvn (default goal install is coded) and notice the Embedded error. I scan the previously created JARs in my .m2/repository and the maven-remote-resources-plugin files are definitely in the JAR.....
> I am at a loss, not convinced this is a bug, but need better minds to examine this. Thank you!
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Issue Comment Edited: (MRRESOURCES-37) embedded error with
maven-remote-resources-plugin; maven build order?
Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MRRESOURCES-37?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=188978#action_188978 ]
John Casey edited comment on MRRESOURCES-37 at 8/28/09 4:28 PM:
----------------------------------------------------------------
When adding the following to the pluginManagement sections in both POMs, I cannot reproduce the problem:
{code:xml}
<plugin>
<artifactId>maven-remote-resources-plugin</artifactId>
<version>1.1-SNAPSHOT</version>
</plugin>
{code}
Actually, even if I add this section below to the top-level POMs (as above), I still cannot reproduce the problem:
{code:xml}
<plugin>
<artifactId>maven-remote-resources-plugin</artifactId>
<version>1.0</version>
</plugin>
{code}
If I remove the directory completely and remove all com/acme/** from the local repository, then unarchive the testing.zip file again, only then can I reproduce the problem.
I'm not sure what to do with this, but it seems plain to me that this is working if you specify 1.1-SNAPSHOT for the version of the remote-resources plugin (the version we're working on now).
was (Author: jdcasey):
When adding the following to the pluginManagement sections in both POMs, I cannot reproduce the problem:
{code:xml}
<plugin>
<artifactId>maven-remote-resources-plugin</artifactId>
<version>1.1-SNAPSHOT</version>
</plugin>
{code}
Actually, even if I add this section below to the top-level POMs (as above), I still cannot reproduce the problem.
If I remove the directory completely and remove all com/acme/** from the local repository, then unarchive the testing.zip file again, only then can I reproduce the problem.
I'm not sure what to do with this, but it seems plain to me that this is working if you specify 1.1-SNAPSHOT for the version of the remote-resources plugin (the version we're working on now).
> embedded error with maven-remote-resources-plugin; maven build order?
> ---------------------------------------------------------------------
>
> Key: MRRESOURCES-37
> URL: http://jira.codehaus.org/browse/MRRESOURCES-37
> Project: Maven 2.x Remote Resources Plugin
> Issue Type: Bug
> Affects Versions: 1.0
> Environment: [INFO] [enforcer:display-info {execution: default}]
> [INFO] Maven Version: 2.0.10
> [INFO] JDK Version: 1.5.0_16 normalized as: 1.5.0-16
> [INFO] OS Info: Arch: i386 Family: unix Name: linux Version: 2.6.28.8
> Reporter: jieryn
> Assignee: John Casey
> Fix For: 1.1
>
> Attachments: MNG-4094.zip, testing.zip
>
>
> I am attaching a sample project which exhibits the error. Please run mvn -f pom-firstTime.xml to prime your .m2/repository so that the real pom.xml's <build> finds the artifacts properly. Now, run mvn (default goal install is coded) and notice the Embedded error. I scan the previously created JARs in my .m2/repository and the maven-remote-resources-plugin files are definitely in the JAR.....
> I am at a loss, not convinced this is a bug, but need better minds to examine this. Thank you!
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Reopened: (MRRESOURCES-37) embedded error with
maven-remote-resources-plugin; maven build order?
Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MRRESOURCES-37?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Casey reopened MRRESOURCES-37:
-----------------------------------
Okay, I reproduced the problem with 1.1-SNAPSHOT...but ONLY under very special circumstances:
1. remove testing/**
2. remove ~/.m2/repository/com/acme/**
3. open testing.zip
4. cd testing
5. mvn -f pom-firstTime.xml install
6. mvn install
It seems that no matter whether I use the default configuration or supply a concrete version (1.0 or 1.1-SNAPSHOT), step 6 fails. If I start with the vanilla project zipfile, run up through step 5 with that, try step 6 and get an error, then update pom.xml to use the 1.1-SNAPSHOT version and re-run step 6, it works and continues to work until start over with step 1 again.
Very strange. I'm going to see what I can find out, now that I have a way to reproduce/reset this build if needed.
> embedded error with maven-remote-resources-plugin; maven build order?
> ---------------------------------------------------------------------
>
> Key: MRRESOURCES-37
> URL: http://jira.codehaus.org/browse/MRRESOURCES-37
> Project: Maven 2.x Remote Resources Plugin
> Issue Type: Bug
> Affects Versions: 1.0
> Environment: [INFO] [enforcer:display-info {execution: default}]
> [INFO] Maven Version: 2.0.10
> [INFO] JDK Version: 1.5.0_16 normalized as: 1.5.0-16
> [INFO] OS Info: Arch: i386 Family: unix Name: linux Version: 2.6.28.8
> Reporter: jieryn
> Assignee: John Casey
> Fix For: 1.1
>
> Attachments: MNG-4094.zip, testing.zip
>
>
> I am attaching a sample project which exhibits the error. Please run mvn -f pom-firstTime.xml to prime your .m2/repository so that the real pom.xml's <build> finds the artifacts properly. Now, run mvn (default goal install is coded) and notice the Embedded error. I scan the previously created JARs in my .m2/repository and the maven-remote-resources-plugin files are definitely in the JAR.....
> I am at a loss, not convinced this is a bug, but need better minds to examine this. Thank you!
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira