Riduidel / aadarchi

A maven archetype to generate easily projects allowing architecture description using a mix of C4, agile architecture, Asciidoc and PlantUML
https://riduidel.github.io/aadarchi/
Apache License 2.0
40 stars 12 forks source link

Why do I have to specify the version twice ? #318

Closed lhauspie closed 1 year ago

lhauspie commented 1 year ago

The command to generate the project with the maven archetype is :

$ mvn archetype:generate -DarchetypeVersion=0.1.6 -Daadarchi-version=0.1.6 -DarchetypeGroupId=io.github.Riduidel.aadarchi -DarchetypeArtifactId=archetype 

As far as I know, the archetype and other modules (like base) have exactly the same maven lifecycle.

So if you release a new version of aadarchi, the archetype version will be increased at the same time than base module for example.

So why do I have to specify the version of aadarchi dependencies ? It could be inferred from -DarchetypeVersion=0.1.6 param and if I want to specify another version I could overwrite it with the -Daadarchi-version=0.1.6 param (even if I suppose there might have breaking change between two version).

Riduidel commented 1 year ago

Fixed in #313 : archetype version is the aadarchi version without any cumbersome parameter passing