You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Per Hermansson (JIRA)" <ji...@apache.org> on 2008/03/18 20:57:24 UTC

[jira] Created: (IVY-779) resolve fails to put metadata in cache

resolve fails to put metadata in cache
--------------------------------------

                 Key: IVY-779
                 URL: https://issues.apache.org/jira/browse/IVY-779
             Project: Ivy
          Issue Type: Bug
          Components: Ant
    Affects Versions: 2.0.0-beta-2, 2.0.0-beta-1
         Environment: Windows XP, Java 1.6, Ant 1.7
Ubuntu, Java 1.5, Ant 1.6.5
            Reporter: Per Hermansson
         Attachments: output-beta2.log, sample-project.tar

Ivy fails to put module metadata in cache resulting in incomplete artifact retrieving.
I've created a sample project containing two modules, a and b. Module a depends on b (both modules has a single artifact a.jar and b.jar).
With the following ant build file:
	<target name="test">
		<ivy:cleancache />
		<ivy:resolve file="repository/a/ivy.xml" />
		<ivy:retrieve ivypattern="output/[module]/[artifact].[ext]" pattern="output/[module]/[artifact].[ext]"  />
	</target>

The following happens using Ivy 2.0.0-beta2:
Ivy gives a warning that it failed to put ivy.xml for module b in cache.
Later during the retrieve step only the artifact b.jar is copied to the destination folder and not any of the following: a.jar nor the ivy files for module a and b.

When using Ivy 2.0.0-beta1:
The resolve step gives the same warning.
Then the build fails during the retrieve step because Ivy can't find the ivy.xml file for module b in the cache.

This is probably another bug (or a feature?) since Ivy isn't failing the retrieve step when the ivy.xml file isn't found.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (IVY-779) resolve fails to put metadata in cache

Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IVY-779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maarten Coene resolved IVY-779.
-------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 2.0)
                   2.0-RC1

I think I've fixed the problem. Could you give it a try with code from SVN?

> resolve fails to put metadata in cache
> --------------------------------------
>
>                 Key: IVY-779
>                 URL: https://issues.apache.org/jira/browse/IVY-779
>             Project: Ivy
>          Issue Type: Bug
>          Components: Ant
>    Affects Versions: 2.0.0-beta-1, 2.0.0-beta-2
>         Environment: Windows XP, Java 1.6, Ant 1.7
> Ubuntu, Java 1.5, Ant 1.6.5
>            Reporter: Per Hermansson
>             Fix For: 2.0-RC1
>
>         Attachments: debug-beta1.log, debug-beta2.log, output-beta1.log, output-beta2.log, sample-project.tar
>
>
> Ivy fails to put module metadata in cache resulting in incomplete artifact retrieving.
> I've created a sample project containing two modules, a and b. Module a depends on b (both modules has a single artifact a.jar and b.jar).
> With the following ant build file:
> 	<target name="test">
> 		<ivy:cleancache />
> 		<ivy:resolve file="repository/a/ivy.xml" />
> 		<ivy:retrieve ivypattern="output/[module]/[artifact].[ext]" pattern="output/[module]/[artifact].[ext]"  />
> 	</target>
> The following happens using Ivy 2.0.0-beta2:
> Ivy gives a warning that it failed to put ivy.xml for module b in cache.
> Later during the retrieve step only the artifact b.jar is copied to the destination folder and not any of the following: a.jar nor the ivy files for module a and b.
> When using Ivy 2.0.0-beta1:
> The resolve step gives the same warning.
> Then the build fails during the retrieve step because Ivy can't find the ivy.xml file for module b in the cache.
> This is probably another bug (or a feature?) since Ivy isn't failing the retrieve step when the ivy.xml file isn't found.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (IVY-779) resolve fails to put metadata in cache

Posted by "Per Hermansson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-779?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12581042#action_12581042 ] 

Per Hermansson commented on IVY-779:
------------------------------------

Yes thank you! Adding [revision] to the patterns no longer gives the error.
Shouldn't it be possible for Ivy to work without a [revision] token?


> resolve fails to put metadata in cache
> --------------------------------------
>
>                 Key: IVY-779
>                 URL: https://issues.apache.org/jira/browse/IVY-779
>             Project: Ivy
>          Issue Type: Bug
>          Components: Ant
>    Affects Versions: 2.0.0-beta-1, 2.0.0-beta-2
>         Environment: Windows XP, Java 1.6, Ant 1.7
> Ubuntu, Java 1.5, Ant 1.6.5
>            Reporter: Per Hermansson
>         Attachments: debug-beta1.log, debug-beta2.log, output-beta1.log, output-beta2.log, sample-project.tar
>
>
> Ivy fails to put module metadata in cache resulting in incomplete artifact retrieving.
> I've created a sample project containing two modules, a and b. Module a depends on b (both modules has a single artifact a.jar and b.jar).
> With the following ant build file:
> 	<target name="test">
> 		<ivy:cleancache />
> 		<ivy:resolve file="repository/a/ivy.xml" />
> 		<ivy:retrieve ivypattern="output/[module]/[artifact].[ext]" pattern="output/[module]/[artifact].[ext]"  />
> 	</target>
> The following happens using Ivy 2.0.0-beta2:
> Ivy gives a warning that it failed to put ivy.xml for module b in cache.
> Later during the retrieve step only the artifact b.jar is copied to the destination folder and not any of the following: a.jar nor the ivy files for module a and b.
> When using Ivy 2.0.0-beta1:
> The resolve step gives the same warning.
> Then the build fails during the retrieve step because Ivy can't find the ivy.xml file for module b in the cache.
> This is probably another bug (or a feature?) since Ivy isn't failing the retrieve step when the ivy.xml file isn't found.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (IVY-779) resolve fails to put metadata in cache

Posted by "Per Hermansson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IVY-779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Per Hermansson updated IVY-779:
-------------------------------

    Attachment: output-beta2.log

Attached normal output using Ivy 2.0.0-beta2

> resolve fails to put metadata in cache
> --------------------------------------
>
>                 Key: IVY-779
>                 URL: https://issues.apache.org/jira/browse/IVY-779
>             Project: Ivy
>          Issue Type: Bug
>          Components: Ant
>    Affects Versions: 2.0.0-beta-1, 2.0.0-beta-2
>         Environment: Windows XP, Java 1.6, Ant 1.7
> Ubuntu, Java 1.5, Ant 1.6.5
>            Reporter: Per Hermansson
>         Attachments: output-beta2.log, sample-project.tar
>
>
> Ivy fails to put module metadata in cache resulting in incomplete artifact retrieving.
> I've created a sample project containing two modules, a and b. Module a depends on b (both modules has a single artifact a.jar and b.jar).
> With the following ant build file:
> 	<target name="test">
> 		<ivy:cleancache />
> 		<ivy:resolve file="repository/a/ivy.xml" />
> 		<ivy:retrieve ivypattern="output/[module]/[artifact].[ext]" pattern="output/[module]/[artifact].[ext]"  />
> 	</target>
> The following happens using Ivy 2.0.0-beta2:
> Ivy gives a warning that it failed to put ivy.xml for module b in cache.
> Later during the retrieve step only the artifact b.jar is copied to the destination folder and not any of the following: a.jar nor the ivy files for module a and b.
> When using Ivy 2.0.0-beta1:
> The resolve step gives the same warning.
> Then the build fails during the retrieve step because Ivy can't find the ivy.xml file for module b in the cache.
> This is probably another bug (or a feature?) since Ivy isn't failing the retrieve step when the ivy.xml file isn't found.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (IVY-779) resolve fails to put metadata in cache

Posted by "Xavier Hanin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IVY-779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Xavier Hanin updated IVY-779:
-----------------------------

    Fix Version/s: 2.0

