Table of Contents | ||
---|---|---|
|
Descriptors
Maven update manager uses 3 different XML documents for it's operations
...
- GAV - GAV of the entry point artifact to create a closure for
- REGEX - regEx of a artifactId to match
- VERSION_FROM VERSION_TO - in the matched artifacts, if the have version VERSION_FROM, replace it with VERSION_TO, add this artifact to the list, and resolve again, untill no more matches are found.
- -n At the end, this CLI will try to resolve the binaries and fails if some of them are not found. Use this flag to turn off this download test.
For example
mvnUpdate -c org.apache.maven:maven-core:3.0-20090128.172840-19 maven-. 3.0-SNAPSHOT 3.0-20090128.172840-19* will iterate over the list of dependencies of org.apache.maven:maven-core:3.0-20090128.172840-19, and if there are artifacts matching maven-.*, replace version 3.0-SNAPSHOT to 3.0-20090128.172840-19, add to the list and try again.
New Maven distro
apache-maven project has a new folder: src/.cd, it contains 3 files descriptors. We'll be able to generate them later on, but now it is a manual operation.
If the current version is VERSION, these files are:
- apache-maven.cd and apache-maven-VERSION.cd two identical files that describe the current version
- apache-maven-VERSION.ldl the full lock down list for this version
These 3 files are included into distribution and are used to by the MP3 to correctly update this version.