From 2cd4113c6dce9f4bda2769260d851f0269b44e14 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Sat, 11 Jun 2011 16:01:52 +0000 Subject: [PATCH] upgrade sitemesh struts plugin now tomcat:run works git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1134679 13f79535-47bb-0310-9956-ffa450edef68 --- .gitignore | 4 ++++ archiva-modules/archiva-web/archiva-webapp/pom.xml | 8 +++++++- .../org/apache/maven/archiva/web/action/BrowseAction.java | 2 ++ .../archiva-webapp/src/main/webapp/WEB-INF/web.xml | 4 +--- .../archiva-webapp/src/test/resources/log4j.xml | 3 +++ 5 files changed, 17 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 47ff902a3..929120e5a 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,7 @@ ${plexus.home} archiva-modules/archiva-web/archiva-webapp/appserver-base/ archiva-modules/archiva-web/archiva-webapp/overlays/ archiva-modules/archiva-web/archiva-webapp/src/main/webapp/archiva-applet.jar +archiva-modules/archiva-web/archiva-webapp/src/main/webapp/META-INF/ +archiva-modules/archiva-web/archiva-webapp/src/main/webapp/css/redback/ +archiva-modules/archiva-web/archiva-webapp/src/main/webapp/images/redback/ +archiva-modules/archiva-web/archiva-webapp/src/main/webapp/template/redback/ diff --git a/archiva-modules/archiva-web/archiva-webapp/pom.xml b/archiva-modules/archiva-web/archiva-webapp/pom.xml index a98f18d02..65920b9d1 100644 --- a/archiva-modules/archiva-web/archiva-webapp/pom.xml +++ b/archiva-modules/archiva-web/archiva-webapp/pom.xml @@ -165,6 +165,11 @@ org.apache.struts struts2-core + + org.apache.struts + struts2-sitemesh-plugin + ${struts.version} + org.codehaus.redback.components.registry spring-registry-api @@ -669,6 +674,7 @@ + @@ -715,7 +721,7 @@ war false ${basedir}/src/main/webapp - **/web.xml,lib + **/web.xml,**/struts*.jar,**/sitemesh*.jar diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/BrowseAction.java b/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/BrowseAction.java index 961839766..9073be9b8 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/BrowseAction.java +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/BrowseAction.java @@ -19,6 +19,8 @@ package org.apache.maven.archiva.web.action; * under the License. */ +import com.opensymphony.module.sitemesh.Factory; +import com.opensymphony.sitemesh.webapp.SiteMeshFilter; import org.apache.archiva.metadata.model.ProjectVersionMetadata; import org.apache.archiva.metadata.repository.MetadataResolutionException; import org.apache.archiva.metadata.repository.MetadataResolver; diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/web.xml b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/web.xml index fad3f3353..10ed5aaaf 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/web.xml +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/web.xml @@ -31,9 +31,7 @@ sitemesh - - com.opensymphony.sitemesh.webapp.SiteMeshFilter - + com.opensymphony.sitemesh.webapp.SiteMeshFilter diff --git a/archiva-modules/archiva-web/archiva-webapp/src/test/resources/log4j.xml b/archiva-modules/archiva-web/archiva-webapp/src/test/resources/log4j.xml index 7780ac880..2df973ac8 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/test/resources/log4j.xml +++ b/archiva-modules/archiva-web/archiva-webapp/src/test/resources/log4j.xml @@ -27,6 +27,9 @@ + + + -- 2.39.5