You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Herve Boutemy (JIRA)" <ji...@codehaus.org> on 2007/07/12 20:55:13 UTC

[jira] Created: (MANTTASKS-78) unable to download parent pom when it is a SNAPSHOT and multiple remoteRepositories are used

unable to download parent pom when it is a SNAPSHOT and multiple remoteRepositories are used
--------------------------------------------------------------------------------------------

                 Key: MANTTASKS-78
                 URL: http://jira.codehaus.org/browse/MANTTASKS-78
             Project: Maven 2.x Ant Tasks
          Issue Type: Bug
          Components: POM Integration
    Affects Versions: 2.0.7
            Reporter: Herve Boutemy


the conditions for this problem are very precise:
    <artifact:pom file="${user.dir}/src/test/pom-with-parent-SNAPSHOT.xml" id="my.maven.project.SNAPSHOT">
      <localRepository path="target/tmp"/>
      <remoteRepository url="file://${user.dir}/src/test/repo"/>
      <remoteRepository url="file://${user.dir}/target/tmp/fake"/>
    </artifact:pom>

but if the second remoteRepository is removed, or even the 2 repositories switched, there is no problem...

-- 
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: (MANTTASKS-78) unable to download a dependency when it is a SNAPSHOT and multiple remoteRepositories are used

Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MANTTASKS-78?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Herve Boutemy closed MANTTASKS-78.
----------------------------------

    Resolution: Fixed

> unable to download a dependency when it is a SNAPSHOT and multiple remoteRepositories are used
> ----------------------------------------------------------------------------------------------
>
>                 Key: MANTTASKS-78
>                 URL: http://jira.codehaus.org/browse/MANTTASKS-78
>             Project: Maven 2.x Ant Tasks
>          Issue Type: Bug
>          Components: dependencies task, POM Integration
>    Affects Versions: 2.0.7
>            Reporter: Herve Boutemy
>            Assignee: Herve Boutemy
>             Fix For: 2.0.8
>
>         Attachments: MANTTASKS-78.diff
>
>   Original Estimate: 0 minutes
>  Remaining Estimate: 0 minutes
>
> the conditions for this problem are very precise:<artifact:pom file="${user.dir}/src/test/pom-with-parent-SNAPSHOT.xml" id="my.maven.project.SNAPSHOT">  <localRepository path="target/tmp"/>  <remoteRepository url="file://${user.dir}/src/test/repo"/>  <remoteRepository url="file://${user.dir}/target/tmp/fake"/></artifact:pom>
> but if the second remoteRepository is removed, or even the 2 repositories switched, there is no problem...

-- 
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: (MANTTASKS-78) unable to download parent pom when it is a SNAPSHOT and multiple remoteRepositories are used

Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MANTTASKS-78?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Herve Boutemy updated MANTTASKS-78:
-----------------------------------

    Attachment: MANTTASKS-78.diff

> unable to download parent pom when it is a SNAPSHOT and multiple remoteRepositories are used
> --------------------------------------------------------------------------------------------
>
>                 Key: MANTTASKS-78
>                 URL: http://jira.codehaus.org/browse/MANTTASKS-78
>             Project: Maven 2.x Ant Tasks
>          Issue Type: Bug
>          Components: POM Integration
>    Affects Versions: 2.0.7
>            Reporter: Herve Boutemy
>         Attachments: MANTTASKS-78.diff
>
>
> the conditions for this problem are very precise:
>     <artifact:pom file="${user.dir}/src/test/pom-with-parent-SNAPSHOT.xml" id="my.maven.project.SNAPSHOT">
>       <localRepository path="target/tmp"/>
>       <remoteRepository url="file://${user.dir}/src/test/repo"/>
>       <remoteRepository url="file://${user.dir}/target/tmp/fake"/>
>     </artifact:pom>
> but if the second remoteRepository is removed, or even the 2 repositories switched, there is no problem...

-- 
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: (MANTTASKS-78) unable to download a dependency when it is a SNAPSHOT and multiple remoteRepositories are used

Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MANTTASKS-78?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Herve Boutemy updated MANTTASKS-78:
-----------------------------------

    Attachment:     (was: MANTTASKS-78.diff)

> unable to download a dependency when it is a SNAPSHOT and multiple remoteRepositories are used
> ----------------------------------------------------------------------------------------------
>
>                 Key: MANTTASKS-78
>                 URL: http://jira.codehaus.org/browse/MANTTASKS-78
>             Project: Maven 2.x Ant Tasks
>          Issue Type: Bug
>          Components: dependencies task, POM Integration
>    Affects Versions: 2.0.7
>            Reporter: Herve Boutemy
>             Fix For: 2.0.8
>
>         Attachments: MANTTASKS-78.diff
>
>
> the conditions for this problem are very precise:
> {code:xml}
> <artifact:pom file="${user.dir}/src/test/pom-with-parent-SNAPSHOT.xml" id="my.maven.project.SNAPSHOT">
>   <localRepository path="target/tmp"/>
>   <remoteRepository url="file://${user.dir}/src/test/repo"/>
>   <remoteRepository url="file://${user.dir}/target/tmp/fake"/>
> </artifact:pom>
> {code}
> but if the second remoteRepository is removed, or even the 2 repositories switched, there is no problem...

-- 
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: (MANTTASKS-78) unable to download a dependency when it is a SNAPSHOT and multiple remoteRepositories are used

Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MANTTASKS-78?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Herve Boutemy updated MANTTASKS-78:
-----------------------------------

              Assignee: Herve Boutemy
           Description: 
the conditions for this problem are very precise:<artifact:pom file="${user.dir}/src/test/pom-with-parent-SNAPSHOT.xml" id="my.maven.project.SNAPSHOT">  <localRepository path="target/tmp"/>  <remoteRepository url="file://${user.dir}/src/test/repo"/>  <remoteRepository url="file://${user.dir}/target/tmp/fake"/></artifact:pom>
but if the second remoteRepository is removed, or even the 2 repositories switched, there is no problem...

  was:
the conditions for this problem are very precise:
{code:xml}
<artifact:pom file="${user.dir}/src/test/pom-with-parent-SNAPSHOT.xml" id="my.maven.project.SNAPSHOT">
  <localRepository path="target/tmp"/>
  <remoteRepository url="file://${user.dir}/src/test/repo"/>
  <remoteRepository url="file://${user.dir}/target/tmp/fake"/>
</artifact:pom>
{code}

but if the second remoteRepository is removed, or even the 2 repositories switched, there is no problem...

    Remaining Estimate: 0 minutes
     Original Estimate: 0 minutes

> unable to download a dependency when it is a SNAPSHOT and multiple remoteRepositories are used
> ----------------------------------------------------------------------------------------------
>
>                 Key: MANTTASKS-78
>                 URL: http://jira.codehaus.org/browse/MANTTASKS-78
>             Project: Maven 2.x Ant Tasks
>          Issue Type: Bug
>          Components: dependencies task, POM Integration
>    Affects Versions: 2.0.7
>            Reporter: Herve Boutemy
>            Assignee: Herve Boutemy
>             Fix For: 2.0.8
>
>         Attachments: MANTTASKS-78.diff
>
>   Original Estimate: 0 minutes
>  Remaining Estimate: 0 minutes
>
> the conditions for this problem are very precise:<artifact:pom file="${user.dir}/src/test/pom-with-parent-SNAPSHOT.xml" id="my.maven.project.SNAPSHOT">  <localRepository path="target/tmp"/>  <remoteRepository url="file://${user.dir}/src/test/repo"/>  <remoteRepository url="file://${user.dir}/target/tmp/fake"/></artifact:pom>
> but if the second remoteRepository is removed, or even the 2 repositories switched, there is no problem...

-- 
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: (MANTTASKS-78) unable to download a dependency when it is a SNAPSHOT and multiple remoteRepositories are used

Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MANTTASKS-78?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Herve Boutemy updated MANTTASKS-78:
-----------------------------------

    Attachment: MANTTASKS-78.diff

Found and fixed the problem

When no id is specified on a repository declaration, a default id is used.
It was hardcoded as "remote" (even for local repo).
Then if there was 2 remoteRepository declarations, they had the same id even if they were for different urls...

With this patch, the default id for local repo is "local", and the url for a remote repo: we can't have the same id when 2 repos are different

> unable to download a dependency when it is a SNAPSHOT and multiple remoteRepositories are used
> ----------------------------------------------------------------------------------------------
>
>                 Key: MANTTASKS-78
>                 URL: http://jira.codehaus.org/browse/MANTTASKS-78
>             Project: Maven 2.x Ant Tasks
>          Issue Type: Bug
>          Components: dependencies task, POM Integration
>    Affects Versions: 2.0.7
>            Reporter: Herve Boutemy
>         Attachments: MANTTASKS-78.diff, MANTTASKS-78.diff
>
>
> the conditions for this problem are very precise:
> {code:xml}
> <artifact:pom file="${user.dir}/src/test/pom-with-parent-SNAPSHOT.xml" id="my.maven.project.SNAPSHOT">
>   <localRepository path="target/tmp"/>
>   <remoteRepository url="file://${user.dir}/src/test/repo"/>
>   <remoteRepository url="file://${user.dir}/target/tmp/fake"/>
> </artifact:pom>
> {code}
> but if the second remoteRepository is removed, or even the 2 repositories switched, there is no problem...

-- 
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: (MANTTASKS-78) unable to download parent pom when it is a SNAPSHOT and multiple remoteRepositories are used

Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MANTTASKS-78?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_102114 ] 

Herve Boutemy commented on MANTTASKS-78:
----------------------------------------

I made more tests: the problem is not related to the fact that it is a pom.
I have the exact same issue with dependencies task:
{code:xml} 
<artifact:dependencies>
  <dependency groupId="it.ant-tasks" artifactId="snapshotUniqueFalse" version="2.0.7-SNAPSHOT"/>
  <localRepository path="target/tmp"/>
  <remoteRepository url="file://${user.dir}/src/test/repo"/>
  <remoteRepository url="file://${user.dir}/target/tmp/fake"/>
</artifact:dependencies>
{code} 

> unable to download parent pom when it is a SNAPSHOT and multiple remoteRepositories are used
> --------------------------------------------------------------------------------------------
>
>                 Key: MANTTASKS-78
>                 URL: http://jira.codehaus.org/browse/MANTTASKS-78
>             Project: Maven 2.x Ant Tasks
>          Issue Type: Bug
>          Components: POM Integration
>    Affects Versions: 2.0.7
>            Reporter: Herve Boutemy
>         Attachments: MANTTASKS-78.diff
>
>
> the conditions for this problem are very precise:
>     <artifact:pom file="${user.dir}/src/test/pom-with-parent-SNAPSHOT.xml" id="my.maven.project.SNAPSHOT">
>       <localRepository path="target/tmp"/>
>       <remoteRepository url="file://${user.dir}/src/test/repo"/>
>       <remoteRepository url="file://${user.dir}/target/tmp/fake"/>
>     </artifact:pom>
> but if the second remoteRepository is removed, or even the 2 repositories switched, there is no problem...

-- 
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: (MANTTASKS-78) unable to download a dependency when it is a SNAPSHOT and multiple remoteRepositories are used

Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MANTTASKS-78?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Herve Boutemy updated MANTTASKS-78:
-----------------------------------

    Description: 
the conditions for this problem are very precise:
{code:xml}
<artifact:pom file="${user.dir}/src/test/pom-with-parent-SNAPSHOT.xml" id="my.maven.project.SNAPSHOT">
  <localRepository path="target/tmp"/>
  <remoteRepository url="file://${user.dir}/src/test/repo"/>
  <remoteRepository url="file://${user.dir}/target/tmp/fake"/>
</artifact:pom>
{code}

but if the second remoteRepository is removed, or even the 2 repositories switched, there is no problem...

  was:
the conditions for this problem are very precise:
    <artifact:pom file="${user.dir}/src/test/pom-with-parent-SNAPSHOT.xml" id="my.maven.project.SNAPSHOT">
      <localRepository path="target/tmp"/>
      <remoteRepository url="file://${user.dir}/src/test/repo"/>
      <remoteRepository url="file://${user.dir}/target/tmp/fake"/>
    </artifact:pom>

but if the second remoteRepository is removed, or even the 2 repositories switched, there is no problem...

    Component/s: dependencies task
        Summary: unable to download a dependency when it is a SNAPSHOT and multiple remoteRepositories are used  (was: unable to download parent pom when it is a SNAPSHOT and multiple remoteRepositories are used)

> unable to download a dependency when it is a SNAPSHOT and multiple remoteRepositories are used
> ----------------------------------------------------------------------------------------------
>
>                 Key: MANTTASKS-78
>                 URL: http://jira.codehaus.org/browse/MANTTASKS-78
>             Project: Maven 2.x Ant Tasks
>          Issue Type: Bug
>          Components: dependencies task, POM Integration
>    Affects Versions: 2.0.7
>            Reporter: Herve Boutemy
>         Attachments: MANTTASKS-78.diff
>
>
> the conditions for this problem are very precise:
> {code:xml}
> <artifact:pom file="${user.dir}/src/test/pom-with-parent-SNAPSHOT.xml" id="my.maven.project.SNAPSHOT">
>   <localRepository path="target/tmp"/>
>   <remoteRepository url="file://${user.dir}/src/test/repo"/>
>   <remoteRepository url="file://${user.dir}/target/tmp/fake"/>
> </artifact:pom>
> {code}
> but if the second remoteRepository is removed, or even the 2 repositories switched, there is no problem...

-- 
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: (MANTTASKS-78) unable to download a dependency when it is a SNAPSHOT and multiple remoteRepositories are used

Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MANTTASKS-78?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Herve Boutemy updated MANTTASKS-78:
-----------------------------------

      Fix Version/s: 2.0.8
    Patch Submitted: [Yes]

> unable to download a dependency when it is a SNAPSHOT and multiple remoteRepositories are used
> ----------------------------------------------------------------------------------------------
>
>                 Key: MANTTASKS-78
>                 URL: http://jira.codehaus.org/browse/MANTTASKS-78
>             Project: Maven 2.x Ant Tasks
>          Issue Type: Bug
>          Components: dependencies task, POM Integration
>    Affects Versions: 2.0.7
>            Reporter: Herve Boutemy
>             Fix For: 2.0.8
>
>         Attachments: MANTTASKS-78.diff
>
>
> the conditions for this problem are very precise:
> {code:xml}
> <artifact:pom file="${user.dir}/src/test/pom-with-parent-SNAPSHOT.xml" id="my.maven.project.SNAPSHOT">
>   <localRepository path="target/tmp"/>
>   <remoteRepository url="file://${user.dir}/src/test/repo"/>
>   <remoteRepository url="file://${user.dir}/target/tmp/fake"/>
> </artifact:pom>
> {code}
> but if the second remoteRepository is removed, or even the 2 repositories switched, there is no problem...

-- 
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