> resolve fails to put metadata in cache
> --------------------------------------
>
>                 Key: IVY-779
>                 URL: https://issues.apache.org/jira/browse/IVY-779
>             Project: Ivy
>          Issue Type: Bug
>          Components: Ant
>    Affects Versions: 2.0.0-beta-1, 2.0.0-beta-2
>         Environment: Windows XP, Java 1.6, Ant 1.7
> Ubuntu, Java 1.5, Ant 1.6.5
>            Reporter: Per Hermansson
>             Fix For: 2.0
>
>         Attachments: debug-beta1.log, debug-beta2.log, output-beta1.log, output-beta2.log, sample-project.tar
>
>
> Ivy fails to put module metadata in cache resulting in incomplete artifact retrieving.
> I've created a sample project containing two modules, a and b. Module a depends on b (both modules has a single artifact a.jar and b.jar).
> With the following ant build file:
> 	<target name="test">
> 		<ivy:cleancache />
> 		<ivy:resolve file="repository/a/ivy.xml" />
> 		<ivy:retrieve ivypattern="output/[module]/[artifact].[ext]" pattern="output/[module]/[artifact].[ext]"  />
> 	</target>
> The following happens using Ivy 2.0.0-beta2:
> Ivy gives a warning that it failed to put ivy.xml for module b in cache.
> Later during the retrieve step only the artifact b.jar is copied to the destination folder and not any of the following: a.jar nor the ivy files for module a and b.
> When using Ivy 2.0.0-beta1:
> The resolve step gives the same warning.
> Then the build fails during the retrieve step because Ivy can't find the ivy.xml file for module b in the cache.
> This is probably another bug (or a feature?) since Ivy isn't failing the retrieve step when the ivy.xml file isn't found.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (IVY-779) resolve fails to put metadata in cache

Posted by "Per Hermansson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-779?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12585509#action_12585509 ] 

Per Hermansson commented on IVY-779:
------------------------------------

Sorry for the delay. 
Good new is that when using Ivy from the latest trunk (rev: 644689) the ant task finishes without error.

But Ivy no longer behaves as expected: 
In the ant build file, attached to this issue, I first resolve module A and then retrieves all dependencies to the output folder.
After the task has executed only the module B (A depends on B) is copied to the destination folder, not module A.

The issue seems to be that the artifacts for the module described by the "input" Ivy file isn't resolved.


> resolve fails to put metadata in cache
> --------------------------------------
>
>                 Key: IVY-779
>                 URL: https://issues.apache.org/jira/browse/IVY-779
>             Project: Ivy
>          Issue Type: Bug
>          Components: Ant
>    Affects Versions: 2.0.0-beta-1, 2.0.0-beta-2
>         Environment: Windows XP, Java 1.6, Ant 1.7
> Ubuntu, Java 1.5, Ant 1.6.5
>            Reporter: Per Hermansson
>            Assignee: Maarten Coene
>             Fix For: 2.0-RC1
>
>         Attachments: debug-beta1.log, debug-beta2.log, output-beta1.log, output-beta2.log, sample-project.tar
>
>
> Ivy fails to put module metadata in cache resulting in incomplete artifact retrieving.
> I've created a sample project containing two modules, a and b. Module a depends on b (both modules has a single artifact a.jar and b.jar).
> With the following ant build file:
> 	<target name="test">
> 		<ivy:cleancache />
> 		<ivy:resolve file="repository/a/ivy.xml" />
> 		<ivy:retrieve ivypattern="output/[module]/[artifact].[ext]" pattern="output/[module]/[artifact].[ext]"  />
> 	</target>
> The following happens using Ivy 2.0.0-beta2:
> Ivy gives a warning that it failed to put ivy.xml for module b in cache.
> Later during the retrieve step only the artifact b.jar is copied to the destination folder and not any of the following: a.jar nor the ivy files for module a and b.
> When using Ivy 2.0.0-beta1:
> The resolve step gives the same warning.
> Then the build fails during the retrieve step because Ivy can't find the ivy.xml file for module b in the cache.
> This is probably another bug (or a feature?) since Ivy isn't failing the retrieve step when the ivy.xml file isn't found.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (IVY-779) resolve fails to put metadata in cache

Posted by "Per Hermansson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IVY-779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Per Hermansson updated IVY-779:
-------------------------------

    Attachment: debug-r644689.log

Attached debug output for the sample project using Ivy rev: 644689

> resolve fails to put metadata in cache
> --------------------------------------
>
>                 Key: IVY-779
>                 URL: https://issues.apache.org/jira/browse/IVY-779
>             Project: Ivy
>          Issue Type: Bug
>          Components: Ant
>    Affects Versions: 2.0.0-beta-1, 2.0.0-beta-2
>         Environment: Windows XP, Java 1.6, Ant 1.7
> Ubuntu, Java 1.5, Ant 1.6.5
>            Reporter: Per Hermansson
>            Assignee: Maarten Coene
>             Fix For: 2.0-RC1
>
>         Attachments: debug-beta1.log, debug-beta2.log, debug-r644689.log, output-beta1.log, output-beta2.log, output-r644689.log, sample-project.tar
>
>
> Ivy fails to put module metadata in cache resulting in incomplete artifact retrieving.
> I've created a sample project containing two modules, a and b. Module a depends on b (both modules has a single artifact a.jar and b.jar).
> With the following ant build file:
> 	<target name="test">
> 		<ivy:cleancache />
> 		<ivy:resolve file="repository/a/ivy.xml" />
> 		<ivy:retrieve ivypattern="output/[module]/[artifact].[ext]" pattern="output/[module]/[artifact].[ext]"  />
> 	</target>
> The following happens using Ivy 2.0.0-beta2:
> Ivy gives a warning that it failed to put ivy.xml for module b in cache.
> Later during the retrieve step only the artifact b.jar is copied to the destination folder and not any of the following: a.jar nor the ivy files for module a and b.
> When using Ivy 2.0.0-beta1:
> The resolve step gives the same warning.
> Then the build fails during the retrieve step because Ivy can't find the ivy.xml file for module b in the cache.
> This is probably another bug (or a feature?) since Ivy isn't failing the retrieve step when the ivy.xml file isn't found.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (IVY-779) resolve fails to put metadata in cache

Posted by "Per Hermansson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-779?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12585924#action_12585924 ] 

Per Hermansson commented on IVY-779:
------------------------------------

Oh Thanks! I guess I haven't explored Ivy that much then.

> resolve fails to put metadata in cache
> --------------------------------------
>
>                 Key: IVY-779
>                 URL: https://issues.apache.org/jira/browse/IVY-779
>             Project: Ivy
>          Issue Type: Bug
>          Components: Ant
>    Affects Versions: 2.0.0-beta-1, 2.0.0-beta-2
>         Environment: Windows XP, Java 1.6, Ant 1.7
> Ubuntu, Java 1.5, Ant 1.6.5
>            Reporter: Per Hermansson
>            Assignee: Maarten Coene
>             Fix For: 2.0-RC1
>
>         Attachments: debug-beta1.log, debug-beta2.log, debug-r644689.log, output-beta1.log, output-beta2.log, output-r644689.log, sample-project.tar
>
>
> Ivy fails to put module metadata in cache resulting in incomplete artifact retrieving.
> I've created a sample project containing two modules, a and b. Module a depends on b (both modules has a single artifact a.jar and b.jar).
> With the following ant build file:
> 	<target name="test">
> 		<ivy:cleancache />
> 		<ivy:resolve file="repository/a/ivy.xml" />
> 		<ivy:retrieve ivypattern="output/[module]/[artifact].[ext]" pattern="output/[module]/[artifact].[ext]"  />
> 	</target>
> The following happens using Ivy 2.0.0-beta2:
> Ivy gives a warning that it failed to put ivy.xml for module b in cache.
> Later during the retrieve step only the artifact b.jar is copied to the destination folder and not any of the following: a.jar nor the ivy files for module a and b.
> When using Ivy 2.0.0-beta1:
> The resolve step gives the same warning.
> Then the build fails during the retrieve step because Ivy can't find the ivy.xml file for module b in the cache.
> This is probably another bug (or a feature?) since Ivy isn't failing the retrieve step when the ivy.xml file isn't found.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (IVY-779) resolve fails to put metadata in cache

