GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Site build fails: StAX tests NPE under the site lifecycle, and -Preporting requires run-its output · Issue #593 · codehaus-plexus/modello

Site build fails: StAX tests NPE under the site lifecycle, and -Preporting requires run-its output #593

New issue
Copy link
New issue
Copy link
Closed
Closed
Site build fails: StAX tests NPE under the site lifecycle, and -Preporting requires run-its output#593
Copy link
Labels
bugSomething isn't working

Description

@slachiewicz
slachiewicz
opened on Aug 19, 2026
Issue body actions

Building the site the way RELEASING.md implies fails in two independent places. Both are reproducible on
the modello-2.8.0 tag with Maven 3.9.16 on JDK 25.

1. The StAX feature tests NPE when site runs in the same invocation

mvn -Preporting clean verify                      # green
mvn -Preporting clean verify site site:stage      # FeaturesStaxGeneratorTest, FeaturesStaxDomGeneratorTest error
java.lang.NullPointerException
    at java.base/java.util.Properties.setProperty(Properties.java:231)
    at java.base/java.lang.System.setProperty(System.java:792)
    at org.codehaus.modello.generator.xml.stax.FeaturesStaxGeneratorTest.testJavaGenerator(FeaturesStaxGeneratorTest.java:60)

Line 60 is System.setProperty("version", getModelloVersion()), and getModelloVersion()
(AbstractModelloJavaGeneratorTest:100) resolves the version from the system property first and otherwise
from /META-INF/maven/org.codehaus.modello/modello-test/pom.properties. That resource only exists inside
the packaged modello-test jar. When the site lifecycle is part of the same reactor invocation the module
is consumed as target/classes, the resource is absent, getModelloVersion() returns null, and
System.setProperty throws.

The test already carries a TODO: see why without this, version system property is set to "2.4.1" value after verify, so the property hack was known to be fragile. Making getModelloVersion() fall back to a
filtered test resource, or having the test skip the setProperty when the version is null, would both fix
it.

2. -Preporting alone cannot build the site

The reporting profile binds maven-verifier-plugin:verify at pre-site against
src/test/verifier/site-verifications.xml, which requires target/it/features/target/site/index.html:

Failed to execute goal org.apache.maven.plugins:maven-verifier-plugin:1.1:verify (features)
on project modello-maven-plugin: There are test failures

That file is produced by the run-its profile, as the comment in the POM says. So -Preporting on its own
always fails at modello-maven-plugin, and the working incantation is -Preporting,run-its. Worth either
documenting that in RELEASING.md or making the verification conditional on the ITs having run — a
release-time site build should not fail on a check for output nobody asked to generate.

Found while publishing the 2.8.0 site.

This issue was created with AI assistance.

Activity

  1. slachiewicz
    added
    bugSomething isn't working
    on Aug 19, 2026
  2. slachiewicz
    closed this as completedin 15d57faon Aug 19, 2026
  3. pzygielo
    added a commit that references this issue on Aug 20, 2026

    Fix site build for codehaus-plexus#593

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.