Skip to content

Upgrade Fess dependency to version 15.3.2#12

Merged
marevol merged 4 commits intomasterfrom
claude/upgrade-fess-15-3-2-011CUvKKcRE3nXJQ7CVjzFLV
Nov 9, 2025
Merged

Upgrade Fess dependency to version 15.3.2#12
marevol merged 4 commits intomasterfrom
claude/upgrade-fess-15-3-2-011CUvKKcRE3nXJQ7CVjzFLV

Conversation

@marevol
Copy link
Copy Markdown
Contributor

@marevol marevol commented Nov 8, 2025

  • Update fione version to 15.3.2-SNAPSHOT
  • Update fess-parent dependency to 15.3.2
  • Migrate javax.* packages to jakarta.* for Java EE 9+ compatibility
    • javax.annotation.* → jakarta.annotation.*
    • javax.validation.* → jakarta.validation.*
    • javax.servlet.* → jakarta.servlet.*
    • javax.transaction-api → jakarta.transaction-api
  • Updated 10 Java source files with jakarta imports

This upgrade aligns with Fess 15.x which requires:

  • Java 21
  • OpenSearch 3.x
  • Tomcat 10.x (Jakarta EE 9+)

- Update fione version to 15.3.2-SNAPSHOT
- Update fess-parent dependency to 15.3.2
- Migrate javax.* packages to jakarta.* for Java EE 9+ compatibility
  - javax.annotation.* → jakarta.annotation.*
  - javax.validation.* → jakarta.validation.*
  - javax.servlet.* → jakarta.servlet.*
  - javax.transaction-api → jakarta.transaction-api
- Updated 10 Java source files with jakarta imports

This upgrade aligns with Fess 15.x which requires:
- Java 21
- OpenSearch 3.x
- Tomcat 10.x (Jakarta EE 9+)
- Upgrade JDK from 17 to 21 (required for Fess 15.3.2)
- Update GitHub Actions versions: checkout@v2→v4, setup-java@v2→v4, cache@v1→v4
- Add workflow_dispatch for manual workflow runs
- Add timeout-minutes: 15 to prevent hanging builds
- Add PARENT_BRANCH environment variable for fess-parent checkout
- Add -Dgpg.skip=true to fess-parent installation
- Add source:jar and javadoc:jar goals to build step
- Keep ubuntu-latest runner (no macOS-specific requirements)

Based on https://github.com/codelibs/fess/blob/master/.github/workflows/maven.yml
The deps.xml file attempts to download fione-serving 3.40.0.0-SNAPSHOT
from a 2023-03-11 timestamp that is no longer available in the Sonatype
snapshot repository, causing build failures:

  Can't get https://oss.sonatype.org/content/repositories/snapshots/
  org/codelibs/fione/fione-serving/3.40.0.0-SNAPSHOT/
  fione-serving-3.40.0.0-20230311.060953-1.jar

This dependency should be managed through pom.xml dependencies instead
of downloading via Ant script. Commented out the deps.xml call to allow
builds to proceed.

Fixes: mvn antrun:run build failure in GitHub Actions
In Fess 15.3.2, the org.codelibs.fess.Constants class constructor
became private, preventing inheritance. Updated Constants to:

- Remove inheritance from org.codelibs.fess.Constants
- Add UTF_8_CHARSET and UTF_8 constants that were previously inherited
- Use StandardCharsets.UTF_8 instead of custom Charset implementation
- Keep all Fione-specific constants (REGRESSION_TYPE, MULTICLASS_TYPE, etc.)

These constants are used throughout the codebase in:
- DataSet.java
- StringCodecUtil.java
- ProjectHelper.java
- PythonHelper.java
- AdminEasymlAction.java

Fixes: Constants() has private access in org.codelibs.fess.Constants
@marevol marevol merged commit eadc3bc into master Nov 9, 2025
1 check passed
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