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

  1. group
  2. artifact
  3. 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

  1. snapshot
  2. release-candidate or rc
  3. 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

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -