Skip to content

Bump jaxb to latest - #414

Merged
Naenyn merged 2 commits into
uPortal-Project:masterfrom
Naenyn:chore/update_jaxb
Nov 13, 2026
Merged

Naenyn merged 2 commits into
uPortal-Project:masterfrom
Naenyn:chore/update_jaxb

Conversation

@Naenyn

@Naenyn Naenyn commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@Naenyn
Naenyn force-pushed the chore/update_jaxb branch from 1a8fb57 to b3744ff Compare November 6, 2026 21:01
@Naenyn

Naenyn commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

Rebased onto current master (resolved the joda-time conflict, keeping 2.15.0) and trimmed two changes that were not part of the jaxb bump:

  • Reverted the lesscss-maven-plugin change (1.7.0.1.1 to 1.3.3). It was an accidental downgrade.
  • Removed the jackson.version property. Nothing in this POM referenced it, and Jackson still resolves to 2.18.6 through the parent's BOM.

The PR is now only the jaxb move: jaxb2basicsVersion 0.12.0 to 2.0.16, the org.jvnet.jaxb coordinates, and maven-jaxb2-plugin replaced by jaxb-maven-plugin.

Verified locally on Java 11 with Maven 3.9.16: mvn package succeeds, 31 tests pass with 0 failures, and 410 sources are generated. Note that org.jvnet.jaxb:jaxb2-basics-runtime:2.0.16 still declares a dependency on org.jvnet.jaxb2_commons:jaxb2-basics-runtime:2.0.12. That jar is an 8-file relocation stub, so it is expected and harmless.

CI will only go green once #429 (Maven pin) is merged, since newer runner Maven rejects the duplicate maven-antrun-plugin declaration. This supersedes #422.

@Naenyn

Naenyn commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

This should pass again once #429 is in

@Naenyn
Naenyn merged commit 6370547 into uPortal-Project:master Nov 13, 2026
4 checks passed
@Naenyn
Naenyn deleted the chore/update_jaxb branch November 13, 2026 23:26
Naenyn added a commit to Naenyn/CalendarPortlet that referenced this pull request Nov 14, 2026
CoursesCalendarAdapter had three problems after the ical4j 4.x migration:

- It added properties and events through calendar.getProperties() and
  getComponents(), which are unmodifiable in 4.x, so retrieving a
  course calendar threw UnsupportedOperationException. Add them through
  the Calendar API instead.
- It discarded the result of every props.add(...). PropertyList.add()
  returns a new list in 4.x, so events were built with no properties.
  Capture the results.
- It computed the course's time zone and then ignored it, building
  DTSTART, DTEND and the recurrence end as UTC Instants. A WEEKLY
  recurrence cannot be expanded from an Instant at all (it throws
  UnsupportedTemporalTypeException, which the content processor logs
  and skips), and expanding in UTC would shift a class's local time
  across a daylight saving change. Anchor all three in the course's
  own zone. selectTimeZone() became selectZone() and no longer needs
  the ical4j timezone registry.

Add CoursesCalendarAdapterTest: one test checks the assembled calendar
and its event, the other expands a weekly Monday 8 PM Pacific course
across the 2026-03-08 DST change and checks every instance stays at
8 PM local on a Monday. Both failed before the fix.

These tests need jaxb2-basics-runtime >= 0.13 to resolve the
courses-portlet-api 2.1.1 model (JAXBToStringStrategy.getInstance()),
which is the jaxb update in uPortal-Project#414. They fail on the pre-uPortal-Project#414 pom with a
NoSuchMethodError and pass once it is merged.
Naenyn added a commit to Naenyn/CalendarPortlet that referenced this pull request Nov 14, 2026
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