mirror of https://github.com/apache/archiva.git
simplify how tomcat maven plugin is use to start container for it test
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1333932 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d34115bd8a
commit
275e055e54
|
@ -276,9 +276,6 @@
|
||||||
<copy todir="${project.build.directory}/local-repo">
|
<copy todir="${project.build.directory}/local-repo">
|
||||||
<fileset dir="src/test/resources/local-repo"/>
|
<fileset dir="src/test/resources/local-repo"/>
|
||||||
</copy>
|
</copy>
|
||||||
<copy todir="${project.build.directory}/tomcat7x">
|
|
||||||
<fileset dir="src/test/tomcat7x"/>
|
|
||||||
</copy>
|
|
||||||
</tasks>
|
</tasks>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
|
@ -320,8 +317,6 @@
|
||||||
</goals>
|
</goals>
|
||||||
<phase>pre-integration-test</phase>
|
<phase>pre-integration-test</phase>
|
||||||
<configuration>
|
<configuration>
|
||||||
<additionalConfigFilesDir>${project.build.directory}/tomcat7x/conf</additionalConfigFilesDir>
|
|
||||||
<configurationDir>${project.build.directory}/tomcat7x</configurationDir>
|
|
||||||
<path>/archiva</path>
|
<path>/archiva</path>
|
||||||
<port>${container.test.port}</port>
|
<port>${container.test.port}</port>
|
||||||
<uriEncoding>UTF-8</uriEncoding>
|
<uriEncoding>UTF-8</uriEncoding>
|
||||||
|
@ -334,9 +329,8 @@
|
||||||
<derby.system.home>${project.build.directory}</derby.system.home>
|
<derby.system.home>${project.build.directory}</derby.system.home>
|
||||||
<archiva.devMode>true</archiva.devMode>
|
<archiva.devMode>true</archiva.devMode>
|
||||||
</systemProperties>
|
</systemProperties>
|
||||||
<contextFile>src/test/${container.name}/Catalina/localhost/archiva.xml</contextFile>
|
<contextFile>${project.build.testOutputDirectory}/archiva.xml</contextFile>
|
||||||
<useNaming>true</useNaming>
|
<useNaming>true</useNaming>
|
||||||
<serverXml>${project.build.directory}/tomcat7x/conf/server.xml</serverXml>
|
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
<execution>
|
<execution>
|
||||||
|
|
|
@ -19,12 +19,12 @@
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<Context path="/archiva"
|
<Context path="/archiva"
|
||||||
docBase="${catalina.base}/webapps/archiva">
|
docBase="${webappDirectory}">
|
||||||
|
|
||||||
<Resource name="jdbc/users" auth="Container" type="javax.sql.DataSource"
|
<Resource name="jdbc/users" auth="Container" type="javax.sql.DataSource"
|
||||||
username="sa"
|
username="sa"
|
||||||
password=""
|
password=""
|
||||||
driverClassName="org.apache.derby.jdbc.EmbeddedDriver"
|
driverClassName="org.apache.derby.jdbc.EmbeddedDriver"
|
||||||
url="jdbc:derby:target/database/users;create=true"
|
url="jdbc:derby:${project.build.directory}/database/users;create=true"
|
||||||
/>
|
/>
|
||||||
</Context>
|
</Context>
|
|
@ -1,7 +0,0 @@
|
||||||
grant {
|
|
||||||
permission java.security.AllPermission;
|
|
||||||
};
|
|
||||||
|
|
||||||
grant codeBase "file:${catalina.home}/lib/tomcat-juli.jar" {
|
|
||||||
permission java.lang.RuntimePermission "setContextClassLoader";
|
|
||||||
};
|
|
|
@ -1,81 +0,0 @@
|
||||||
# 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.
|
|
||||||
|
|
||||||
#
|
|
||||||
# List of comma-separated packages that start with or equal this string
|
|
||||||
# will cause a security exception to be thrown when
|
|
||||||
# passed to checkPackageAccess unless the
|
|
||||||
# corresponding RuntimePermission ("accessClassInPackage."+package) has
|
|
||||||
# been granted.
|
|
||||||
package.access=sun.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.,sun.beans.
|
|
||||||
#
|
|
||||||
# List of comma-separated packages that start with or equal this string
|
|
||||||
# will cause a security exception to be thrown when
|
|
||||||
# passed to checkPackageDefinition unless the
|
|
||||||
# corresponding RuntimePermission ("defineClassInPackage."+package) has
|
|
||||||
# been granted.
|
|
||||||
#
|
|
||||||
# by default, no packages are restricted for definition, and none of
|
|
||||||
# the class loaders supplied with the JDK call checkPackageDefinition.
|
|
||||||
#
|
|
||||||
package.definition=sun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.
|
|
||||||
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# List of comma-separated paths defining the contents of the "common"
|
|
||||||
# classloader. Prefixes should be used to define what is the repository type.
|
|
||||||
# Path may be relative to the CATALINA_HOME or CATALINA_BASE path or absolute.
|
|
||||||
# If left as blank,the JVM system loader will be used as Catalina's "common"
|
|
||||||
# loader.
|
|
||||||
# Examples:
|
|
||||||
# "foo": Add this folder as a class repository
|
|
||||||
# "foo/*.jar": Add all the JARs of the specified folder as class
|
|
||||||
# repositories
|
|
||||||
# "foo/bar.jar": Add bar.jar as a class repository
|
|
||||||
common.loader=${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar
|
|
||||||
|
|
||||||
#
|
|
||||||
# List of comma-separated paths defining the contents of the "server"
|
|
||||||
# classloader. Prefixes should be used to define what is the repository type.
|
|
||||||
# Path may be relative to the CATALINA_HOME or CATALINA_BASE path or absolute.
|
|
||||||
# If left as blank, the "common" loader will be used as Catalina's "server"
|
|
||||||
# loader.
|
|
||||||
# Examples:
|
|
||||||
# "foo": Add this folder as a class repository
|
|
||||||
# "foo/*.jar": Add all the JARs of the specified folder as class
|
|
||||||
# repositories
|
|
||||||
# "foo/bar.jar": Add bar.jar as a class repository
|
|
||||||
server.loader=
|
|
||||||
|
|
||||||
#
|
|
||||||
# List of comma-separated paths defining the contents of the "shared"
|
|
||||||
# classloader. Prefixes should be used to define what is the repository type.
|
|
||||||
# Path may be relative to the CATALINA_BASE path or absolute. If left as blank,
|
|
||||||
# the "common" loader will be used as Catalina's "shared" loader.
|
|
||||||
# Examples:
|
|
||||||
# "foo": Add this folder as a class repository
|
|
||||||
# "foo/*.jar": Add all the JARs of the specified folder as class
|
|
||||||
# repositories
|
|
||||||
# "foo/bar.jar": Add bar.jar as a class repository
|
|
||||||
# Please note that for single jars, e.g. bar.jar, you need the URL form
|
|
||||||
# starting with file:.
|
|
||||||
shared.loader=
|
|
||||||
|
|
||||||
#
|
|
||||||
# String cache configuration.
|
|
||||||
tomcat.util.buf.StringCache.byte.enabled=true
|
|
||||||
#tomcat.util.buf.StringCache.char.enabled=true
|
|
||||||
#tomcat.util.buf.StringCache.trainThreshold=500000
|
|
||||||
#tomcat.util.buf.StringCache.cacheSize=5000
|
|
|
@ -1,35 +0,0 @@
|
||||||
<?xml version='1.0' encoding='utf-8'?>
|
|
||||||
<!--
|
|
||||||
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.
|
|
||||||
-->
|
|
||||||
<!-- The contents of this file will be loaded for each web application -->
|
|
||||||
<Context>
|
|
||||||
|
|
||||||
<!-- Default set of monitored resources -->
|
|
||||||
<WatchedResource>WEB-INF/web.xml</WatchedResource>
|
|
||||||
|
|
||||||
<!-- Uncomment this to disable session persistence across Tomcat restarts -->
|
|
||||||
<!--
|
|
||||||
<Manager pathname="" />
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!-- Uncomment this to enable Comet connection tacking (provides events
|
|
||||||
on session expiration as well as webapp lifecycle) -->
|
|
||||||
<!--
|
|
||||||
<Valve className="org.apache.catalina.valves.CometConnectionManagerValve" />
|
|
||||||
-->
|
|
||||||
|
|
||||||
</Context>
|
|
|
@ -1,46 +0,0 @@
|
||||||
# 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.
|
|
||||||
|
|
||||||
handlers = java.util.logging.ConsoleHandler
|
|
||||||
|
|
||||||
############################################################
|
|
||||||
# Handler specific properties.
|
|
||||||
# Describes specific configuration info for Handlers.
|
|
||||||
############################################################
|
|
||||||
|
|
||||||
java.util.logging.ConsoleHandler.level = FINE
|
|
||||||
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
|
|
||||||
|
|
||||||
############################################################
|
|
||||||
# Facility specific properties.
|
|
||||||
# Provides extra control for each logger.
|
|
||||||
############################################################
|
|
||||||
|
|
||||||
org.apache.catalina.level = @catalina.logging.level@
|
|
||||||
org.apache.catalina.startup.HostConfig.level = INFO
|
|
||||||
org.apache.catalina.session.ManagerBase.level = INFO
|
|
||||||
|
|
||||||
|
|
||||||
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO
|
|
||||||
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = java.util.logging.ConsoleHandler
|
|
||||||
|
|
||||||
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].level = INFO
|
|
||||||
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers = java.util.logging.ConsoleHandler
|
|
||||||
|
|
||||||
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin].level = INFO
|
|
||||||
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin].handlers = java.util.logging.ConsoleHandler
|
|
||||||
|
|
||||||
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].level = INFO
|
|
||||||
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].handlers = java.util.logging.ConsoleHandler
|
|
|
@ -1,49 +0,0 @@
|
||||||
<?xml version='1.0' encoding='utf-8'?>
|
|
||||||
<!--
|
|
||||||
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.
|
|
||||||
-->
|
|
||||||
<!-- Note: A "Server" is not itself a "Container", so you may not
|
|
||||||
define subcomponents such as "Valves" at this level.
|
|
||||||
Documentation at /docs/config/server.html
|
|
||||||
-->
|
|
||||||
<Server port="9695" shutdown="SHUTDOWN">
|
|
||||||
|
|
||||||
<!-- Global JNDI resources
|
|
||||||
Documentation at /docs/jndi-resources-howto.html
|
|
||||||
-->
|
|
||||||
<GlobalNamingResources>
|
|
||||||
|
|
||||||
</GlobalNamingResources>
|
|
||||||
|
|
||||||
<Service name="Catalina">
|
|
||||||
|
|
||||||
<Connector port="9696" protocol="HTTP/1.1"
|
|
||||||
connectionTimeout="20000"
|
|
||||||
redirectPort="8443" />
|
|
||||||
|
|
||||||
<Engine name="Catalina" defaultHost="localhost">
|
|
||||||
|
|
||||||
<Valve className="org.apache.catalina.valves.AccessLogValve"
|
|
||||||
resolveHosts="false" pattern="%t-m:%m-url:%U-%q-%Dms"/>
|
|
||||||
|
|
||||||
<Host name="localhost" appBase="webapps"
|
|
||||||
unpackWARs="true" autoDeploy="true"
|
|
||||||
xmlValidation="false" xmlNamespaceAware="false">
|
|
||||||
|
|
||||||
</Host>
|
|
||||||
</Engine>
|
|
||||||
</Service>
|
|
||||||
</Server>
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue