Skip to content

Commit

Permalink
Clarify that packaging is never inherited
Browse files Browse the repository at this point in the history
  • Loading branch information
kwin authored Jan 3, 2025
1 parent 1f157ad commit 0b7235c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compat/maven-model-builder/src/site/apt/index.apt
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ Maven Model Builder
({{{./xref/org/apache/maven/model/inheritance/DefaultInheritanceAssembler.html}source}}).

By default, every model field is inherited as-is from parent, with a few exceptions that are intentionally not inherited:
<<<modelVersion>>>, <<<artifactId>>>, <<<profiles>>> (injected in phase 1) and <<<prerequisites>>>.
<<<modelVersion>>>, <<<artifactId>>>, <<<packaging>>>, <<<profiles>>> (injected in phase 1) and <<<prerequisites>>>.

Notice that the 5 URLs from the model (<<<project.url>>>, <<<project.scm.connection>>>, <<<project.scm.developerConnection>>>,
<<<project.scm.url>>> and <<<project.distributionManagement.site.url>>>) have a special inheritance handling:
Expand Down

0 comments on commit 0b7235c

Please sign in to comment.