From: Brett Porter Date: Wed, 12 Jul 2006 16:15:07 +0000 (+0000) Subject: use single container xwork integration X-Git-Tag: archiva-0.9-alpha-1~781 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4a36b8e50da4a6fe4c25ec51b46b9b0366c0f191;p=archiva.git use single container xwork integration git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@421300 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/maven-repository-configuration/src/main/java/org/apache/maven/repository/configuration/DefaultConfigurationStore.java b/maven-repository-configuration/src/main/java/org/apache/maven/repository/configuration/DefaultConfigurationStore.java index f10588f82..2eb858d2a 100644 --- a/maven-repository-configuration/src/main/java/org/apache/maven/repository/configuration/DefaultConfigurationStore.java +++ b/maven-repository-configuration/src/main/java/org/apache/maven/repository/configuration/DefaultConfigurationStore.java @@ -39,7 +39,7 @@ import java.util.List; * @todo would be great for plexus to do this for us - so the configuration would be a component itself rather than this store * @todo would be good to monitor the store file for changes * @todo support other implementations than XML file - * @plexus.component role="org.apache.maven.repository.configuration.ConfigurationStore" role-hint="default" + * @plexus.component role="org.apache.maven.repository.configuration.ConfigurationStore" */ public class DefaultConfigurationStore extends AbstractLogEnabled @@ -84,6 +84,7 @@ public class DefaultConfigurationStore return configuration; } + getLogger().info( "Reading configuration from " + file ); try { configuration = reader.read( fileReader ); @@ -116,6 +117,7 @@ public class DefaultConfigurationStore ConfigurationXpp3Writer writer = new ConfigurationXpp3Writer(); + getLogger().info( "Writing configuration to " + file ); FileWriter fileWriter = null; try { diff --git a/maven-repository-webapp/pom.xml b/maven-repository-webapp/pom.xml index ad9236fde..d588a485d 100644 --- a/maven-repository-webapp/pom.xml +++ b/maven-repository-webapp/pom.xml @@ -39,9 +39,16 @@ org.codehaus.plexus - plexus-xwork-integration + plexus-xwork-integration-single 1.0-alpha-2-SNAPSHOT + org.codehaus.plexus plexus-log4j-logging @@ -68,22 +75,16 @@ org.apache.maven.repository maven-repository-proxy + + org.apache.maven.repository + maven-repository-core + org.apache.maven.repository maven-repository-artifact-applet provided - - org.codehaus.plexus - plexus-quartz - 1.0-alpha-2 - - - dom4j - dom4j - 1.6.1 - maven-repository-webapp @@ -137,13 +138,53 @@ + + + org.codehaus.plexus + plexus-maven-plugin + + plexus.xml + true + + + + merge + + ${project.build.outputDirectory}/META-INF/plexus/plexus.xml + + ${project.build.directory}/generated-resources/plexus/plexus.xml + src/main/plexus/plexus.xml + + + + merge-descriptors + + + diff --git a/maven-repository-webapp/src/main/java/org/apache/maven/repository/manager/web/action/QuickSearchAction.java b/maven-repository-webapp/src/main/java/org/apache/maven/repository/manager/web/action/QuickSearchAction.java index 35f5de74f..4c0e8ba43 100644 --- a/maven-repository-webapp/src/main/java/org/apache/maven/repository/manager/web/action/QuickSearchAction.java +++ b/maven-repository-webapp/src/main/java/org/apache/maven/repository/manager/web/action/QuickSearchAction.java @@ -37,7 +37,7 @@ import java.util.Map; /** * Searches for searchString in all indexed fields. * - * @plexus.component role="com.opensymphony.xwork.Action" role-hint="quickSearchAction" + * @plexus.component role="com.opensymphony.xwork.Action" role-hint="quickSearchAction" instantiation-strategy="per-lookup" */ public class QuickSearchAction extends ActionSupport diff --git a/maven-repository-webapp/src/main/java/org/apache/maven/repository/manager/web/action/admin/ConfigureAction.java b/maven-repository-webapp/src/main/java/org/apache/maven/repository/manager/web/action/admin/ConfigureAction.java index 6ccb922a3..82288d761 100644 --- a/maven-repository-webapp/src/main/java/org/apache/maven/repository/manager/web/action/admin/ConfigureAction.java +++ b/maven-repository-webapp/src/main/java/org/apache/maven/repository/manager/web/action/admin/ConfigureAction.java @@ -32,7 +32,7 @@ import java.io.IOException; /** * Configures the application. * - * @plexus.component role="com.opensymphony.xwork.Action" role-hint="configureAction" + * @plexus.component role="com.opensymphony.xwork.Action" role-hint="configureAction" instantiation-strategy="per-lookup" */ public class ConfigureAction extends ActionSupport diff --git a/maven-repository-webapp/src/main/plexus/plexus.xml b/maven-repository-webapp/src/main/plexus/plexus.xml new file mode 100644 index 000000000..d8d3b78c1 --- /dev/null +++ b/maven-repository-webapp/src/main/plexus/plexus.xml @@ -0,0 +1,94 @@ + + + + + + + org.codehaus.plexus.logging.LoggerManager + org.codehaus.plexus.logging.log4j.Log4JLoggerManager + basic + + + DEBUG + console + + + console + DEBUG + org.apache.log4j.ConsoleAppender + %d [%t] %-5p %-30c{1} - %m%n + + + + + org.codehaus.plexus.velocity + WARN + + + org.codehaus.plexus.mailsender.MailSender + INFO + + + org.apache.jasper + INFO + + + com.opensymphony.xwork + INFO + + + com.opensymphony.webwork + INFO + + + + + + + + + webapp + + + webapp + Web Application Component Lifecycle Handler + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/maven-repository-webapp/src/main/resources/plexus-application.xml b/maven-repository-webapp/src/main/resources/plexus-application.xml deleted file mode 100644 index d8d3b78c1..000000000 --- a/maven-repository-webapp/src/main/resources/plexus-application.xml +++ /dev/null @@ -1,94 +0,0 @@ - - - - - - - org.codehaus.plexus.logging.LoggerManager - org.codehaus.plexus.logging.log4j.Log4JLoggerManager - basic - - - DEBUG - console - - - console - DEBUG - org.apache.log4j.ConsoleAppender - %d [%t] %-5p %-30c{1} - %m%n - - - - - org.codehaus.plexus.velocity - WARN - - - org.codehaus.plexus.mailsender.MailSender - INFO - - - org.apache.jasper - INFO - - - com.opensymphony.xwork - INFO - - - com.opensymphony.webwork - INFO - - - - - - - - - webapp - - - webapp - Web Application Component Lifecycle Handler - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/maven-repository-webapp/src/main/resources/xwork.xml b/maven-repository-webapp/src/main/resources/xwork.xml index c7952d0ed..9a4ccfd01 100644 --- a/maven-repository-webapp/src/main/resources/xwork.xml +++ b/maven-repository-webapp/src/main/resources/xwork.xml @@ -24,7 +24,7 @@ - + diff --git a/maven-repository-webapp/src/main/webapp/WEB-INF/web.xml b/maven-repository-webapp/src/main/webapp/WEB-INF/web.xml index cb00405bb..d364847cc 100644 --- a/maven-repository-webapp/src/main/webapp/WEB-INF/web.xml +++ b/maven-repository-webapp/src/main/webapp/WEB-INF/web.xml @@ -21,10 +21,12 @@ Maven Repository Manager - - plexus - org.codehaus.plexus.xwork.PlexusFilter - + webwork-cleanup @@ -42,10 +44,12 @@ + diff --git a/maven-repository-webapp/src/main/webapp/css/site.css b/maven-repository-webapp/src/main/webapp/css/site.css index 877d3da3f..6c4e271c6 100644 --- a/maven-repository-webapp/src/main/webapp/css/site.css +++ b/maven-repository-webapp/src/main/webapp/css/site.css @@ -119,6 +119,3 @@ .actionMessage { font-weight: bold; } -sage { - font-weight: bold; -}