[
https://issues.apache.org/jira/browse/WW-5141?focusedWorklogId=890590&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-890590
]
ASF GitHub Bot logged work on WW-5141:
--------------------------------------
Author: ASF GitHub Bot
Created on: 15/Nov/23 00:14
Start Date: 15/Nov/23 00:14
Worklog Time Spent: 10m
Work Description: tyme-dev commented on PR #778:
URL: https://github.com/apache/struts/pull/778#issuecomment-1811595974
> I think I have solved the problems with Freemarker and Sitemesh by using
the eclipse transformer maven plugin [1]. To make it work, I added two new
projects that transform the jars to Jakarta EE 9+ compliant versions.
Downstream projects then depend on these new projects. As far as I can tell,
this works a lot like the shade plugin.
>
> Unfortunately, eclipse is not able to recognize the transformed jars so it
shows many compile errors. I spent a lot of time today trying to find a good
solution to no avail. It seems IntelliJ has the same issue.
>
> As a workaround, I can select "Maven > Disable Workspace Resolution" on
the struts2-core, struts2-tiles-plugin and struts2-sitemesg-plugin. Clearly
this is a bad permanent solution.
>
> Perhaps someone reading this has encountered a similar situation before
and they can improve on my work here and make it work seamlessly for everyone.
Seamless is the key especially for an open source project!
>
> One final note, Struts uses Sitemesh2 which is stuck forever it seems on
"javax.". There is a Sitemesh3 that supports "Jakarta." but it seems the
migration would be non-trivial.
>
> [1]
https://github.com/eclipse/transformer/tree/main/maven-plugins/transformer-maven-plugin
can you give this link a look and see if it fixes the problem?
https://blog.payara.fish/how-to-use-the-eclipse-transformer-project-to-convert-a-3rd-party-library
looks like we should be able to use the transformer, and then put that
artifact into local maven repo for build to pick up.
Issue Time Tracking
-------------------
Worklog Id: (was: 890590)
Time Spent: 2h 20m (was: 2h 10m)
> Support for JEE 9+
> -------------------
>
> Key: WW-5141
> URL: https://issues.apache.org/jira/browse/WW-5141
> Project: Struts 2
> Issue Type: New Feature
> Components: Core
> Reporter: Daniel Le Berre
> Priority: Major
> Fix For: 7.0.0
>
> Attachments: pom.xml
>
> Time Spent: 2h 20m
> Remaining Estimate: 0h
>
> JEE 9 breaks the JEE API by replacing javax domain by jakarta.
> Tomcat 10 implements some specifications of JEE 9.
> Struts 2.5 has some dependencies with the javax servlet API.
> Struts would require some changes to run on Tomcat 10+.
> Is there any plan to support JEE 9+ in the future?
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)