mirror of
https://github.com/apache/archiva.git
synced 2025-02-22 01:44:47 +00:00
[MRM-46] more skeleton webwork webapp
git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@367217 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fffe114af0
commit
25595d78f8
29
maven-repository-webapp/src/main/resources/validators.xml
Normal file
29
maven-repository-webapp/src/main/resources/validators.xml
Normal file
@ -0,0 +1,29 @@
|
||||
<!--
|
||||
~ Copyright 2005-2006 The Apache Software Foundation.
|
||||
~
|
||||
~ Licensed 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.
|
||||
-->
|
||||
|
||||
<validators>
|
||||
<validator name="required" class="com.opensymphony.webwork.validators.JavaScriptRequiredFieldValidator"/>
|
||||
<validator name="requiredstring" class="com.opensymphony.webwork.validators.JavaScriptRequiredStringValidator"/>
|
||||
<validator name="int" class="com.opensymphony.webwork.validators.JavaScriptIntRangeFieldValidator"/>
|
||||
<validator name="date" class="com.opensymphony.webwork.validators.JavaScriptDateRangeFieldValidator"/>
|
||||
<validator name="expression" class="com.opensymphony.xwork.validator.validators.ExpressionValidator"/>
|
||||
<validator name="fieldexpression" class="com.opensymphony.xwork.validator.validators.FieldExpressionValidator"/>
|
||||
<validator name="email" class="com.opensymphony.webwork.validators.JavaScriptEmailValidator"/>
|
||||
<validator name="url" class="com.opensymphony.webwork.validators.JavaScriptURLValidator"/>
|
||||
<validator name="visitor" class="com.opensymphony.webwork.validators.JavaScriptVisitorFieldValidator"/>
|
||||
<validator name="conversion" class="com.opensymphony.xwork.validator.validators.ConversionErrorFieldValidator"/>
|
||||
<validator name="stringlength" class="com.opensymphony.xwork.validator.validators.StringLengthFieldValidator"/>
|
||||
</validators>
|
35
maven-repository-webapp/src/main/resources/xwork.xml
Normal file
35
maven-repository-webapp/src/main/resources/xwork.xml
Normal file
@ -0,0 +1,35 @@
|
||||
<!--
|
||||
~ Copyright 2005-2006 The Apache Software Foundation.
|
||||
~
|
||||
~ Licensed 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.
|
||||
-->
|
||||
|
||||
<!DOCTYPE xwork PUBLIC "-//OpenSymphony Group//XWork 1.0//EN"
|
||||
"http://www.opensymphony.com/xwork/xwork-1.0.dtd">
|
||||
|
||||
<xwork>
|
||||
<!-- Include webwork defaults (from WebWork JAR). -->
|
||||
<include file="webwork-default.xml"/>
|
||||
|
||||
<!-- Configuration for the default package. -->
|
||||
<package name="default" extends="webwork-default">
|
||||
<!-- Default interceptor stack. -->
|
||||
<default-interceptor-ref name="defaultStack"/>
|
||||
|
||||
<!-- Action: Front page -->
|
||||
<action name="index" class="com.opensymphony.xwork.ActionSupport">
|
||||
<result name="success" type="dispatcher">/WEB-INF/jsp/index.jsp</result>
|
||||
</action>
|
||||
</package>
|
||||
</xwork>
|
||||
|
@ -0,0 +1,12 @@
|
||||
<%@ taglib uri="webwork" prefix="ww" %>
|
||||
<html>
|
||||
<head>
|
||||
<title>Maven Repository Manager</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<h1>Maven Repository Manager</h1>
|
||||
|
||||
</body>
|
||||
</html>
|
114
maven-repository-webapp/src/main/webapp/WEB-INF/plexus.xml
Normal file
114
maven-repository-webapp/src/main/webapp/WEB-INF/plexus.xml
Normal file
@ -0,0 +1,114 @@
|
||||
<!--
|
||||
~ Copyright 2005-2006 The Apache Software Foundation.
|
||||
~
|
||||
~ Licensed 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>
|
||||
<!--
|
||||
<load-on-start>
|
||||
<component>
|
||||
<role>org.codehaus.plexus.taskqueue.execution.TaskQueueExecutor</role>
|
||||
<role-hint>build-project</role-hint>
|
||||
</component>
|
||||
<component>
|
||||
<role>org.codehaus.plexus.taskqueue.execution.TaskQueueExecutor</role>
|
||||
<role-hint>check-out-project</role-hint>
|
||||
</component>
|
||||
</load-on-start>
|
||||
-->
|
||||
|
||||
<components>
|
||||
|
||||
<!--
|
||||
| Object factory for WebWork
|
||||
-->
|
||||
<component>
|
||||
<role>com.opensymphony.xwork.ObjectFactory</role>
|
||||
<implementation>org.codehaus.plexus.xwork.PlexusObjectFactory</implementation>
|
||||
</component>
|
||||
|
||||
<!--
|
||||
| Logger manager
|
||||
-->
|
||||
<!--
|
||||
<component>
|
||||
<role>org.codehaus.plexus.logging.LoggerManager</role>
|
||||
<implementation>org.codehaus.plexus.logging.log4j.Log4JLoggerManager</implementation>
|
||||
<lifecycle-handler>basic</lifecycle-handler>
|
||||
|
||||
<configuration>
|
||||
<threshold>DEBUG</threshold>
|
||||
<default-appender>console,rolling</default-appender>
|
||||
<appenders>
|
||||
<appender>
|
||||
<id>console</id>
|
||||
<threshold>DEBUG</threshold>
|
||||
<type>org.apache.log4j.ConsoleAppender</type>
|
||||
<conversion-pattern>%d [%t] %-5p %-30c{1} - %m%n</conversion-pattern>
|
||||
</appender>
|
||||
|
||||
<appender>
|
||||
<id>rolling</id>
|
||||
<threshold>DEBUG</threshold>
|
||||
<type>org.apache.log4j.RollingFileAppender</type>
|
||||
<conversion-pattern>%-4r [%t] %-5p %c %x - %m%n</conversion-pattern>
|
||||
|
||||
<properties>
|
||||
<property>
|
||||
<name>file</name>
|
||||
<value>${plexus.home}/logs/continuum.log</value>
|
||||
</property>
|
||||
<property>
|
||||
<name>append</name>
|
||||
<value>true</value>
|
||||
</property>
|
||||
<property>
|
||||
<name>maxBackupIndex</name>
|
||||
<value>10</value>
|
||||
</property>
|
||||
<property>
|
||||
<name>maxFileSize</name>
|
||||
<value>10MB</value>
|
||||
</property>
|
||||
</properties>
|
||||
</appender>
|
||||
</appenders>
|
||||
<levels>
|
||||
<level>
|
||||
<hierarchy>org.codehaus.plexus.velocity</hierarchy>
|
||||
<level>WARN</level>
|
||||
</level>
|
||||
<level>
|
||||
<hierarchy>org.codehaus.plexus.mailsender.MailSender</hierarchy>
|
||||
<level>INFO</level>
|
||||
</level>
|
||||
<level>
|
||||
<hierarchy>org.apache.jasper</hierarchy>
|
||||
<level>INFO</level>
|
||||
</level>
|
||||
<level>
|
||||
<hierarchy>com.opensymphony.xwork</hierarchy>
|
||||
<level>INFO</level>
|
||||
</level>
|
||||
<level>
|
||||
<hierarchy>com.opensymphony.webwork</hierarchy>
|
||||
<level>INFO</level>
|
||||
</level>
|
||||
</levels>
|
||||
</configuration>
|
||||
</component>
|
||||
-->
|
||||
</components>
|
||||
|
||||
</plexus>
|
@ -28,7 +28,6 @@
|
||||
</servlet-mapping>
|
||||
|
||||
<welcome-file-list>
|
||||
<welcome-file>index.html</welcome-file>
|
||||
<welcome-file>Index.action</welcome-file>
|
||||
<welcome-file>index.action</welcome-file>
|
||||
</welcome-file-list>
|
||||
</web-app>
|
||||
|
@ -1,5 +0,0 @@
|
||||
<html>
|
||||
<body>
|
||||
<h2>Hello World!</h2>
|
||||
</body>
|
||||
</html>
|
Loading…
x
Reference in New Issue
Block a user