Posted by "Per Hermansson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IVY-779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Per Hermansson updated IVY-779:
-------------------------------

    Attachment: sample-project.tar

Attached the sample project used to trigger the issue.

> resolve fails to put metadata in cache
> --------------------------------------
>
>                 Key: IVY-779
>                 URL: https://issues.apache.org/jira/browse/IVY-779
>             Project: Ivy
>          Issue Type: Bug
>          Components: Ant
>    Affects Versions: 2.0.0-beta-1, 2.0.0-beta-2
>         Environment: Windows XP, Java 1.6, Ant 1.7
> Ubuntu, Java 1.5, Ant 1.6.5
>            Reporter: Per Hermansson
>         Attachments: output-beta2.log, sample-project.tar
>
>
> Ivy fails to put module metadata in cache resulting in incomplete artifact retrieving.
> I've created a sample project containing two modules, a and b. Module a depends on b (both modules has a single artifact a.jar and b.jar).
> With the following ant build file:
> 	<target name="test">
> 		<ivy:cleancache />
> 		<ivy:resolve file="repository/a/ivy.xml" />
> 		<ivy:retrieve ivypattern="output/[module]/[artifact].[ext]" pattern="output/[module]/[artifact].[ext]"  />
> 	</target>
> The following happens using Ivy 2.0.0-beta2:
> Ivy gives a warning that it failed to put ivy.xml for module b in cache.
> Later during the retrieve step only the artifact b.jar is copied to the destination folder and not any of the following: a.jar nor the ivy files for module a and b.
> When using Ivy 2.0.0-beta1:
> The resolve step gives the same warning.
> Then the build fails during the retrieve step because Ivy can't find the ivy.xml file for module b in the cache.
> This is probably another bug (or a feature?) since Ivy isn't failing the retrieve step when the ivy.xml file isn't found.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (IVY-779) resolve fails to put metadata in cache

Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-779?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12580727#action_12580727 ] 

Maarten Coene commented on IVY-779:
-----------------------------------

I think this bug is happening because you don't have a [revision] in your patterns.
Could you as a workaround try to add such a [revision] token to your pattern and see if it still fails?

> resolve fails to put metadata in cache
> --------------------------------------
>
>                 Key: IVY-779
>                 URL: https://issues.apache.org/jira/browse/IVY-779
>             Project: Ivy
>          Issue Type: Bug
>          Components: Ant
>    Affects Versions: 2.0.0-beta-1, 2.0.0-beta-2
>         Environment: Windows XP, Java 1.6, Ant 1.7
> Ubuntu, Java 1.5, Ant 1.6.5
>            Reporter: Per Hermansson
>         Attachments: debug-beta1.log, debug-beta2.log, output-beta1.log, output-beta2.log, sample-project.tar
>
>
> Ivy fails to put module metadata in cache resulting in incomplete artifact retrieving.
> I've created a sample project containing two modules, a and b. Module a depends on b (both modules has a single artifact a.jar and b.jar).
> With the following ant build file:
> 	<target name="test">
> 		<ivy:cleancache />
> 		<ivy:resolve file="repository/a/ivy.xml" />
> 		<ivy:retrieve ivypattern="output/[module]/[artifact].[ext]" pattern="output/[module]/[artifact].[ext]"  />
> 	</target>
> The following happens using Ivy 2.0.0-beta2:
> Ivy gives a warning that it failed to put ivy.xml for module b in cache.
> Later during the retrieve step only the artifact b.jar is copied to the destination folder and not any of the following: a.jar nor the ivy files for module a and b.
> When using Ivy 2.0.0-beta1:
> The resolve step gives the same warning.
> Then the build fails during the retrieve step because Ivy can't find the ivy.xml file for module b in the cache.
> This is probably another bug (or a feature?) since Ivy isn't failing the retrieve step when the ivy.xml file isn't found.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (IVY-779) resolve fails to put metadata in cache

Posted by "Per Hermansson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IVY-779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Per Hermansson updated IVY-779:
-------------------------------

    Attachment: debug-beta2.log

Attached debug output using Ivy 2.0.0-beta2

> resolve fails to put metadata in cache
> --------------------------------------
>
>                 Key: IVY-779
>                 URL: https://issues.apache.org/jira/browse/IVY-779
>             Project: Ivy
>          Issue Type: Bug
>          Components: Ant
>    Affects Versions: 2.0.0-beta-1, 2.0.0-beta-2
>         Environment: Windows XP, Java 1.6, Ant 1.7
> Ubuntu, Java 1.5, Ant 1.6.5
>            Reporter: Per Hermansson
>         Attachments: debug-beta1.log, debug-beta2.log, output-beta1.log, output-beta2.log, sample-project.tar
>
>
> Ivy fails to put module metadata in cache resulting in incomplete artifact retrieving.
> I've created a sample project containing two modules, a and b. Module a depends on b (both modules has a single artifact a.jar and b.jar).
> With the following ant build file:
> 	<target name="test">
> 		<ivy:cleancache />
> 		<ivy:resolve file="repository/a/ivy.xml" />
> 		<ivy:retrieve ivypattern="output/[module]/[artifact].[ext]" pattern="output/[module]/[artifact].[ext]"  />
> 	</target>
> The following happens using Ivy 2.0.0-beta2:
> Ivy gives a warning that it failed to put ivy.xml for module b in cache.
> Later during the retrieve step only the artifact b.jar is copied to the destination folder and not any of the following: a.jar nor the ivy files for module a and b.
> When using Ivy 2.0.0-beta1:
> The resolve step gives the same warning.
> Then the build fails during the retrieve step because Ivy can't find the ivy.xml file for module b in the cache.
> This is probably another bug (or a feature?) since Ivy isn't failing the retrieve step when the ivy.xml file isn't found.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (IVY-779) resolve fails to put metadata in cache

Posted by "Per Hermansson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IVY-779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Per Hermansson updated IVY-779:
-------------------------------

    Attachment: output-beta1.log

Attached normal output using Ivy 2.0.0-beta1

> resolve fails to put metadata in cache
> --------------------------------------
>
>                 Key: IVY-779
>                 URL: https://issues.apache.org/jira/browse/IVY-779
>             Project: Ivy
>          Issue Type: Bug
>          Components: Ant
>    Affects Versions: 2.0.0-beta-1, 2.0.0-beta-2
>         Environment: Windows XP, Java 1.6, Ant 1.7
> Ubuntu, Java 1.5, Ant 1.6.5
>            Reporter: Per Hermansson
>         Attachments: debug-beta1.log, debug-beta2.log, output-beta1.log, output-beta2.log, sample-project.tar
>
>
> Ivy fails to put module metadata in cache resulting in incomplete artifact retrieving.
> I've created a sample project containing two modules, a and b. Module a depends on b (both modules has a single artifact a.jar and b.jar).
> With the following ant build file:
> 	<target name="test">
> 		<ivy:cleancache />
> 		<ivy:resolve file="repository/a/ivy.xml" />
> 		<ivy:retrieve ivypattern="output/[module]/[artifact].[ext]" pattern="output/[module]/[artifact].[ext]"  />
> 	</target>
> The following happens using Ivy 2.0.0-beta2:
> Ivy gives a warning that it failed to put ivy.xml for module b in cache.
> Later during the retrieve step only the artifact b.jar is copied to the destination folder and not any of the following: a.jar nor the ivy files for module a and b.
> When using Ivy 2.0.0-beta1:
> The resolve step gives the same warning.
> Then the build fails during the retrieve step because Ivy can't find the ivy.xml file for module b in the cache.
> This is probably another bug (or a feature?) since Ivy isn't failing the retrieve step when the ivy.xml file isn't found.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (IVY-779) resolve fails to put metadata in cache

Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IVY-779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maarten Coene reassigned IVY-779:
---------------------------------

    Assignee: Maarten Coene

