Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.1.0-RC2
-
None
-
None
Description
Provided a configuration A has a Maven snapshot dependency and the configuration A is extended by another configuration B. I have two separate resolves during the execution of my build script, the Maven snapshot is downloaded twice. If I execute the build another time, the snapshot is taken from the cache. If I publish a new version of the snapshot, the first execution of the build will again download the snapshot multiple times. Consecutive executions take the snapshot from the cache until another new version is uploaded.
I have attached a test case: The ant script has a publish task to publish a Snapshot to a Maven repo in the project folder. The ivy.xml has a compile and an extending test configuration. The compile configuration has a dependency on the Maven snapshot. Execution ant test will reproduce the behavior described above.