Permalink
Browse files

maven-plugin: import code as defined in the ip clearance.

NOTE: next commits will change package


git-svn-id: https://svn.apache.org/repos/asf/tomcat/maven-plugin/trunk@1163136 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent 99b31ce commit 6d2c7b2aae3f59d802f8dea57307d388d4fa0920 @olamy olamy committed Aug 30, 2011
Showing with 8,728 additions and 0 deletions.
  1. +315 −0 LICENSE.txt
  2. +352 −0 pom.xml
  3. +28 −0 src/site/site.xml
  4. +145 −0 tomcat-maven-plugin-it/pom.xml
  5. +193 −0 tomcat-maven-plugin-it/src/test/java/org/codehaus/mojo/tomcat/it/AbstractWarProjectIT.java
  6. +68 −0 tomcat-maven-plugin-it/src/test/java/org/codehaus/mojo/tomcat/it/SimpleWarProjectIT.java
  7. +94 −0 tomcat-maven-plugin-it/src/test/java/org/codehaus/mojo/tomcat/it/TomcatRunMultiConfigIT.java
  8. +71 −0 tomcat-maven-plugin-it/src/test/java/org/codehaus/mojo/tomcat/it/UsageContextpathIT.java
  9. +119 −0 tomcat-maven-plugin-it/src/test/project-resources/simple-war-project/pom.xml
  10. +19 −0 tomcat-maven-plugin-it/src/test/project-resources/simple-war-project/src/main/tomcatconf/empty.txt
  11. +43 −0 tomcat-maven-plugin-it/src/test/project-resources/simple-war-project/src/main/tomcatconf/server.xml
  12. +17 −0 tomcat-maven-plugin-it/src/test/project-resources/simple-war-project/src/main/webapp/index.jsp
  13. +26 −0 tomcat-maven-plugin-it/src/test/project-resources/simple-war-project/src/main/webapp/web.xml
  14. +30 −0 tomcat-maven-plugin-it/src/test/project-resources/simple-war-project/src/test/java/WaitIT.java
  15. +132 −0 tomcat-maven-plugin-it/src/test/project-resources/tomcat-run-multi-config/pom.xml
  16. +19 −0 tomcat-maven-plugin-it/src/test/project-resources/tomcat-run-multi-config/src/main/tcconf/empty.txt
  17. +40 −0 tomcat-maven-plugin-it/src/test/project-resources/tomcat-run-multi-config/src/main/webapp/index.jsp
  18. +38 −0 tomcat-maven-plugin-it/src/test/project-resources/tomcat-run-multi-config/src/main/webapp/web.xml
  19. +30 −0 tomcat-maven-plugin-it/src/test/project-resources/tomcat-run-multi-config/src/test/java/WaitIT.java
  20. +107 −0 tomcat-maven-plugin-it/src/test/project-resources/usage-contextpath/pom.xml
  21. +29 −0 tomcat-maven-plugin-it/src/test/project-resources/usage-contextpath/src/main/webapp/index.html
  22. +31 −0 tomcat-maven-plugin-it/src/test/project-resources/usage-contextpath/src/test/java/WaitIT.java
  23. +34 −0 tomcat-maven-plugin-it/src/test/resources/logback-test.xml
  24. +176 −0 tomcat-maven-plugin/pom.xml
  25. +275 −0 tomcat-maven-plugin/src/main/java/org/codehaus/mojo/tomcat/AbstractCatalinaMojo.java
  26. +215 −0 tomcat-maven-plugin/src/main/java/org/codehaus/mojo/tomcat/AbstractDeployMojo.java
  27. +87 −0 tomcat-maven-plugin/src/main/java/org/codehaus/mojo/tomcat/AbstractDeployWarMojo.java
  28. +139 −0 tomcat-maven-plugin/src/main/java/org/codehaus/mojo/tomcat/AbstractI18NMojo.java
  29. +847 −0 tomcat-maven-plugin/src/main/java/org/codehaus/mojo/tomcat/AbstractRunMojo.java
  30. +76 −0 tomcat-maven-plugin/src/main/java/org/codehaus/mojo/tomcat/AbstractRunWarMojo.java
  31. +86 −0 tomcat-maven-plugin/src/main/java/org/codehaus/mojo/tomcat/AbstractWarCatalinaMojo.java
  32. +34 −0 tomcat-maven-plugin/src/main/java/org/codehaus/mojo/tomcat/DeployMojo.java
  33. +34 −0 tomcat-maven-plugin/src/main/java/org/codehaus/mojo/tomcat/DeployOnlyMojo.java
  34. +151 −0 tomcat-maven-plugin/src/main/java/org/codehaus/mojo/tomcat/EmbeddedRegistry.java
  35. +74 −0 tomcat-maven-plugin/src/main/java/org/codehaus/mojo/tomcat/ExplodedMojo.java
  36. +164 −0 ...ven-plugin/src/main/java/org/codehaus/mojo/tomcat/ExternalRepositoriesReloadableWebappLoader.java
  37. +74 −0 tomcat-maven-plugin/src/main/java/org/codehaus/mojo/tomcat/InplaceMojo.java
  38. +51 −0 tomcat-maven-plugin/src/main/java/org/codehaus/mojo/tomcat/ListMojo.java
  39. +45 −0 tomcat-maven-plugin/src/main/java/org/codehaus/mojo/tomcat/RedeployMojo.java
  40. +51 −0 tomcat-maven-plugin/src/main/java/org/codehaus/mojo/tomcat/ReloadMojo.java
  41. +69 −0 tomcat-maven-plugin/src/main/java/org/codehaus/mojo/tomcat/ResourcesMojo.java
  42. +51 −0 tomcat-maven-plugin/src/main/java/org/codehaus/mojo/tomcat/RolesMojo.java
  43. +287 −0 tomcat-maven-plugin/src/main/java/org/codehaus/mojo/tomcat/RunMojo.java
  44. +37 −0 tomcat-maven-plugin/src/main/java/org/codehaus/mojo/tomcat/RunWarMojo.java
  45. +36 −0 tomcat-maven-plugin/src/main/java/org/codehaus/mojo/tomcat/RunWarOnlyMojo.java
  46. +51 −0 tomcat-maven-plugin/src/main/java/org/codehaus/mojo/tomcat/ServerInfoMojo.java
  47. +51 −0 tomcat-maven-plugin/src/main/java/org/codehaus/mojo/tomcat/SessionsMojo.java
  48. +61 −0 tomcat-maven-plugin/src/main/java/org/codehaus/mojo/tomcat/ShutdownMojo.java
  49. +51 −0 tomcat-maven-plugin/src/main/java/org/codehaus/mojo/tomcat/StartMojo.java
  50. +51 −0 tomcat-maven-plugin/src/main/java/org/codehaus/mojo/tomcat/StopMojo.java
  51. +729 −0 tomcat-maven-plugin/src/main/java/org/codehaus/mojo/tomcat/TomcatManager.java
  52. +72 −0 tomcat-maven-plugin/src/main/java/org/codehaus/mojo/tomcat/TomcatManagerException.java
  53. +74 −0 tomcat-maven-plugin/src/main/java/org/codehaus/mojo/tomcat/UndeployMojo.java
  54. +26 −0 tomcat-maven-plugin/src/main/resources/conf/tomcat-users.xml
  55. +1,200 −0 tomcat-maven-plugin/src/main/resources/conf/web.xml
  56. +107 −0 tomcat-maven-plugin/src/main/resources/org/codehaus/mojo/tomcat/messages.properties
  57. +84 −0 tomcat-maven-plugin/src/site/apt/container-goals.apt
  58. +110 −0 tomcat-maven-plugin/src/site/apt/context-goals.apt
  59. +58 −0 tomcat-maven-plugin/src/site/apt/examples/add-system-properties.apt.vm
  60. +124 −0 tomcat-maven-plugin/src/site/apt/examples/adjust-embedded-tomcat-version.apt.vm
  61. +128 −0 tomcat-maven-plugin/src/site/apt/examples/deployment-tomcat7.apt.vm
  62. +384 −0 tomcat-maven-plugin/src/site/apt/examples/deployment.apt.vm
  63. +53 −0 tomcat-maven-plugin/src/site/apt/index.apt
  64. +183 −0 tomcat-maven-plugin/src/site/apt/usage.apt.vm
  65. +53 −0 tomcat-maven-plugin/src/site/fml/faq.fml
  66. +39 −0 tomcat-maven-plugin/src/site/site.xml
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
352 pom.xml
@@ -0,0 +1,352 @@
+<?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.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+ <parent>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>mojo-parent</artifactId>
+ <version>27</version>
+ <relativePath>../mojo-parent/pom.xml</relativePath>
+ </parent>
+
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>tomcat-maven-plugin-parent</artifactId>
+ <packaging>pom</packaging>
+ <name>Tomcat Maven Plugin Project</name>
+ <version>1.2-SNAPSHOT</version>
+ <description>The Tomcat Maven Plugin provides goals to manipulate WAR projects within the Tomcat servlet
+ container.
+ </description>
+
+ <properties>
+ <tomcat.version>6.0.32</tomcat.version>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <maven.compiler.source>1.5</maven.compiler.source>
+ <maven.compiler.target>1.5</maven.compiler.target>
+ <mavenVersion>2.0.8</mavenVersion>
+ <!-- Test settings -->
+ <maven.test.redirectTestOutputToFile>true</maven.test.redirectTestOutputToFile>
+ <failsafe.version>2.6</failsafe.version>
+ <junit.version>4.8.1</junit.version>
+ </properties>
+
+ <prerequisites>
+ <maven>${mavenVersion}</maven>
+ </prerequisites>
+ <inceptionYear>2005</inceptionYear>
+
+ <developers>
+ <developer>
+ <id>mhobson</id>
+ <name>Mark Hobson</name>
+ <email>markhobson@gmail.com</email>
+ <roles>
+ <role>Lead Developer</role>
+ </roles>
+ <timezone>0</timezone>
+ </developer>
+ <developer>
+ <id>olamy</id>
+ <name>Olivier Lamy</name>
+ <email>olamy@apache.org</email>
+ </developer>
+ <developer>
+ <id>thragor</id>
+ <name>Mark Michaelis</name>
+ <email>thragor@gmx.net</email>
+ <url>http://thragor.blogspot.com/</url>
+ <timezone>+2</timezone>
+ <roles>
+ <role>Developer</role>
+ </roles>
+ </developer>
+ </developers>
+
+ <contributors>
+ <contributor>
+ <name>Jurgen Lust</name>
+ </contributor>
+ <contributor>
+ <name>Spike Washburn</name>
+ </contributor>
+ </contributors>
+
+ <licenses>
+ <license>
+ <name>The Apache Software License, Version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
+ <distribution>repo</distribution>
+ </license>
+ </licenses>
+
+ <scm>
+ <connection>scm:svn:http://svn.codehaus.org/mojo/trunk/mojo/tomcat-maven-plugin</connection>
+ <developerConnection>scm:svn:https://svn.codehaus.org/mojo/trunk/mojo/tomcat-maven-plugin</developerConnection>
+ <url>http://fisheye.codehaus.org/browse/mojo/trunk/mojo/tomcat-maven-plugin</url>
+ </scm>
+
+ <issueManagement>
+ <system>jira</system>
+ <url>http://jira.codehaus.org/browse/MTOMCAT</url>
+ </issueManagement>
+
+ <modules>
+ <module>tomcat-maven-plugin</module>
+ <!-- Module tomcat-maven-plugin-it is activated with the profile integration-test -->
+ </modules>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-plugin-api</artifactId>
+ <version>${mavenVersion}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-artifact-manager</artifactId>
+ <version>${mavenVersion}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven.wagon</groupId>
+ <artifactId>wagon-provider-api</artifactId>
+ <version>1.0-alpha-5</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-artifact</artifactId>
+ <version>${mavenVersion}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-project</artifactId>
+ <version>${mavenVersion}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-archiver</artifactId>
+ <version>2.2</version>
+ </dependency>
+ <dependency>
+ <groupId>org.codehaus.plexus</groupId>
+ <artifactId>plexus-utils</artifactId>
+ <version>1.0.4</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-codec</groupId>
+ <artifactId>commons-codec</artifactId>
+ <version>1.3</version>
+ </dependency>
+ <dependency>
+ <groupId>org.codehaus.plexus</groupId>
+ <artifactId>plexus-classworlds</artifactId>
+ <version>2.2.2</version>
+ </dependency>
+
+ <!-- tomcat dependencies -->
+
+ <dependency>
+ <groupId>org.apache.tomcat</groupId>
+ <artifactId>catalina</artifactId>
+ <version>${tomcat.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.tomcat</groupId>
+ <artifactId>catalina-ha</artifactId>
+ <version>${tomcat.version}</version>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.tomcat</groupId>
+ <artifactId>tribes</artifactId>
+ <version>${tomcat.version}</version>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.tomcat</groupId>
+ <artifactId>el-api</artifactId>
+ <version>${tomcat.version}</version>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.eclipse.jdt.core.compiler</groupId>
+ <artifactId>ecj</artifactId>
+ <version>3.5.1</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.tomcat</groupId>
+ <artifactId>jasper</artifactId>
+ <version>${tomcat.version}</version>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.tomcat</groupId>
+ <artifactId>jasper-el</artifactId>
+ <version>${tomcat.version}</version>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.tomcat</groupId>
+ <artifactId>jsp-api</artifactId>
+ <version>${tomcat.version}</version>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.tomcat</groupId>
+ <artifactId>servlet-api</artifactId>
+ <version>${tomcat.version}</version>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.tomcat</groupId>
+ <artifactId>coyote</artifactId>
+ <version>${tomcat.version}</version>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.tomcat</groupId>
+ <artifactId>dbcp</artifactId>
+ <version>${tomcat.version}</version>
+ <scope>runtime</scope>
+ </dependency>
+
+ <!-- Test Dependencies -->
+
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>${junit.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>junit-addons</groupId>
+ <artifactId>junit-addons</artifactId>
+ <version>1.4</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven.shared</groupId>
+ <artifactId>maven-verifier</artifactId>
+ <version>1.2</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.httpcomponents</groupId>
+ <artifactId>httpclient</artifactId>
+ <version>4.0.2</version>
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ <version>1.6.1</version>
+ </dependency>
+ <dependency>
+ <groupId>ch.qos.logback</groupId>
+ <artifactId>logback-core</artifactId>
+ <version>0.9.24</version>
+ </dependency>
+ <dependency>
+ <groupId>ch.qos.logback</groupId>
+ <artifactId>logback-classic</artifactId>
+ <version>0.9.24</version>
+ </dependency>
+
+ </dependencies>
+ </dependencyManagement>
+
+ <build>
+ <pluginManagement>
+ <plugins>
+ <!-- Override settings inherited from parent POM -->
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.3.2</version>
+ <configuration>
+ <encoding>${project.build.sourceEncoding}</encoding>
+ <source>${maven.compiler.source}</source>
+ <target>${maven.compiler.target}</target>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.6</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-failsafe-plugin</artifactId>
+ <version>${failsafe.version}</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-install-plugin</artifactId>
+ <version>2.3.1</version>
+ <configuration>
+ <createChecksum>true</createChecksum>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-deploy-plugin</artifactId>
+ <version>2.5</version>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.plexus</groupId>
+ <artifactId>plexus-component-metadata</artifactId>
+ <version>1.5.1</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>generate-metadata</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+
+ <profiles>
+ <profile>
+ <id>integration-test</id>
+ <!-- The integration tests require that the test artifacts are installed
+ first to a local repository. -->
+ <modules>
+ <module>tomcat-maven-plugin-it</module>
+ </modules>
+ <build>
+ <plugins>
+ <plugin>
+ <!-- For integration tests the plugin needs to be installed before
+ the integration tests are executed -->
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-install-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>install</goal>
+ </goals>
+ <phase>pre-integration-test</phase>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+
+</project>
View
@@ -0,0 +1,28 @@
+<?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.
+ -->
+<project name="Tomcat Maven Plugin">
+ <body>
+ <breadcrumbs>
+ <item name="tomcat-maven-plugin" href="index.html" mce_href="index.html"/>
+ </breadcrumbs>
+ <menu ref="modules"/>
+ <menu ref="reports"/>
+ </body>
+</project>
Oops, something went wrong.

0 comments on commit 6d2c7b2

Please sign in to comment.