Skip to content

Upgrade parent to maven-shared-components 49 - #77

Merged
slachiewicz merged 1 commit into
apache:maven-reporting-api-3.xfrom
slachiewicz:parent-49
Aug 4, 2026
Merged

Upgrade parent to maven-shared-components 49#77
slachiewicz merged 1 commit into
apache:maven-reporting-api-3.xfrom
slachiewicz:parent-49

Conversation

@slachiewicz

Copy link
Copy Markdown
Member

This branch's Jenkins build is currently failing:

[ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.13:check (rat-check)
        on project maven-reporting-api: Too many files with unapproved license: 1

The cause is external to the repository. The ASF shared Jenkins library now provisions the Maven wrapper into the workspace before building (apache/maven-jenkins-lib#22), which writes .mvn/wrapper/maven-wrapper.properties. That file has no licence header, and the apache-rat 0.13 pinned by parent 34 counts it as unapproved.

Verified locally, generating the wrapper exactly as CI does and running the check both ways:

parent rat result
34 (current) 0.13 Unapproved: 1, unknown: 1rat.txt names .mvn/wrapper/maven-wrapper.properties
49 (this PR) 0.16.1 Unapproved: 0, unknown: 0, approved: 15

mvnw and mvnw.cmd are fine either way — the wrapper ships those with ASF headers; only the .properties file lacks one.

The source changes are spotless from the new parent, applied rather than hand-edited: the licence header moves above the package statement, imports are reordered, and the modern Maven brace/spacing style is applied. I removed the old post-package header blocks so the header is not duplicated — spotless adds the new one at the top but does not remove the old one. There are no code changes.

spotless:check and apache-rat:check both pass locally. I could not run the full build here: the branch targets Java 7 and my local JDK is too new (release version 7 not supported); CI builds it on JDK 8/11/17.

maven-reporting-impl-3.x is on parent 34 as well and will likely need the same treatment, though its build currently fails earlier on a missing doxia-sink-api:1.12.0-SNAPSHOT. Context in apache/maven#12676.

The Jenkins shared library now provisions the Maven wrapper into the
workspace before building, which writes .mvn/wrapper/maven-wrapper.properties.
That file carries no licence header, and the apache-rat 0.13 pinned by
parent 34 counts it as unapproved, so the branch build fails with

  Too many files with unapproved license: 1

Parent 49 brings apache-rat 0.16.1, which does not. Verified locally by
generating the wrapper and running the check both ways: parent 34 gives
"Unapproved: 1, unknown: 1" naming .mvn/wrapper/maven-wrapper.properties,
parent 49 gives "Unapproved: 0".

The source changes are spotless from the new parent, applied rather than
hand-edited: the licence header moves above the package statement, imports
are reordered, and the modern Maven brace and spacing style is applied. The
old post-package header blocks are removed so the header is not duplicated.
No code changes.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@slachiewicz
slachiewicz merged commit 7786f38 into apache:maven-reporting-api-3.x Aug 4, 2026
1 check failed
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown

@slachiewicz The PR can't be associated to a milestone, because there are multiple open milestones. Please add the text "branch: maven-reporting-api-3.x" to the description to the milestone where this PR belongs to.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant