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 dcf3d70 commit 35d8d0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maven-model-builder/src/site/apt/index.apt
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,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 35d8d0e

Please sign in to comment.