> resolve fails to put metadata in cache
> --------------------------------------
>
>                 Key: IVY-779
>                 URL: https://issues.apache.org/jira/browse/IVY-779
>             Project: Ivy
>          Issue Type: Bug
>          Components: Ant
>    Affects Versions: 2.0.0-beta-1, 2.0.0-beta-2
>         Environment: Windows XP, Java 1.6, Ant 1.7
> Ubuntu, Java 1.5, Ant 1.6.5
>            Reporter: Per Hermansson
>            Assignee: Maarten Coene
>             Fix For: 2.0-RC1
>
>         Attachments: debug-beta1.log, debug-beta2.log, output-beta1.log, output-beta2.log, sample-project.tar
>
>
> Ivy fails to put module metadata in cache resulting in incomplete artifact retrieving.
> I've created a sample project containing two modules, a and b. Module a depends on b (both modules has a single artifact a.jar and b.jar).
> With the following ant build file:
> 	<target name="test">
> 		<ivy:cleancache />
> 		<ivy:resolve file="repository/a/ivy.xml" />
> 		<ivy:retrieve ivypattern="output/[module]/[artifact].[ext]" pattern="output/[module]/[artifact].[ext]"  />
> 	</target>
> The following happens using Ivy 2.0.0-beta2:
> Ivy gives a warning that it failed to put ivy.xml for module b in cache.
> Later during the retrieve step only the artifact b.jar is copied to the destination folder and not any of the following: a.jar nor the ivy files for module a and b.
> When using Ivy 2.0.0-beta1:
> The resolve step gives the same warning.
> Then the build fails during the retrieve step because Ivy can't find the ivy.xml file for module b in the cache.
> This is probably another bug (or a feature?) since Ivy isn't failing the retrieve step when the ivy.xml file isn't found.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (IVY-779) resolve fails to put metadata in cache

Posted by "Per Hermansson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IVY-779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Per Hermansson updated IVY-779:
-------------------------------

    Attachment: debug-beta1.log

Attached debug output using Ivy 2.0.0-beta1

> resolve fails to put metadata in cache
> --------------------------------------
>
>                 Key: IVY-779
>                 URL: https://issues.apache.org/jira/browse/IVY-779
>             Project: Ivy
>          Issue Type: Bug
>          Components: Ant
>    Affects Versions: 2.0.0-beta-1, 2.0.0-beta-2
>         Environment: Windows XP, Java 1.6, Ant 1.7
> Ubuntu, Java 1.5, Ant 1.6.5
>            Reporter: Per Hermansson
>         Attachments: debug-beta1.log, debug-beta2.log, output-beta1.log, output-beta2.log, sample-project.tar
>
>
> Ivy fails to put module metadata in cache resulting in incomplete artifact retrieving.
> I've created a sample project containing two modules, a and b. Module a depends on b (both modules has a single artifact a.jar and b.jar).
> With the following ant build file:
> 	<target name="test">
> 		<ivy:cleancache />
> 		<ivy:resolve file="repository/a/ivy.xml" />
> 		<ivy:retrieve ivypattern="output/[module]/[artifact].[ext]" pattern="output/[module]/[artifact].[ext]"  />
> 	</target>
> The following happens using Ivy 2.0.0-beta2:
> Ivy gives a warning that it failed to put ivy.xml for module b in cache.
> Later during the retrieve step only the artifact b.jar is copied to the destination folder and not any of the following: a.jar nor the ivy files for module a and b.
> When using Ivy 2.0.0-beta1:
> The resolve step gives the same warning.
> Then the build fails during the retrieve step because Ivy can't find the ivy.xml file for module b in the cache.
> This is probably another bug (or a feature?) since Ivy isn't failing the retrieve step when the ivy.xml file isn't found.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (IVY-779) resolve fails to put metadata in cache

Posted by "Per Hermansson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IVY-779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Per Hermansson updated IVY-779:
-------------------------------

    Attachment: output-r644689.log

Attached normal output for the sample project using Ivy rev: 644689

> resolve fails to put metadata in cache
> --------------------------------------
>
>                 Key: IVY-779
>                 URL: https://issues.apache.org/jira/browse/IVY-779
>             Project: Ivy
>          Issue Type: Bug
>          Components: Ant
>    Affects Versions: 2.0.0-beta-1, 2.0.0-beta-2
>         Environment: Windows XP, Java 1.6, Ant 1.7
> Ubuntu, Java 1.5, Ant 1.6.5
>            Reporter: Per Hermansson
>            Assignee: Maarten Coene
>             Fix For: 2.0-RC1
>
>         Attachments: debug-beta1.log, debug-beta2.log, debug-r644689.log, output-beta1.log, output-beta2.log, output-r644689.log, sample-project.tar
>
>
> Ivy fails to put module metadata in cache resulting in incomplete artifact retrieving.
> I've created a sample project containing two modules, a and b. Module a depends on b (both modules has a single artifact a.jar and b.jar).
> With the following ant build file:
> 	<target name="test">
> 		<ivy:cleancache />
> 		<ivy:resolve file="repository/a/ivy.xml" />
> 		<ivy:retrieve ivypattern="output/[module]/[artifact].[ext]" pattern="output/[module]/[artifact].[ext]"  />
> 	</target>
> The following happens using Ivy 2.0.0-beta2:
> Ivy gives a warning that it failed to put ivy.xml for module b in cache.
> Later during the retrieve step only the artifact b.jar is copied to the destination folder and not any of the following: a.jar nor the ivy files for module a and b.
> When using Ivy 2.0.0-beta1:
> The resolve step gives the same warning.
> Then the build fails during the retrieve step because Ivy can't find the ivy.xml file for module b in the cache.
> This is probably another bug (or a feature?) since Ivy isn't failing the retrieve step when the ivy.xml file isn't found.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (IVY-779) resolve fails to put metadata in cache

Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-779?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12585745#action_12585745 ] 

Maarten Coene commented on IVY-779:
-----------------------------------

This is normal Ivy behaviour. If you resolve a module using the ivy file of that module, you won't have the published artifacts of that module, only the dependencies.
However, you can use the inline mode on the resolve task to accomplish what you want.

> resolve fails to put metadata in cache
> --------------------------------------
>
>                 Key: IVY-779
>                 URL: https://issues.apache.org/jira/browse/IVY-779
>             Project: Ivy
>          Issue Type: Bug
>          Components: Ant
>    Affects Versions: 2.0.0-beta-1, 2.0.0-beta-2
>         Environment: Windows XP, Java 1.6, Ant 1.7
> Ubuntu, Java 1.5, Ant 1.6.5
>            Reporter: Per Hermansson
>            Assignee: Maarten Coene
>             Fix For: 2.0-RC1
>
>         Attachments: debug-beta1.log, debug-beta2.log, debug-r644689.log, output-beta1.log, output-beta2.log, output-r644689.log, sample-project.tar
>
>
> Ivy fails to put module metadata in cache resulting in incomplete artifact retrieving.
> I've created a sample project containing two modules, a and b. Module a depends on b (both modules has a single artifact a.jar and b.jar).
> With the following ant build file:
> 	<target name="test">
> 		<ivy:cleancache />
> 		<ivy:resolve file="repository/a/ivy.xml" />
> 		<ivy:retrieve ivypattern="output/[module]/[artifact].[ext]" pattern="output/[module]/[artifact].[ext]"  />
> 	</target>
> The following happens using Ivy 2.0.0-beta2:
> Ivy gives a warning that it failed to put ivy.xml for module b in cache.
> Later during the retrieve step only the artifact b.jar is copied to the destination folder and not any of the following: a.jar nor the ivy files for module a and b.
> When using Ivy 2.0.0-beta1:
> The resolve step gives the same warning.
> Then the build fails during the retrieve step because Ivy can't find the ivy.xml file for module b in the cache.
> This is probably another bug (or a feature?) since Ivy isn't failing the retrieve step when the ivy.xml file isn't found.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.