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. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
