java - What is the use of the property archetypeVersion in maven? -
i learning maven creating simple project using maven-archetype-quickstart. found property called archetypeversion has default value release. know purpose of property , other possible values can contain other release.
maven has unique project identifier combination of 3 things
- group
- artifact
- version
so, archetypeversion value goes version when creating project.
for example combination of group:artifact:version be
com.test.example:myexample:1.0-snapshot most project use following versioning system convention
- snapshot
- release-candidate or rc
- release
the value of version can , above values usual convention.
snapshot means current version of code working on, unit tested , not that.
release-candidate out users acceptance test.
release can guess final version can deployed in prod.
so if running following command
mvn archetype:generate \ -darchetypegroupid=<archetype-groupid> \ -darchetypeartifactid=<archetype-artifactid> \ -darchetypeversion=<archetype-version> \ -dgroupid=<my.groupid> \ -dartifactid=<my-artifactid> you have put version want project have in <archetype-version>
Comments
Post a Comment