Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
2.3.0-RC1
-
All
Description
The documentation of the makepom task is not consistent with the implementation.
Documentation:
Attribute | Description | Required |
---|---|---|
... | ... | ... |
artifactPackaging | The packaging of the artifact which is represented by the generated pom file. (since 2.2) | No, the artifact ext is taken by default. Defaults to 'pom' if no such artifact is defined. |
... | ... | ... |
Implementation:
PomModuleDescriptorWriter.java
... String packaging = options.getArtifactPackaging(); if (packaging == null) { // find artifact to determine the packaging Artifact artifact = findArtifact(md, artifactId); if (artifact == null) { // no suitable artifact found, default to 'pom' packaging = "pom"; } else { packaging = artifact.getType(); ^^^^^^^^^^^^^^^^^^ } } ...