From 480eaee429cc85a8dd3a52947254826857d674a3 Mon Sep 17 00:00:00 2001 From: Wendy Smoak Date: Thu, 5 May 2011 14:42:00 +0000 Subject: [PATCH] [MRM-1472] Maven configuration to enable mvn -P dev tomcat:run from the top of the project. Includes moving the application.xml file. Submitted by: Olivier Lamy git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1099827 13f79535-47bb-0310-9956-ffa450edef68 --- .../archiva-web/archiva-applet/pom.xml | 22 +++ .../archiva-web/archiva-webapp/pom.xml | 140 ++++++++++++++++++ .../plexus => webapp/WEB-INF}/application.xml | 0 .../src/main/webapp/WEB-INF/web.xml | 2 +- .../test/tomcat/tomcat-context-archiva.xml | 37 +++++ pom.xml | 15 +- 6 files changed, 213 insertions(+), 3 deletions(-) rename archiva-modules/archiva-web/archiva-webapp/src/main/{resources/META-INF/plexus => webapp/WEB-INF}/application.xml (100%) create mode 100644 archiva-modules/archiva-web/archiva-webapp/src/test/tomcat/tomcat-context-archiva.xml diff --git a/archiva-modules/archiva-web/archiva-applet/pom.xml b/archiva-modules/archiva-web/archiva-applet/pom.xml index 5a317b861..efcc4cfdd 100644 --- a/archiva-modules/archiva-web/archiva-applet/pom.xml +++ b/archiva-modules/archiva-web/archiva-applet/pom.xml @@ -86,4 +86,26 @@ + + + dev + + + + org.apache.maven.plugins + maven-jar-plugin + + + jar-generate-for-dev + compile + + jar + + + + + + + + diff --git a/archiva-modules/archiva-web/archiva-webapp/pom.xml b/archiva-modules/archiva-web/archiva-webapp/pom.xml index c85383419..c6f498122 100644 --- a/archiva-modules/archiva-web/archiva-webapp/pom.xml +++ b/archiva-modules/archiva-web/archiva-webapp/pom.xml @@ -394,6 +394,33 @@ + + org.codehaus.mojo + tomcat-maven-plugin + + 9091 + /archiva + ${basedir}/src/test/tomcat/tomcat-context-archiva.xml + + ${basedir}/appserver-base + ${basedir}/appserver-base + ${project.build.directory}/appserver-home + ${basedir}/appserver-base/logs + + + + + org.apache.derby + derby + 10.1.3.1 + + + javax.mail + mail + 1.4 + + + org.mortbay.jetty maven-jetty-plugin @@ -571,5 +598,118 @@ + + + dev + + + + maven-antrun-plugin + + + override-log4j-with-console-output + process-resources + + run + + + + + + + + + + + + + + org.apache.maven.plugins + maven-dependency-plugin + 2.2 + + + copy + process-resources + + copy + + + true + + + ${project.groupId} + archiva-applet + ${project.version} + src/main/webapp + archiva-applet.jar + + + + + + unpack-redback-war + + unpack + + compile + + + + org.codehaus.redback + redback-struts2-content + ${redback.version} + war + false + ${basedir}/src/main/webapp + **/web.xml,lib + + + + + + + + + + + + + org.apache.archiva + metadata-store-file + ${project.version} + + + org.codehaus.redback + redback-struts2-integration + ${redback.version} + + + diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/resources/META-INF/plexus/application.xml b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/application.xml similarity index 100% rename from archiva-modules/archiva-web/archiva-webapp/src/main/resources/META-INF/plexus/application.xml rename to archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/application.xml 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 0affdbc55..74d3413f5 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 @@ -99,7 +99,7 @@ classpath*:META-INF/plexus/components.xml classpath*:META-INF/spring-context.xml - /WEB-INF/classes/META-INF/plexus/application.xml + /WEB-INF/application.xml /WEB-INF/applicationContext.xml diff --git a/archiva-modules/archiva-web/archiva-webapp/src/test/tomcat/tomcat-context-archiva.xml b/archiva-modules/archiva-web/archiva-webapp/src/test/tomcat/tomcat-context-archiva.xml new file mode 100644 index 000000000..b5275faa0 --- /dev/null +++ b/archiva-modules/archiva-web/archiva-webapp/src/test/tomcat/tomcat-context-archiva.xml @@ -0,0 +1,37 @@ + + + + + + + + diff --git a/pom.xml b/pom.xml index 3a3bcf79d..c151bc688 100644 --- a/pom.xml +++ b/pom.xml @@ -134,12 +134,17 @@ org.apache.maven.plugins maven-compiler-plugin - 2.0.2 + 2.3.2 1.5 1.5 + + org.apache.maven.plugins + maven-clean-plugin + 2.4.1 + org.apache.maven.plugins maven-remote-resources-plugin @@ -187,7 +192,7 @@ org.apache.maven.plugins maven-surefire-plugin - 2.8 + 2.8.1 true @@ -203,6 +208,11 @@ maven-site-plugin 2.1 + + org.codehaus.mojo + tomcat-maven-plugin + 1.1 + @@ -1194,6 +1204,7 @@ 0.9 2.5.6 2.2.5 + UTF-8