You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Mike Pettypiece (JIRA)" <ji...@apache.org> on 2011/01/31 18:58:28 UTC
[jira] Created: (IVY-1264) ibiblio resolver does not download
source from local Maven repository
ibiblio resolver does not download source from local Maven repository
---------------------------------------------------------------------
Key: IVY-1264
URL: https://issues.apache.org/jira/browse/IVY-1264
Project: Ivy
Issue Type: Bug
Components: Maven Compatibility
Affects Versions: 2.2.0
Reporter: Mike Pettypiece
Resolvers are as follows:
<resolvers>
<chain name="main" returnFirst="true">
<ibiblio name="local-maven2" m2compatible="true" root="file:///c:/Users/<username>/.m2/repository" />
<ibiblio name="public" m2compatible="true" root="http://<artifactory>/artifactory/libs-releases" />
</chain>
</resolvers>
When artifacts are discovered using the "public" resolver, source (if published) is downloaded automatically. However when using the "local-maven2" resolver no source is copied.
This appears to be the issue:
[ivy:retrieve] maven-metadata not available: file:/c:/Users/<username>/.m2/repository/com/example/test/1.1-SNAPSHOT/maven-metadata.xml
In this case there is no maven-metadata.xml, there is only a maven-metadata-local.xml
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (IVY-1264) ibiblio resolver does not download
source from local Maven repository
Posted by "Mike Pettypiece (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-1264?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12988821#comment-12988821 ]
Mike Pettypiece commented on IVY-1264:
--------------------------------------
The patch above still doesn't solve the issue with maven artifacts pulled down from a remote server. I'll try to investigate further.
> ibiblio resolver does not download source from local Maven repository
> ---------------------------------------------------------------------
>
> Key: IVY-1264
> URL: https://issues.apache.org/jira/browse/IVY-1264
> Project: Ivy
> Issue Type: Bug
> Components: Maven Compatibility
> Affects Versions: 2.2.0
> Reporter: Mike Pettypiece
> Attachments: IVY-1264-1
>
>
> Resolvers are as follows:
> <resolvers>
> <chain name="main" returnFirst="true">
> <ibiblio name="local-maven2" m2compatible="true" root="file:///c:/Users/<username>/.m2/repository" />
> <ibiblio name="public" m2compatible="true" root="http://<artifactory>/artifactory/libs-releases" />
> </chain>
> </resolvers>
> When artifacts are discovered using the "public" resolver, source (if published) is downloaded automatically. However when using the "local-maven2" resolver no source is copied.
> This appears to be the issue:
> [ivy:retrieve] maven-metadata not available: file:/c:/Users/<username>/.m2/repository/com/example/test/1.1-SNAPSHOT/maven-metadata.xml
> In this case there is no maven-metadata.xml, there is only a maven-metadata-local.xml
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (IVY-1264) ibiblio resolver does not download
source from local Maven repository
Posted by "Mike Pettypiece (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-1264?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mike Pettypiece updated IVY-1264:
---------------------------------
Attachment: IVY-1264-1
The attached patch solves the issue for maven artifacts published locally (mvn install).
> ibiblio resolver does not download source from local Maven repository
> ---------------------------------------------------------------------
>
> Key: IVY-1264
> URL: https://issues.apache.org/jira/browse/IVY-1264
> Project: Ivy
> Issue Type: Bug
> Components: Maven Compatibility
> Affects Versions: 2.2.0
> Reporter: Mike Pettypiece
> Attachments: IVY-1264-1
>
>
> Resolvers are as follows:
> <resolvers>
> <chain name="main" returnFirst="true">
> <ibiblio name="local-maven2" m2compatible="true" root="file:///c:/Users/<username>/.m2/repository" />
> <ibiblio name="public" m2compatible="true" root="http://<artifactory>/artifactory/libs-releases" />
> </chain>
> </resolvers>
> When artifacts are discovered using the "public" resolver, source (if published) is downloaded automatically. However when using the "local-maven2" resolver no source is copied.
> This appears to be the issue:
> [ivy:retrieve] maven-metadata not available: file:/c:/Users/<username>/.m2/repository/com/example/test/1.1-SNAPSHOT/maven-metadata.xml
> In this case there is no maven-metadata.xml, there is only a maven-metadata-local.xml
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Closed: (IVY-1264) ibiblio resolver does not download source
from local Maven repository
Posted by "Mike Pettypiece (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-1264?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mike Pettypiece closed IVY-1264.
--------------------------------
Resolution: Invalid
The ibiblio repository works correctly with a local Maven repo - I was mistake that there was an issue.
> ibiblio resolver does not download source from local Maven repository
> ---------------------------------------------------------------------
>
> Key: IVY-1264
> URL: https://issues.apache.org/jira/browse/IVY-1264
> Project: Ivy
> Issue Type: Bug
> Components: Maven Compatibility
> Affects Versions: 2.2.0
> Reporter: Mike Pettypiece
> Attachments: IVY-1264-1
>
>
> Resolvers are as follows:
> <resolvers>
> <chain name="main" returnFirst="true">
> <ibiblio name="local-maven2" m2compatible="true" root="file:///c:/Users/<username>/.m2/repository" />
> <ibiblio name="public" m2compatible="true" root="http://<artifactory>/artifactory/libs-releases" />
> </chain>
> </resolvers>
> When artifacts are discovered using the "public" resolver, source (if published) is downloaded automatically. However when using the "local-maven2" resolver no source is copied.
> This appears to be the issue:
> [ivy:retrieve] maven-metadata not available: file:/c:/Users/<username>/.m2/repository/com/example/test/1.1-SNAPSHOT/maven-metadata.xml
> In this case there is no maven-metadata.xml, there is only a maven-metadata-local.xml
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (IVY-1264) ibiblio resolver does not download
source from local Maven repository
Posted by "Mike Pettypiece (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-1264?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12988825#comment-12988825 ]
Mike Pettypiece commented on IVY-1264:
--------------------------------------
Usage with patch above:
<ibiblio name="local-maven2" m2compatible="true" local="true" root="file:///c:/Users/<username>/.m2/repository" />
> ibiblio resolver does not download source from local Maven repository
> ---------------------------------------------------------------------
>
> Key: IVY-1264
> URL: https://issues.apache.org/jira/browse/IVY-1264
> Project: Ivy
> Issue Type: Bug
> Components: Maven Compatibility
> Affects Versions: 2.2.0
> Reporter: Mike Pettypiece
> Attachments: IVY-1264-1
>
>
> Resolvers are as follows:
> <resolvers>
> <chain name="main" returnFirst="true">
> <ibiblio name="local-maven2" m2compatible="true" root="file:///c:/Users/<username>/.m2/repository" />
> <ibiblio name="public" m2compatible="true" root="http://<artifactory>/artifactory/libs-releases" />
> </chain>
> </resolvers>
> When artifacts are discovered using the "public" resolver, source (if published) is downloaded automatically. However when using the "local-maven2" resolver no source is copied.
> This appears to be the issue:
> [ivy:retrieve] maven-metadata not available: file:/c:/Users/<username>/.m2/repository/com/example/test/1.1-SNAPSHOT/maven-metadata.xml
> In this case there is no maven-metadata.xml, there is only a maven-metadata-local.xml
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (IVY-1264) ibiblio resolver does not download
source from local Maven repository
Posted by "devantor (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-1264?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13500601#comment-13500601 ]
devantor commented on IVY-1264:
-------------------------------
I got the same problem if the the maven-metadata is not available: file:////<PATH>/.m2/repository/<JAR>/maven-metadata.xml
Ivy tried with the .pom file.
tried file:////<PATH>/.m2/repository/<JAR>/<JAR>.pom
In my case I forced .pom update(updateReleaseInfo) in maven-install-plugin configuration
<plugin>
<artifactId>maven-install-plugin</artifactId>
<configuration>
<createChecksum>true</createChecksum>
<updateReleaseInfo>true</updateReleaseInfo>
</configuration>
</plugin>
> ibiblio resolver does not download source from local Maven repository
> ---------------------------------------------------------------------
>
> Key: IVY-1264
> URL: https://issues.apache.org/jira/browse/IVY-1264
> Project: Ivy
> Issue Type: Bug
> Components: Maven Compatibility
> Affects Versions: 2.2.0
> Reporter: Mike Pettypiece
> Attachments: IVY-1264-1
>
>
> Resolvers are as follows:
> <resolvers>
> <chain name="main" returnFirst="true">
> <ibiblio name="local-maven2" m2compatible="true" root="file:///c:/Users/<username>/.m2/repository" />
> <ibiblio name="public" m2compatible="true" root="http://<artifactory>/artifactory/libs-releases" />
> </chain>
> </resolvers>
> When artifacts are discovered using the "public" resolver, source (if published) is downloaded automatically. However when using the "local-maven2" resolver no source is copied.
> This appears to be the issue:
> [ivy:retrieve] maven-metadata not available: file:/c:/Users/<username>/.m2/repository/com/example/test/1.1-SNAPSHOT/maven-metadata.xml
> In this case there is no maven-metadata.xml, there is only a maven-metadata-local.xml
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira