Actually, please disregard the failure reported in my previous message, my 
mistake.
The command 'mvn package' passes, 'mvn package test' fails due to the portable 
build
but we already knew that.

I can (at least) report that both the build of PR 649 and version 3 succeeds 
with the
latest JDK SE 17.0.21.1, the latest version available from Oracle, following my 
local
upgrade.

On 11/21/26 14:01, Murray Altheim wrote:
Hi Arturo,

I checked out the PR, the results were I suppose as expected:

     git clone https://github.com/apache/jspwiki.git
     cd jspwiki
     git fetch origin pull/649/head:pr-649
     git checkout pr-649

     mvn package

[...]
[INFO] jspwiki-it-test-cma-jdbc ........................... SUCCESS [  2.891 s]
[INFO] Apache JSPWiki bill of materials ................... SUCCESS [  0.029 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  04:03 min
[INFO] Finished at: 2026-11-21T17:40:37+13:00
[INFO] ------------------------------------------------------------------------

success building, but:

    mvn clean package test

results in the portable build failing:

[...]
[INFO] Apache JSPWiki adapters for pre-public api ......... SUCCESS [  2.073 s]
[ERROR] Apache JSPWiki Main War ............................ FAILURE [ 22.686 s]
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  03:36 min
[INFO] Finished at: 2026-11-21T17:49:54+13:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.11.0:unpack (unpack-wikipages-private) on project jspwiki-war: Artifact has not been packaged yet. When used on reactor artifact, unpack should be executed after packaging: see MDEP-98. -> [Help 1]

This again on Java 17.0.17, Maven 3.10.1 on Ubuntu Linux 24.04.4 LTS.

Note that I will subsequently be upgrading my Java to JDK 17.0.21.1 as part
of the recent security update.

On 11/21/26 00:27, Arturo Bernal via dev wrote:
Hi Murray,

Thanks for confirming. Removing only the duplicate dependency is not enough
with Maven 3.10, because the JSP check of jspwiki-war then fails with the
117 errors you saw (the jspc plugin picks the old ecj 4.6.1 first).

Could you try the whole branch of PR 649 instead?
https://github.com/apache/jspwiki/pull/649 It contains both changes: the
duplicate commons-text declaration removed from jspwiki-markdown, and ecj
3.21.0 declared first in the jspc plugin of jspwiki-war. With the 2.12.6
RC1 source plus those two changes, mvn clean install passes with Maven
3.10.1 and with 3.9.16 here, and its CI is green.

If it still fails for you, please send the output, since a different JDK
may behave differently.



Arturo


On Fri, Nov 20, 2026 at 9:55 AM Murray Altheim <[email protected]> wrote:

I can concur with Arturo's results. On removing the duplicate POM entry the
build fails with 117 errors, e.g.,

[...]

SEVERE: Compilation error
java.util.concurrent.ExecutionException:
org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: [22] in the generated java file:
[/home/altheim/workspaces/workspace-jspwiki/jspwiki-builder-2.12.6/jspwiki-war/target/ignore/jsp/templates/raw/ViewTemplate_jsp.java]
Syntax error, parameterized types are only available if source level is
1.5 or greater

An error occurred at line: [24] in the generated java file:
[/home/altheim/workspaces/workspace-jspwiki/jspwiki-builder-2.12.6/jspwiki-war/target/ignore/jsp/templates/raw/ViewTemplate_jsp.java]
Syntax error, parameterized types are only available if source level is
1.5 or greater

An error occurred at line: [26] in the generated java file:
[/home/altheim/workspaces/workspace-jspwiki/jspwiki-builder-2.12.6/jspwiki-war/target/ignore/jsp/templates/raw/ViewTemplate_jsp.java]
Syntax error, parameterized types are only available if source level is
1.5 or greater

An error occurred at line: [29] in the generated java file:
[/home/altheim/workspaces/workspace-jspwiki/jspwiki-builder-2.12.6/jspwiki-war/target/ignore/jsp/templates/raw/ViewTemplate_jsp.java]
'<>' operator is not allowed for source level below 1.7

An error occurred at line: [29] in the generated java file:
[/home/altheim/workspaces/workspace-jspwiki/jspwiki-builder-2.12.6/jspwiki-war/target/ignore/jsp/templates/raw/ViewTemplate_jsp.java]
Incorrect number of arguments for type HashSet<E>; it cannot be
parameterized with arguments <>

An error occurred at line: [43] in the generated java file:
[/home/altheim/workspaces/workspace-jspwiki/jspwiki-builder-2.12.6/jspwiki-war/target/ignore/jsp/templates/raw/ViewTemplate_jsp.java]
Syntax error, parameterized types are only available if source level is
1.5 or greater

An error occurred at line: [47] in the generated java file:
[/home/altheim/workspaces/workspace-jspwiki/jspwiki-builder-2.12.6/jspwiki-war/target/ignore/jsp/templates/raw/ViewTemplate_jsp.java]
Syntax error, parameterized types are only available if source level is
1.5 or greater

An error occurred at line: [51] in the generated java file:
[/home/altheim/workspaces/workspace-jspwiki/jspwiki-builder-2.12.6/jspwiki-war/target/ignore/jsp/templates/raw/ViewTemplate_jsp.java]
Syntax error, parameterized types are only available if source level is
1.5 or greater

[...]

[ERROR] Apache JSPWiki Main War ............................ FAILURE [
11.089 s]

[...]

Cheers,

Murray

On 11/20/26 16:33, Arturo Bernal via dev wrote:
Hi all,

An update on Murray's build error, now tested with Maven 3.10.1. The
2.12.6-RC1 source fails there at two points, and Maven 3.9 builds both
fine:

1. jspwiki-markdown declares commons-text twice, which Maven 3.10
rejects.
This is the error Murray sent, and it is also in 2.12.5.

2. Once that is fixed, the JSP check of jspwiki-war fails with 117
errors.
The jspc plugin has two ecj compilers in its class path: Maven 3.9 puts
ecj
3.21.0 first, Maven 3.10 puts the old ecj 4.6.1 first, which does not
know
Java 11, falls back to source level 1.4 and cannot read generics.

PR #649 fixes both on master-2.x. With the RC1 source plus those two
changes, mvn clean install with Maven 3.10.1 passes in the 35 modules,
1178
tests, no failures, and the JSPs also compile with Maven 3.9.16.

The RC1 tag does not change, so whether this needs a new RC is Alex's
call.

Arturo
[...]





Reply via email to