From: Wendy Smoak Date: Thu, 5 May 2011 14:42:00 +0000 (+0000) Subject: [MRM-1472] Maven configuration to enable mvn -P dev tomcat:run from the top of the... X-Git-Tag: archiva-1.4-M1~804 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=480eaee429cc85a8dd3a52947254826857d674a3;p=archiva.git [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 --- 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/resources/META-INF/plexus/application.xml deleted file mode 100644 index f8203dff0..000000000 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/resources/META-INF/plexus/application.xml +++ /dev/null @@ -1,358 +0,0 @@ - - - - - - - org.codehaus.plexus.registry.Registry - org.codehaus.plexus.registry.commons.CommonsConfigurationRegistry - commons-configuration - - - - - - - - - - - - - - - - - - - - - - - org.codehaus.plexus.jdo.JdoFactory - users - org.codehaus.plexus.jdo.DataSourceConfigurableJdoFactory - - - java:comp/env/jdbc/users - java:comp/env/jdbc/usersShutdown - - - org.jpox.PersistenceManagerFactoryImpl - - - org.jpox.autoCreateSchema - true - - - org.jpox.validateTables - false - - - org.jpox.validateConstraints - false - - - org.jpox.validateColumns - false - - - org.jpox.autoStartMechanism - None - - - org.jpox.transactionIsolation - READ_COMMITTED - - - org.jpox.poid.transactionIsolation - READ_COMMITTED - - - org.jpox.rdbms.dateTimezone - JDK_DEFAULT_TIMEZONE - - - - - - - - - - - org.codehaus.plexus.logging.LoggerManager - org.codehaus.plexus.logging.slf4j.Slf4jLoggerManager - basic - - - - org.codehaus.plexus.logging.Logger - org.apache.maven.archiva.common.utils.Slf4JPlexusLogger - logger - - - - - org.codehaus.plexus.redback.system.check.EnvironmentCheck - locked-admin-check - org.codehaus.redback.integration.checks.security.LockedAdminEnvironmentCheck - LockedAdminEnvironmentCheck: checks if accounts marked as system administrator are locked - and unlocks them on startup. - - - - org.codehaus.plexus.redback.users.UserManager - cached - userManager - - - org.codehaus.plexus.redback.rbac.RBACManager - cached - rbacManager - - - - - - - - - - - - - - - - - - - - - - - - - - - plexus - - - plexus - Plexus Lifecycle Handler - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/application.xml b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/application.xml new file mode 100644 index 000000000..f8203dff0 --- /dev/null +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/application.xml @@ -0,0 +1,358 @@ + + + + + + + org.codehaus.plexus.registry.Registry + org.codehaus.plexus.registry.commons.CommonsConfigurationRegistry + commons-configuration + + + + + + + + + + + + + + + + + + + + + + + org.codehaus.plexus.jdo.JdoFactory + users + org.codehaus.plexus.jdo.DataSourceConfigurableJdoFactory + + + java:comp/env/jdbc/users + java:comp/env/jdbc/usersShutdown + + + org.jpox.PersistenceManagerFactoryImpl + + + org.jpox.autoCreateSchema + true + + + org.jpox.validateTables + false + + + org.jpox.validateConstraints + false + + + org.jpox.validateColumns + false + + + org.jpox.autoStartMechanism + None + + + org.jpox.transactionIsolation + READ_COMMITTED + + + org.jpox.poid.transactionIsolation + READ_COMMITTED + + + org.jpox.rdbms.dateTimezone + JDK_DEFAULT_TIMEZONE + + + + + + + + + + + org.codehaus.plexus.logging.LoggerManager + org.codehaus.plexus.logging.slf4j.Slf4jLoggerManager + basic + + + + org.codehaus.plexus.logging.Logger + org.apache.maven.archiva.common.utils.Slf4JPlexusLogger + logger + + + + + org.codehaus.plexus.redback.system.check.EnvironmentCheck + locked-admin-check + org.codehaus.redback.integration.checks.security.LockedAdminEnvironmentCheck + LockedAdminEnvironmentCheck: checks if accounts marked as system administrator are locked + and unlocks them on startup. + + + + org.codehaus.plexus.redback.users.UserManager + cached + userManager + + + org.codehaus.plexus.redback.rbac.RBACManager + cached + rbacManager + + + + + + + + + + + + + + + + + + + + + + + + + + + plexus + + + plexus + Plexus Lifecycle Handler + + + + + + + + + + + + + + + + + + + + + + + + + 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