Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-3896

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

    XMLWordPrintable

Details

    • Unknown

    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.

      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 test scope and 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.

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            tmortagne Thomas Mortagne
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: