diff options
Diffstat (limited to 'archiva-modules/archiva-web/archiva-webapp/src/main/resources/META-INF/plexus/application.xml')
-rw-r--r-- | archiva-modules/archiva-web/archiva-webapp/src/main/resources/META-INF/plexus/application.xml | 263 |
1 files changed, 263 insertions, 0 deletions
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 new file mode 100644 index 000000000..8d42dcfd2 --- /dev/null +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/resources/META-INF/plexus/application.xml @@ -0,0 +1,263 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + ~ Licensed to the Apache Software Foundation (ASF) under one + ~ or more contributor license agreements. See the NOTICE file + ~ distributed with this work for additional information + ~ regarding copyright ownership. The ASF licenses this file + ~ to you under the Apache License, Version 2.0 (the + ~ "License"); you may not use this file except in compliance + ~ with the License. You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, + ~ software distributed under the License is distributed on an + ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + ~ KIND, either express or implied. See the License for the + ~ specific language governing permissions and limitations + ~ under the License. + --> + +<plexus> + <components> + <component> + <role>org.codehaus.plexus.registry.Registry</role> + <implementation>org.codehaus.plexus.registry.commons.CommonsConfigurationRegistry</implementation> + <role-hint>commons-configuration</role-hint> + <configuration> + <properties> + <system/> + <jndi prefix="java:comp/env" config-optional="true"/> + <xml fileName="${user.home}/.m2/archiva.xml" config-optional="true" + config-name="org.apache.maven.archiva.user" + config-at="org.apache.maven.archiva"/> + <xml fileName="${user.home}/.m2/shared.xml" config-optional="true" + config-name="org.apache.maven.shared.app.user" config-at="org.apache.maven.shared.app" + config-forceCreate="true"/> + <properties fileName="${user.home}/.m2/security.properties" config-optional="true" + config-at="org.codehaus.plexus.redback"/> + <properties fileName="${user.home}/.m2/archiva.properties" config-optional="true" + config-at="org.codehaus.plexus.redback"/> + <xml fileName="${appserver.base}/conf/archiva.xml" config-optional="true" + config-name="org.apache.maven.archiva.base" + config-at="org.apache.maven.archiva"/> + <xml fileName="${appserver.base}/conf/shared.xml" config-optional="true" + config-name="org.apache.maven.shared.app.base" config-at="org.apache.maven.shared.app"/> + <xml fileName="${appserver.base}/conf/common.xml" config-optional="true"/> + <properties fileName="${appserver.base}/conf/security.properties" config-optional="true" + config-at="org.codehaus.plexus.redback"/> + <xml fileName="${appserver.home}/conf/archiva.xml" config-optional="true" + config-at="org.apache.maven.archiva"/> + <xml fileName="${appserver.home}/conf/shared.xml" config-optional="true" + config-at="org.apache.maven.shared.app"/> + <xml fileName="${appserver.home}/conf/common.xml" config-optional="true"/> + <properties fileName="${appserver.home}/conf/security.properties" config-optional="true" + config-at="org.codehaus.plexus.redback"/> + <properties fileName="org/apache/maven/archiva/security.properties" config-at="org.codehaus.plexus.redback"/> + </properties> + </configuration> + </component> + + <component> + <role>org.codehaus.plexus.mailsender.MailSender</role> + <implementation>org.codehaus.plexus.mailsender.javamail.JndiJavamailMailSender</implementation> + <configuration> + <jndiSessionName>java:comp/env/mail/Session</jndiSessionName> + </configuration> + </component> + + <component> + <role>org.apache.maven.archiva.webdav.DavServerManager</role> + <role-hint>default</role-hint> + <implementation>org.apache.maven.archiva.webdav.DefaultDavServerManager</implementation> + <description>DefaultDavServerManager</description> + <requirements> + <requirement> + <role>org.apache.maven.archiva.webdav.DavServerComponent</role> + <role-hint>proxied</role-hint> + </requirement> + </requirements> + </component> + + <component> + <role>org.codehaus.plexus.jdo.JdoFactory</role> + <role-hint>archiva</role-hint> + <implementation>org.codehaus.plexus.jdo.DataSourceConfigurableJdoFactory</implementation> + <configuration> + + <connectionFactoryName>java:comp/env/jdbc/archiva</connectionFactoryName> + <shutdownConnectionFactoryName>java:comp/env/jdbc/archivaShutdown</shutdownConnectionFactoryName> + + <!-- JPOX and JDO configuration --> + <persistenceManagerFactoryClass>org.jpox.PersistenceManagerFactoryImpl</persistenceManagerFactoryClass> + <otherProperties> + <property> + <name>org.jpox.autoCreateSchema</name> + <value>true</value> + </property> + <property> + <name>org.jpox.validateTables</name> + <value>false</value> + </property> + <property> + <name>org.jpox.validateConstraints</name> + <value>false</value> + </property> + <property> + <name>org.jpox.validateColumns</name> + <value>false</value> + </property> + <property> + <name>org.jpox.autoStartMechanism</name> + <value>None</value> + </property> + <property> + <name>org.jpox.transactionIsolation</name> + <value>READ_COMMITTED</value> + </property> + <property> + <name>org.jpox.poid.transactionIsolation</name> + <value>READ_COMMITTED</value> + </property> + <property> + <name>org.jpox.rdbms.dateTimezone</name> + <value>JDK_DEFAULT_TIMEZONE</value> + </property> + <!-- NEEDED FOR POSTGRES, But causes problems in other JDBC implementations. + <property> + <name>org.jpox.identifier.case</name> + <value>PreserveCase</value> + </property> + --> + </otherProperties> + </configuration> + </component> + + <component> + <role>org.codehaus.plexus.jdo.JdoFactory</role> + <role-hint>users</role-hint> + <implementation>org.codehaus.plexus.jdo.DataSourceConfigurableJdoFactory</implementation> + <configuration> + + <connectionFactoryName>java:comp/env/jdbc/users</connectionFactoryName> + <shutdownConnectionFactoryName>java:comp/env/jdbc/usersShutdown</shutdownConnectionFactoryName> + + <!-- JPOX and JDO configuration --> + <persistenceManagerFactoryClass>org.jpox.PersistenceManagerFactoryImpl</persistenceManagerFactoryClass> + <otherProperties> + <property> + <name>org.jpox.autoCreateSchema</name> + <value>true</value> + </property> + <property> + <name>org.jpox.validateTables</name> + <value>false</value> + </property> + <property> + <name>org.jpox.validateConstraints</name> + <value>false</value> + </property> + <property> + <name>org.jpox.validateColumns</name> + <value>false</value> + </property> + <property> + <name>org.jpox.autoStartMechanism</name> + <value>None</value> + </property> + <property> + <name>org.jpox.transactionIsolation</name> + <value>READ_COMMITTED</value> + </property> + <property> + <name>org.jpox.poid.transactionIsolation</name> + <value>READ_COMMITTED</value> + </property> + <property> + <name>org.jpox.rdbms.dateTimezone</name> + <value>JDK_DEFAULT_TIMEZONE</value> + </property> + <!-- NEEDED FOR POSTGRES, But causes problems in other JDBC implementations. + <property> + <name>org.jpox.identifier.case</name> + <value>PreserveCase</value> + </property> + --> + </otherProperties> + </configuration> + </component> + + <component> + <role>org.apache.maven.archiva.webdav.util.MimeTypes</role> + <implementation>org.apache.maven.archiva.webdav.util.MimeTypes</implementation> + <description>MimeTypes</description> + <configuration> + <resource>archiva-mime-types.txt</resource> + </configuration> + </component> + + <!-- + | Logger manager + --> + <component> + <role>org.codehaus.plexus.logging.LoggerManager</role> + <implementation>org.codehaus.plexus.logging.slf4j.Slf4jLoggerManager</implementation> + <lifecycle-handler>basic</lifecycle-handler> + </component> + + <!-- + PLXREDBACK-81 bad role hint, redefining here until redback alpha-2 is released. + --> + <component> + <role>org.codehaus.plexus.redback.system.check.EnvironmentCheck</role> + <role-hint>locked-admin-check</role-hint> + <implementation>org.codehaus.plexus.redback.xwork.checks.security.LockedAdminEnvironmentCheck</implementation> + <description>LockedAdminEnvironmentCheck: checks if accounts marked as system administrator are locked + and unlocks them on startup. + </description> + <requirements> + <requirement> + <role>org.codehaus.plexus.redback.users.UserManager</role> + <role-hint>cached</role-hint> + <field-name>userManager</field-name> + </requirement> + <requirement> + <role>org.codehaus.plexus.redback.rbac.RBACManager</role> + <role-hint>cached</role-hint> + <field-name>rbacManager</field-name> + </requirement> + </requirements> + </component> + </components> + + <lifecycle-handler-manager implementation="org.codehaus.plexus.lifecycle.DefaultLifecycleHandlerManager"> + <default-lifecycle-handler-id>plexus</default-lifecycle-handler-id> + <lifecycle-handlers> + <lifecycle-handler implementation="org.codehaus.plexus.personality.plexus.PlexusLifecycleHandler"> + <id>plexus</id> + <name>Plexus Lifecycle Handler</name> + <begin-segment> + <phase implementation="org.codehaus.plexus.personality.plexus.lifecycle.phase.LogEnablePhase"/> + <phase implementation="org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase"/> + <phase implementation="org.codehaus.plexus.personality.plexus.lifecycle.phase.ContextualizePhase"/> + <phase implementation="org.codehaus.plexus.personality.plexus.lifecycle.phase.AutoConfigurePhase"/> + <phase implementation="org.codehaus.plexus.registry.RegistryConfigurePhase"/> + <phase implementation="org.codehaus.plexus.personality.plexus.lifecycle.phase.ServiceablePhase"/> + <phase implementation="org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializePhase"/> + <phase implementation="org.codehaus.plexus.personality.plexus.lifecycle.phase.StartPhase"/> + </begin-segment> + <suspend-segment> + <phase implementation="org.codehaus.plexus.personality.plexus.lifecycle.phase.SuspendPhase"/> + </suspend-segment> + <resume-segment> + <phase implementation="org.codehaus.plexus.personality.plexus.lifecycle.phase.ResumePhase"/> + </resume-segment> + <end-segment> + <phase implementation="org.codehaus.plexus.personality.plexus.lifecycle.phase.StopPhase"/> + <phase implementation="org.codehaus.plexus.personality.plexus.lifecycle.phase.DisposePhase"/> + <phase implementation="org.codehaus.plexus.personality.plexus.lifecycle.phase.LogDisablePhase"/> + </end-segment> + </lifecycle-handler> + </lifecycle-handlers> + </lifecycle-handler-manager> +</plexus> |