Question

In our project, we have multiple branches for our main features. As we develop, we want our repository to contain snapshots of the APIs in each branch, so that if a branch depends on another, it can easily get its APIs from the repository. However, we want it to hold multiple snapshot versions, so that if one snapshot breaks something, they can refer to an older snapshot. Our potential naming scheme goes like this

example-1.0-SNAPSHOT-01.jar

example-1.0-SNAPSHOT-02.jar

etc...

Most POM files will use LATEST for the version reference of these snapshot jars.

Anyways, my question is, how exactly does maven determine the LATEST version? Does it go off just the version number (which I think would just be 1.0 for both SNAPSHOT-01 and SNAPSHOT-02) or does it also incorporate a time-stamp?

Était-ce utile?

La solution

repository management system (for example nexus) manages snapshots the latest is named as -SNAPSHOT.jar generally and rest of them have timestamp in the file name

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top