[ARCH-64] Warning regarding missing version for maven-war-plugin Created: 02/Jul/18  Updated: 15/Mar/21  Resolved: 15/Mar/21

Status: Closed
Project: Archetypes
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Maxime Michel Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

Here's the warning I got when building the project/webapp archetype as part of 5.6.7 post-release:

[WARNING]
[WARNING] Some problems were encountered while building the effective model for groupId:artifactId-webapp:war:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-war-plugin is missing. @ groupId:artifactId-webapp:[unknown-version], /Users/maxime/Desktop/artifactId/artifactId-webapp/pom.xml, line 87, column 15
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]


 Comments   
Comment by Mikaël Geljić [ 02/Jul/18 ]

See https://git.magnolia-cms.com/projects/BUILD/repos/maven-archetypes/browse/magnolia-project-archetype/src/main/resources/archetype-resources/__rootArtifactId__-webapp/pom.xml#88

We should consider adding a project pluginManagement section to the project parent (and manage both compiler and war plugin versions there).

Generated at Sun Feb 11 23:23:11 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.