You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by lo...@jpmchase.com on 2008/03/25 15:50:49 UTC
Fw: Problem in updating SNAPSHOT libraries from remote repository
Hi All,
Can you please suggest me a solution for this issue. I'm really waiting
for your inputs upon this.
Thanks & Regards,
Logu Rajamanickam
----- Forwarded by Logachandru X Rajamanickam/JPMCHASE on 03/25/2008 09:48
AM -----
Logachandru X Rajamanickam/JPMCHASE
03/24/2008 02:20 PM
To
"Maven Users List" <us...@maven.apache.org>
cc
Subject
Re: Problem in updating SNAPSHOT from remote repo
Hi,
I tried with Maven-2.0.8, but still am getting the same result - the lower
version of the SNAPSHOT library is getting downloaded instead of the
latest one.
Moreover in the path of the library which I have deployed in our internal
repository and is referred as a dependency in my POM, I could see that the
maven-metadata.xml inside the SNAPSHOT directory has the lastUpdated tag
as <lastUpdated>20080215192313</lastUpdated> whereas the one outside the
SNAPSHOT directory has the lastUpdated tag as
<lastUpdated>20070920200433</lastUpdated>. For more clarity, I've put it
as below.
<library-group>/<library-artifact>/maven-metadata.xml
<metadata>
<groupId>library-group</groupId>
<artifactId>library-artifact</artifactId>
<version>SNAPSHOT</version>
?
<versioning>
?
<versions>
<version>SNAPSHOT</version>
</versions>
<lastUpdated>20070920200433</lastUpdated>
</versioning>
</metadata>
<library-group>/<library-artifact>/SNAPSHOT/maven-metadata.xml
<metadata>
<groupId>library-group</groupId>
<artifactId>library-artifact</artifactId>
<version>SNAPSHOT</version>
?
<versioning>
?
<snapshot>
<timestamp>20080215.192313</timestamp>
<buildNumber>3</buildNumber>
</snapshot>
<lastUpdated>20080215192313</lastUpdated>
</versioning>
</metadata>
I think it is pulling out the version based on the <lastUpdated> tag on
the maven-metadata.xml outside the SNAPSHOT directory. Can you please
suggest why the maven-metadata.xml files(inside & outside SNAPSHOT
directory) are not sync with each other. Please let me know what needs to
be done for resolving this issue.
Thanks & Regards,
Logu Rajamanickam
"Wayne Fay" <wa...@gmail.com>
03/19/2008 02:08 PM
Please respond to
"Maven Users List" <us...@maven.apache.org>
To
"Maven Users List" <us...@maven.apache.org>
cc
Subject
Re: Problem in updating SNAPSHOT from remote repo
There are a lot of bugs in 2.0.4 which have been resolved in later
builds. I don't know if anyone can tell you (without browsing release
notes and JIRA) if this was a bug that was posted and resolved or not.
Why don't you give 2.0.8 a try and see if it does things differently?
Or wait for 2.0.9 which should be released soonish?
Wayne
On 3/19/08, logachandru.x.rajamanickam@jpmchase.com
<lo...@jpmchase.com> wrote:
> Hello All,
>
> I see a weird situation with regards to updating the SNAPSHOT version of
> our internal library from our remote repo. I have three versions of
> SNAPSHOTS in the remote repository, when it is downloading onto the
local
> repository it downloads the lower version instead of getting the latest
> version. When I execute 'mvn -X clean install', I could see in the log
> that the lower version of SNAPSHOT for the application is only being
> fetched up instead of the latest one.
>
> I'm using Maven-2.0.4 and am wondering if there are any bugs with this
> version which got updated in any of the later versions. Please help me
in
> resolving this issue.
>
>
> // In Remote Repository
>
> internal_app-20070920.200433-1.jar 48.8 kb Thu, 20 Sep 2007
20:04:33
> GMT
> ..-20070920.200433-1.jar.md5 0.1 kb Thu, 20 Sep 2007 20:04:33
> GMT
> ..-20070920.200433-1.jar.sha1 0.1 kb Thu, 20 Sep 2007 20:04:33
> GMT
> ..-20070920.200433-1.pom 0.2 kb Thu, 20 Sep 2007 20:04:33 GMT
> ..-20070920.200433-1.pom.md5 0.1 kb Thu, 20 Sep 2007 20:04:33
> GMT
> ..-20070920.200433-1.pom.sha1 0.1 kb Thu, 20 Sep 2007 20:04:33
> GMT
> internal_app-20080118.162518-2.jar 35.4 kb Fri, 18 Jan 2008
> 16:25:18 GMT
> ..-20080118.162518-2.jar.md5 0.1 kb Fri, 18 Jan 2008 16:25:18
> GMT
> ..-20080118.162518-2.jar.sha1 0.1 kb Fri, 18 Jan 2008 16:25:18
> GMT
> ..-20080118.162518-2.pom 0.2 kb Fri, 18 Jan 2008 16:25:18 GMT
> ..-20080118.162518-2.pom.md5 0.1 kb Fri, 18 Jan 2008 16:25:18
> GMT
> ..-20080118.162518-2.pom.sha1 0.1 kb Fri, 18 Jan 2008 16:25:18
> GMT
> internal_app-20080215.192313-3.jar 236.5 kb Fri, 15 Feb 2008
> 19:23:13 GMT
> ..-20080215.192313-3.jar.md5 0.1 kb Fri, 15 Feb 2008 19:23:13
> GMT
> ..-20080215.192313-3.jar.sha1 0.1 kb Fri, 15 Feb 2008 19:23:13
> GMT
> ..-20080215.192313-3.pom 0.2 kb Fri, 15 Feb 2008 19:23:13 GMT
> ..-20080215.192313-3.pom.md5 0.1 kb Fri, 15 Feb 2008 19:23:13
> GMT
> ..-20080215.192313-3.pom.sha1 0.1 kb Fri, 15 Feb 2008 19:23:13
> GMT
> maven-metadata.xml 0.3 kb Fri, 15 Feb 2008 19:23:13 GMT
> maven-metadata.xml.md5 0.1 kb Fri, 15 Feb 2008 19:23:13 GMT
> maven-metadata.xml.sha1
>
> // In the Build Log
>
> Downloading:
>
http://remote-repo:16888/internal-snapshots/component/internal_app/SNAPSHOT/internal_app-20070920.200433-1.pom
> 297/297b
> 297b downloaded
>
> Downloading:
>
http://remote-repo:16888/internal-snapshots/component/internal_app/SNAPSHOT/internal_app-20070920.200433-1.jar
> 4/48K
> 8/48K
> .
> .
> 48/48K
> 48K downloaded
>
> //In Local Repository after execution mvn -X clean install command
>
> internal_app-20070920.200433-1.jar 48.8 kb Thu, 20 Sep 2007 20:04:33
> GMT
> ..-20070920.200433-1.jar.md5 0.1 kb Thu, 20 Sep 2007 20:04:33
> GMT
> ..-20070920.200433-1.jar.sha1 0.1 kb Thu, 20 Sep 2007 20:04:33
> GMT
> ..-20070920.200433-1.pom 0.2 kb Thu, 20 Sep 2007 20:04:33 GMT
> ..-20070920.200433-1.pom.md5 0.1 kb Thu, 20 Sep 2007 20:04:33
> GMT
> ..-20070920.200433-1.pom.sha1 0.1 kb Thu, 20 Sep 2007 20:04:33
> GMT
>
>
> Thanks & Regards,
> Logu Rajamanickam
>
> -----------------------------------------
> This communication is for informational purposes only. It is not
> intended as an offer or solicitation for the purchase or sale of
> any financial instrument or as an official confirmation of any
> transaction. All market prices, data and other information are not
> warranted as to completeness or accuracy and are subject to change
> without notice. Any comments or statements made herein do not
> necessarily reflect those of JPMorgan Chase & Co., its subsidiaries
> and affiliates.
>
> This transmission may contain information that is privileged,
> confidential, legally privileged, and/or exempt from disclosure
> under applicable law. If you are not the intended recipient, you
> are hereby notified that any disclosure, copying, distribution, or
> use of the information contained herein (including any reliance
> thereon) is STRICTLY PROHIBITED. Although this transmission and any
> attachments are believed to be free of any virus or other defect
> that might affect any computer system into which it is received and
> opened, it is the responsibility of the recipient to ensure that it
> is virus free and no responsibility is accepted by JPMorgan Chase &
> Co., its subsidiaries and affiliates, as applicable, for any loss
> or damage arising in any way from its use. If you received this
> transmission in error, please immediately contact the sender and
> destroy the material in its entirety, whether in electronic or hard
> copy format. Thank you.
>
> Please refer to http://www.jpmorgan.com/pages/disclosures for
> disclosures relating to UK legal entities.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org