Skip to content

enable build with Maven 4#1259

Open
hboutemy wants to merge 1 commit intomasterfrom
maven4-enabled
Open

enable build with Maven 4#1259
hboutemy wants to merge 1 commit intomasterfrom
maven4-enabled

Conversation

@hboutemy
Copy link
Copy Markdown
Member

@hboutemy hboutemy commented Apr 3, 2026

build with Maven 4 in CI, to check that maven-site-plugin works with Maven 4

and complete the table on https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=406620656#Maven4.0.0GAchecklist-Maven4API

@Bukama
Copy link
Copy Markdown
Contributor

Bukama commented May 10, 2026

I checked the build and collected some information from the logs

[ERROR] The following builds failed:
[ERROR] *  default-reports\pom.xml
[ERROR] *  inheritance-interpolation\pom.xml
[ERROR] *  inheritedReports\pom.xml
[ERROR] *  site-sd-stagingSiteURL\pom.xml

default-reports

Assertion failed: 

assert new File( sitedir, 'plugin-management.html' ).exists()
       |         |                                   |
       |         |                                   false
       |         D:\Github\Maven\maven-site-plugin\target\it\default-reports\target\site
       D:\Github\Maven\maven-site-plugin\target\it\default-reports\target\site\plugin-management.html

only the following files exists

  • depdency-info.html
  • plugins.html
  • project-info.html
  • summary.html

I have something in mind, that Maven 4 has no pluginManagement section by default? And as the default value for "skip If empty" is true, it would not get generated.

When executed with Maven 3.9.15 the report is generated and contains 4 plugins.

image

inheritance-interpolation

Assertion failed: 

assert childContent.contains( 'project.artifactId = child' )
       |            |
       |            false
       '<!DOCTYPE html>\r\n\r\n\r\n<!--\r\n | Generated by Apache Maven Doxia Site Renderer 2.1.0 from src/site/apt/index.apt at 2026-05-10\r\n | Rendered using Apache Maven Fluido Skin 2.0.0-M9\r\n-->\r\n<html xmlns="http://www.w3.org/1999/xhtml" lang="en">\r\n  <head>\r\n    <meta charset="UTF-8" />\r\n    <meta name="viewport" content="width=device-width, initial-scale=1" />\r\n    <meta name="generator" content="Apache Maven Doxia Site Renderer 2.1.0" />\r\n    <meta name="author" content="Hervé Boutemy" />\r\n    <meta name="date" content="2016-01-10" />\r\n    <title>POMs and Site Model Inheritance and Interpolation – child</title>\r\n    <link rel="stylesheet" href="./css/apache-maven-fluido-2.0.0-M9.min.css" />\r\n    <link rel="stylesheet" href="./css/site.css" />\r\n    <link rel="stylesheet" href="./css/print.css" media="print" />\r\n    <script src="./js/apache-maven-fluido-2.0.0-M9.min.js"></script>\r\n  </head>\r\n  <body>\r\n    <div class="container-fluid container-fluid-top">\r\n      <header>\r\n        <div id="banner">\r\n          <div class="pull-left"><div id="bannerLeft"><h1>child</h1></div></div>\r\n          <div class="pull-right"></div>\r\n          <div class="clear"><hr/></div>\r\n        </div>\r\n\r\n        <div id="breadcrumbs">\r\n          <ul class="breadcrumb">\r\n        <li id="publishDate">Last Published: 1980-02-01<span class="divider">|</span>\r\n</li>\r\n          <li id="projectVersion">Version: 1.0-SNAPSHOT</li>\r\n        <li class="pull-right"><a href="./">child</a></li>\r\n          </ul>\r\n        </div>\r\n      </header>\r\n      <div class="row-fluid">\r\n        <header id="leftColumn" class="span2">\r\n          <nav class="well sidebar-nav">\r\n  <ul class="nav nav-list">\r\n   <li class="nav-header">Parent Project</li>\r\n    <li><a href="../index.html">reactor-parent</a></li>\r\n  </ul>\r\n          </nav>\r\n          <div class="well sidebar-nav">\r\n            <div id="poweredBy">\r\n              <div class="clear"></div>\r\n              <div class="clear"></div>\r\n<a href="https://maven.apache.org/" class="builtBy" target="_blank"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>\r\n            </div>\r\n          </div>\r\n        </header>\r\n        <main id="bodyColumn" class="span10">\r\n<section><a id="POMs_and_Site_Model_Inheritance_and_Interpolation"></a>\r\n<h1>POMs and Site Model Inheritance and Interpolation</h1>\r\n<ul>\r\n<li><a href="./pom.html"> POM Inheritance and Interpolation</a></li>\r\n<li>Site Model Inheritance and Interpolation: see this page</li></ul></section>\r\n        </main>\r\n      </div>\r\n    </div>\r\n    <hr/>\r\n    <footer>\r\n      <div class="container-fluid">\r\n        <div class="row-fluid">\r\n            <p>©      2026\r\n</p>\r\n        </div>\r\n      </div>\r\n    </footer>\r\n<script>\r\n  if(anchors) {\r\n    anchors.add();\r\n  }\r\n</script>\r\n  </body>\r\n</html>\r\n'

inheritedReports

no index file in parent or is a directory

Means that there should be a index.html be created, but it's not.

site-sd-stagingSiteURL

[ERROR] The build could not read 1 project -> [Help 1]
org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs

[ERROR]   The project [inherited]:MSITE-649:jar:[inherited] (D:\Github\Maven\maven-site-plugin\target\it\site-sd-stagingSiteURL\pom.xml) has 1 error
[ERROR]     The parents form a cycle: org.apache.maven.plugins.site.its:MSITE-649-parent:1.0-SNAPSHOT -> D:\Github\Maven\maven-site-plugin\target\it\site-sd-stagingSiteURL\parent\pom.xml -> org.apache:apache:32 -> D:\Github\Maven\maven-site-plugin\target\it\site-sd-stagingSiteURL\pom.xml -> org.apache.maven.plugins.site.its:MSITE-649-parent:1.0-SNAPSHOT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants