Adding integration tests for plugin classloading.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@367450 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
John Dennis Casey 2006-01-10 01:14:38 +00:00
parent 00e6c04044
commit 38903be78d
4 changed files with 93 additions and 0 deletions

View File

@ -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
<plugin>.getClass().getClassLoader() and Thread.currentThread().getContextClassLoader().
it0087: Verify that a class in the project-level dependencies for a plugin can be loaded by both
<plugin>.getClass().getClassLoader() and Thread.currentThread().getContextClassLoader().
-------------------------------------------------------------------------------
- generated sources

View File

@ -1,3 +1,5 @@
it0087
it0086
it0085
it0084
it0083

View File

@ -0,0 +1,38 @@
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.maven.it</groupId>
<version>1.0</version>
<artifactId>it0086</artifactId>
<name>Plugin Dependency Classloading Test</name>
<description>
Ensure that classes in dependencies of the plugin can be loaded, both from the context loader and the plugin's classloader.
</description>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-core-it-plugin</artifactId>
<version>1.0-SNAPSHOT</version>
<executions>
<execution>
<phase>validate</phase>
<configuration>
<className>
bsh.Interpreter
</className>
</configuration>
<goals>
<goal>loadable</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@ -0,0 +1,47 @@
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.maven.it</groupId>
<version>1.0</version>
<artifactId>it0087</artifactId>
<name>POM Plugin-Dependency Classloading Test</name>
<description>
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.
</description>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-core-it-plugin</artifactId>
<version>1.0-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.0.3</version>
</dependency>
</dependencies>
<executions>
<execution>
<phase>validate</phase>
<configuration>
<className>
org.apache.commons.logging.LogFactory
</className>
</configuration>
<goals>
<goal>loadable</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>