There is 1 update.
 
 
XWiki Commons / cid:jira-generated-image-avatar-d655c45b-8746-4bc5-bd1c-c26d8de61acb XCOMMONS-3896 Open

Stop using the Maven 2.x compatibility layer in the XAR Maven plugin

 
View issue   ยท   Add comment
 

1 update

 
cid:jira-generated-image-avatar-0e34d7c9-94f3-4401-9d12-fda43c479126 Changes by Thomas Mortagne on 10/Nov/26 19:35
 
Description: The plugin uses {{maven-compat}} APIs ({{MavenProjectBuilder}}, {{ArtifactFactory}}, {{MavenProject#createArtifacts}}, {{ArtifactResolver}}), so Maven 3.9 reports that it depends on the deprecated Maven 2.x compatibility layer, which will not be supported in Maven 4.x.

The Maven 3 Those APIs are only used by the unxar mojo to also unpack the XAR dependencies of the expanded artifact, which never unpacks anything in practice: the dependencies inherit the {{ ProjectBuilder test }} scope and Maven Resolver APIs should be used instead are then excluded by the {{runtime}} scope filter . That code is removed (the documented behavior of unxar, expanding the XAR file, does not change), along with the {{maven-compat}} dependency.