Hi,
I have a multi module build using maven 2.2.1 and artifactory 2.2.0.
The first submodule requests log4j 1.2.9 resulting in the files [1]
downloaded correctly.
The second submodule request log4j 1.2.14 resulting in some files added [2]
As you can see maven now creates a maven-metadata-central.xml [3] which only
contains log4j 1.2.15+16.
The build fails with:
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Couldn't find a version in [1.2.15, 1.2.16] to match range [1.2.9,1.2.9]
log4j:log4j:jar:null
But Version 1.2.9 is present in the file system!
I wipe out the local repo before the nightly build, this problem only
apperas every two or three weeks and at the moment I cannot say why. But at
the moment I have a VMWare Snapshot where I can reproduce it.
It also appereas also at some other artifacts, especially struts and
cobertura-maven-plugin.
***** [1] *****
D:\mavenrepo\log4j\log4j>dir /s
Datenträger in Laufwerk D: ist HUDSONDATA2
Datenträgernummer: F020-662E
Verzeichnis von D:\mavenrepo\log4j\log4j
21.04.2010 12:15 <DIR> .
21.04.2010 12:15 <DIR> ..
21.04.2010 12:16 <DIR> 1.2.9
0 Datei(en) 0 Bytes
Verzeichnis von D:\mavenrepo\log4j\log4j\1.2.9
21.04.2010 12:16 <DIR> .
21.04.2010 12:16 <DIR> ..
21.04.2010 12:16 352.291 log4j-1.2.9.jar
21.04.2010 12:16 40 log4j-1.2.9.jar.sha1
21.04.2010 12:16 40 log4j-1.2.9.jar.tmp.sha1.tmp
21.04.2010 12:15 144 log4j-1.2.9.pom
21.04.2010 12:15 40 log4j-1.2.9.pom.sha1
21.04.2010 12:15 40 log4j-1.2.9.pom.tmp.sha1.tmp
6 Datei(en) 352.595 Bytes
***** [2] *****
D:\mavenrepo\log4j\log4j>dir /s
Datenträger in Laufwerk D: ist HUDSONDATA2
Datenträgernummer: F020-662E
Verzeichnis von D:\mavenrepo\log4j\log4j
21.04.2010 12:18 <DIR> .
21.04.2010 12:18 <DIR> ..
21.04.2010 12:18 <DIR> 1.2.14
21.04.2010 12:18 <DIR> 1.2.9
21.04.2010 12:18 352 maven-metadata-central.xml
21.04.2010 12:18 40 maven-metadata-central.xml.sha1
2 Datei(en) 392 Bytes
Verzeichnis von D:\mavenrepo\log4j\log4j\1.2.14
21.04.2010 12:18 <DIR> .
21.04.2010 12:18 <DIR> ..
21.04.2010 12:18 2.374 log4j-1.2.14.pom
21.04.2010 12:18 40 log4j-1.2.14.pom.sha1
2 Datei(en) 2.414 Bytes
Verzeichnis von D:\mavenrepo\log4j\log4j\1.2.9
21.04.2010 12:18 <DIR> .
21.04.2010 12:18 <DIR> ..
21.04.2010 12:16 352.291 log4j-1.2.9.jar
21.04.2010 12:16 40 log4j-1.2.9.jar.sha1
21.04.2010 12:15 144 log4j-1.2.9.pom
21.04.2010 12:15 40 log4j-1.2.9.pom.sha1
4 Datei(en) 352.515 Bytes
***** [3] *****
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.15</version>
<versioning>
<release>1.2.16</release>
<versions>
<version>1.2.15</version>
<version>1.2.16</version>
</versions>
<lastUpdated>20100331042604</lastUpdated>
</versioning>
</metadata>
I am not sure which points to investigate next, it's such a strange bug.
Best Regards
Florian
--
View this message in context:
http://old.nabble.com/maven-metadata-central.xml-is-missing-versions-in-local-repo-tp28288000p28288000.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]