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