Hi all,
now I've a great link to Dokumentation about it:
http://blogs.codehaus.org/people/brett/archives/maven.html#001045_improved_snapshots_in_maven2
Thanks Sanjay!!
But it doesn't work as I understand! If i execute deploy, mvn takes the
"distributionManagement.snapshotRepository" and creates a version with
timestamp and build number. If I run deploy again in the "snapshotRepository"
is another version with the next build number. The "maven-metadata.xml" is also
updated:
<metadata>
<groupId>webcsc</groupId>
<artifactId>ccbapi</artifactId>
<version>1.0-SNAPSHOT</version>
<versioning>
<snapshot>
<timestamp>20060127.071605</timestamp>
<buildNumber>2</buildNumber>
</snapshot>
<lastUpdated>20060127071605</lastUpdated>
</versioning>
</metadata>
So, now i've a webapp, depends on this SNAPSHOT:
<dependency>
<groupId>webcscs</groupId>
<artifactId>ccbapi</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>runtime</scope>
</dependency>
If I call package from this webapp mvn tells me:
[INFO] Failed to resolve artifact.
GroupId: webcscs
ArtifactId: ccbapi
Version: 1.0-SNAPSHOT
Reason: Unable to download the artifact from any repository
webcscs:ccbapi:1.0-SNAPSHOT:jar
from the specified remote repositories:
central (http://repo1.maven.org/maven2),
kdg_release (file:///L:/mvnReleaseRepo),
kdg_snapshot (file:///L:/mvnSnapshotRepo)
But in the "kdg_snapshot " there is are the SNAPSHOTS Versions!!! Why does mvn
not resolve the SNAPSHOT? where is the mistake?
Thanks for your help!!
Fredy
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]