From deebfc3469cfc0ea89cd5908910abd67d59d5309 Mon Sep 17 00:00:00 2001 From: jdyer1 Date: Tue, 14 Nov 2023 13:19:19 -0600 Subject: [PATCH] WN-5141 - try shade plugin --- core/pom.xml | 2 +- freemarker-jakarta-shaded/README.md | 3 + freemarker-jakarta-shaded/pom.xml | 143 ++++++++++++++++++++++++++++ pom.xml | 6 ++ 4 files changed, 153 insertions(+), 1 deletion(-) create mode 100644 freemarker-jakarta-shaded/README.md create mode 100644 freemarker-jakarta-shaded/pom.xml diff --git a/core/pom.xml b/core/pom.xml index 8002433320..97525e4155 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -182,7 +182,7 @@ org.apache.struts - struts2-freemarker-jakarta + struts2-freemarker-jakarta-shaded diff --git a/freemarker-jakarta-shaded/README.md b/freemarker-jakarta-shaded/README.md new file mode 100644 index 0000000000..8702074d9e --- /dev/null +++ b/freemarker-jakarta-shaded/README.md @@ -0,0 +1,3 @@ +# Struts 2 Freemarker Jakarta +This uses the eclipse transformer maven plugin to make the Freemarker dependency Jakarta EE 9+ compatible. + diff --git a/freemarker-jakarta-shaded/pom.xml b/freemarker-jakarta-shaded/pom.xml new file mode 100644 index 0000000000..3f7ca204ee --- /dev/null +++ b/freemarker-jakarta-shaded/pom.xml @@ -0,0 +1,143 @@ + + + + 4.0.0 + + org.apache.struts + struts2-parent + 6.4.0-SNAPSHOT + + struts2-freemarker-jakarta-shaded + jar + Struts 2 Jakarta EE Compatible Freemarker + + + UTF-8 + true + true + + + + + + org.apache.maven.plugins + maven-shade-plugin + + + package + + shade + + + + org.freemarker:freemarker + + + + + freemarker + freemarker.javax + + + freemarker.cache.WebappTemplateLoader + + freemarker.ext.jsp.TagTransformModel + + freemarker.ext.jsp.JspContextModel + + freemarker.ext.jsp.FreeMarkerJspFactory21 + + freemarker.ext.jsp.PageContextFactory + + freemarker.ext.jsp.EventForwarding + + freemarker.ext.jsp.JspWriterAdapter + + freemarker.ext.jsp._FreeMarkerPageContext2 + + freemarker.ext.jsp.TaglibFactory + + freemarker.ext.jsp.FreeMarkerPageContext + + freemarker.ext.jsp.FreemarkerTag + + freemarker.ext.jsp.FreeMarkerJspApplicationContext + + freemarker.ext.jsp._FreeMarkerPageContext21 + + freemarker.ext.jsp.FreeMarkerJspFactory + + freemarker.ext.jsp.SimpleTagDirectiveModel + + freemarker.ext.servlet.AllHttpScopesHashModel + + freemarker.ext.servlet.ServletContextHashModel + + freemarker.ext.servlet.InitParamParser + + freemarker.ext.servlet.IncludePage + + freemarker.ext.servlet.FreemarkerServlet + + freemarker.ext.servlet.HttpRequestParametersHashModel + + freemarker.ext.servlet.HttpSessionHashModel + + freemarker.ext.servlet.HttpRequestHashModel + + freemarker.ext.ant.FreemarkerXmlTask + + freemarker.ext.dom.JaxenXPathSupport + freemarker.ext.dom.NodeModel + + freemarker.ext.dom.SunInternalXalanXPathSupport + + freemarker.ext.dom.XalanXPathSupport + freemarker.core.FreeMarkerTree + + + + + + + + + + + + org.freemarker + freemarker + + + diff --git a/pom.xml b/pom.xml index 93153f141d..cd68302403 100644 --- a/pom.xml +++ b/pom.xml @@ -83,6 +83,7 @@ bom freemarker-jakarta + freemarker-jakarta-shaded core plugins bundles @@ -535,6 +536,11 @@ org.apache.struts struts2-freemarker-jakarta ${project.version} + + + org.apache.struts + struts2-freemarker-jakarta-shaded + ${project.version} org.apache.struts