[
https://issues.apache.org/jira/browse/IVY-1463?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13960411#comment-13960411
]
David M. Karr commented on IVY-1463:
------------------------------------
Thanks for looking at this.
Unfortunately, this made no difference.
Here's my new target:
{code}
<target name="install-dependencies">
<ivy:resolve transitive="false" type="jar"/>
<ivy:retrieve conf="*" type="jar, bundle"
pattern="${basedir}/lib/[artifact]-[type]-[revision].[ext]"/>
</target>
{code}
I emptied my "lib" directory, cleared the ivy cache, and then ran the build.
My build output follows, somewhat elided. Note that there are 9 dependencies,
but it only downloads 8 of them. The lib directory is missing the
"poc-domain-model" dependency, even though it "resolved" it.
Also note that I've moved on from this and implemented almost exactly the same
build script in Gradle. That build has no problem getting that timestamped
snapshot.
{code}
install-dependencies:
:: Apache Ivy 2.3.0 - 20130110142753 :: http://ant.apache.org/ivy/ ::
:: loading settings :: file = ==homedir==\git\atg\coherence_poc\ivysettings.xml
:: resolving dependencies ::
com.att.ecom.poc#coherence_poc;working@WACDTL04DK068X [not transitive]
confs: [default]
found com.att.ecom.poc#poc-domain-model;0.0.1-SNAPSHOT in
mavenCentralSnapshots
found org.apache.commons#commons-lang3;3.1 in central
found org.springframework#spring-aop;4.0.0.RELEASE in central
found org.springframework#spring-beans;4.0.0.RELEASE in central
found org.springframework#spring-context;4.0.0.RELEASE in central
found org.springframework#spring-core;4.0.0.RELEASE in central
found org.springframework#spring-expression;4.0.0.RELEASE in central
found org.springframework#spring-web;4.0.0.RELEASE in central
found com.oracle.coherence#coherence;12.1.2-0-0 in
mavenCentralThirdparty
downloading
http://repo1.maven.org/maven2/org/apache/commons/commons-lang3/3.1/commons-lang3-3.1.jar
...
............. (308kB)
.. (0kB)
[SUCCESSFUL ] org.apache.commons#commons-lang3;3.1!commons-lang3.jar
(950ms)
downloading
http://repo1.maven.org/maven2/org/springframework/spring-aop/4.0.0.RELEASE/spring-aop-4.0.0.RELEASE.jar
...
............ (343kB)
.. (0kB)
[SUCCESSFUL ]
org.springframework#spring-aop;4.0.0.RELEASE!spring-aop.jar (710ms)
downloading
http://repo1.maven.org/maven2/org/springframework/spring-beans/4.0.0.RELEASE/spring-beans-4.0.0.RELEASE.jar
...
......................... (653kB)
.. (0kB)
[SUCCESSFUL ]
org.springframework#spring-beans;4.0.0.RELEASE!spring-beans.jar (924ms)
downloading
http://repo1.maven.org/maven2/org/springframework/spring-context/4.0.0.RELEASE/spring-context-4.0.0.RELEASE.jar
...
................................. (928kB)
.. (0kB)
[SUCCESSFUL ]
org.springframework#spring-context;4.0.0.RELEASE!spring-context.jar (940ms)
downloading
http://repo1.maven.org/maven2/org/springframework/spring-core/4.0.0.RELEASE/spring-core-4.0.0.RELEASE.jar
...
................................ (932kB)
.. (0kB)
[SUCCESSFUL ]
org.springframework#spring-core;4.0.0.RELEASE!spring-core.jar (936ms)
downloading
http://repo1.maven.org/maven2/org/springframework/spring-expression/4.0.0.RELEASE/spring-expression-4.0.0.RELEASE.jar
...
.......... (201kB)
.. (0kB)
[SUCCESSFUL ]
org.springframework#spring-expression;4.0.0.RELEASE!spring-expression.jar
(478ms)
downloading
http://repo1.maven.org/maven2/org/springframework/spring-web/4.0.0.RELEASE/spring-web-4.0.0.RELEASE.jar
...
.................................................................................................................
(646kB)
.. (0kB)
[SUCCESSFUL ]
org.springframework#spring-web;4.0.0.RELEASE!spring-web.jar (658ms)
downloading
http://==hostport==/nexus/content/repositories/cditspoc-3rd-party/com/oracle/coherence/coherence/12.1.2-0-0/coherence-12.1.2-0-0.jar
...
..............................
...............................
...............................
.............................
.............................
............ (6862kB)
.. (0kB)
[SUCCESSFUL ] com.oracle.coherence#coherence;12.1.2-0-0!coherence.jar
(9211ms)
:: resolution report :: resolve 38469ms :: artifacts dl 14820ms
---------------------------------------------------------------------
| | modules || artifacts |
| conf | number| search|dwnlded|evicted|| number|dwnlded|
---------------------------------------------------------------------
| default | 9 | 9 | 9 | 0 || 8 | 8 |
---------------------------------------------------------------------
:: retrieving :: com.att.ecom.poc#coherence_poc
confs: [default]
8 artifacts copied, 0 already retrieved (10876kB/121ms)
BUILD SUCCESSFUL
Total time: 54 seconds
[WACDTL04DK068X:~/git/atg/coherence_poc] ls lib
./ spring-beans-jar-4.0.0.RELEASE.jar*
../ spring-context-jar-4.0.0.RELEASE.jar*
coherence-jar-12.1.2-0-0.jar* spring-core-jar-4.0.0.RELEASE.jar*
commons-lang3-jar-3.1.jar* spring-expression-jar-4.0.0.RELEASE.jar*
spring-aop-jar-4.0.0.RELEASE.jar* spring-web-jar-4.0.0.RELEASE.jar*
[WACDTL04DK068X:~/git/atg/coherence_poc]
{code}
> Ivy refuses to download timestamped snapshot artifacts from a Nexus Pro
> repository
> ----------------------------------------------------------------------------------
>
> Key: IVY-1463
> URL: https://issues.apache.org/jira/browse/IVY-1463
> Project: Ivy
> Issue Type: Bug
> Components: Maven Compatibility
> Environment: Windows 7
> Reporter: David M. Karr
> Attachments: ivy-0.0.1-SNAPSHOT.xml
>
>
> I've described my problem on StackOverflow, at:
> http://stackoverflow.com/questions/21888490/ivy-wont-download-a-timestamped-snapshot-artifact-from-nexus-pro
> .
> I've followed all of the reasonable instructions I can find, but Ivy simply
> doesn't download the artifact. It doesn't report errors, it just seems to
> not try. It clearly "resolves" the artifact on the repo, but that's all.
--
This message was sent by Atlassian JIRA
(v6.2#6252)