From 38903be78d4917b184eafa1393c88b57315ee701 Mon Sep 17 00:00:00 2001 From: John Dennis Casey Date: Tue, 10 Jan 2006 01:14:38 +0000 Subject: [PATCH] Adding integration tests for plugin classloading. git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@367450 13f79535-47bb-0310-9956-ffa450edef68 --- maven-core-it/README.txt | 6 ++++ maven-core-it/integration-tests.txt | 2 ++ maven-core-it/it0086/pom.xml | 38 +++++++++++++++++++++++ maven-core-it/it0087/pom.xml | 47 +++++++++++++++++++++++++++++ 4 files changed, 93 insertions(+) create mode 100644 maven-core-it/it0086/pom.xml create mode 100644 maven-core-it/it0087/pom.xml diff --git a/maven-core-it/README.txt b/maven-core-it/README.txt index 0ca51ccc27..1cd37823db 100644 --- a/maven-core-it/README.txt +++ b/maven-core-it/README.txt @@ -234,6 +234,12 @@ it0085: Verify that system-scoped dependencies get resolved with system scope dependency. Inherited scope should not apply in the case of system-scoped dependencies, no matter where they are. +it0086: Verify that a class in a plugin's dependencies can be loaded by both + .getClass().getClassLoader() and Thread.currentThread().getContextClassLoader(). + +it0087: Verify that a class in the project-level dependencies for a plugin can be loaded by both + .getClass().getClassLoader() and Thread.currentThread().getContextClassLoader(). + ------------------------------------------------------------------------------- - generated sources diff --git a/maven-core-it/integration-tests.txt b/maven-core-it/integration-tests.txt index da33f5bda0..059ca0040c 100644 --- a/maven-core-it/integration-tests.txt +++ b/maven-core-it/integration-tests.txt @@ -1,3 +1,5 @@ +it0087 +it0086 it0085 it0084 it0083 diff --git a/maven-core-it/it0086/pom.xml b/maven-core-it/it0086/pom.xml new file mode 100644 index 0000000000..5cc98adfae --- /dev/null +++ b/maven-core-it/it0086/pom.xml @@ -0,0 +1,38 @@ + + 4.0.0 + org.apache.maven.it + 1.0 + + it0086 + + Plugin Dependency Classloading Test + + + Ensure that classes in dependencies of the plugin can be loaded, both from the context loader and the plugin's classloader. + + + + + + org.apache.maven.plugins + maven-core-it-plugin + 1.0-SNAPSHOT + + + + validate + + + + bsh.Interpreter + + + + loadable + + + + + + + diff --git a/maven-core-it/it0087/pom.xml b/maven-core-it/it0087/pom.xml new file mode 100644 index 0000000000..77fed2a54c --- /dev/null +++ b/maven-core-it/it0087/pom.xml @@ -0,0 +1,47 @@ + + 4.0.0 + org.apache.maven.it + 1.0 + + it0087 + + POM Plugin-Dependency Classloading Test + + + Ensure that classes in dependencies specified in the POM's plugin configuration can be loaded, both from the context loader + and the plugin's classloader. + + + + + + org.apache.maven.plugins + maven-core-it-plugin + 1.0-SNAPSHOT + + + + commons-logging + commons-logging + 1.0.3 + + + + + + validate + + + + org.apache.commons.logging.LogFactory + + + + loadable + + + + + + +