You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by jd...@apache.org on 2006/01/10 02:14:43 UTC
svn commit: r367450 - in /maven/components/trunk/maven-core-it: README.txt
integration-tests.txt it0086/ it0086/pom.xml it0087/ it0087/pom.xml
Author: jdcasey
Date: Mon Jan 9 17:14:38 2006
New Revision: 367450
URL: http://svn.apache.org/viewcvs?rev=367450&view=rev
Log:
Adding integration tests for plugin classloading.
Added:
maven/components/trunk/maven-core-it/it0086/
maven/components/trunk/maven-core-it/it0086/pom.xml (with props)
maven/components/trunk/maven-core-it/it0087/
maven/components/trunk/maven-core-it/it0087/pom.xml (with props)
Modified:
maven/components/trunk/maven-core-it/README.txt
maven/components/trunk/maven-core-it/integration-tests.txt
Modified: maven/components/trunk/maven-core-it/README.txt
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-core-it/README.txt?rev=367450&r1=367449&r2=367450&view=diff
==============================================================================
--- maven/components/trunk/maven-core-it/README.txt (original)
+++ maven/components/trunk/maven-core-it/README.txt Mon Jan 9 17:14:38 2006
@@ -234,6 +234,12 @@
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
Modified: maven/components/trunk/maven-core-it/integration-tests.txt
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-core-it/integration-tests.txt?rev=367450&r1=367449&r2=367450&view=diff
==============================================================================
--- maven/components/trunk/maven-core-it/integration-tests.txt (original)
+++ maven/components/trunk/maven-core-it/integration-tests.txt Mon Jan 9 17:14:38 2006
@@ -1,3 +1,5 @@
+it0087
+it0086
it0085
it0084
it0083
Added: maven/components/trunk/maven-core-it/it0086/pom.xml
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-core-it/it0086/pom.xml?rev=367450&view=auto
==============================================================================
--- maven/components/trunk/maven-core-it/it0086/pom.xml (added)
+++ maven/components/trunk/maven-core-it/it0086/pom.xml Mon Jan 9 17:14:38 2006
@@ -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>
Propchange: maven/components/trunk/maven-core-it/it0086/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/components/trunk/maven-core-it/it0086/pom.xml
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added: maven/components/trunk/maven-core-it/it0087/pom.xml
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-core-it/it0087/pom.xml?rev=367450&view=auto
==============================================================================
--- maven/components/trunk/maven-core-it/it0087/pom.xml (added)
+++ maven/components/trunk/maven-core-it/it0087/pom.xml Mon Jan 9 17:14:38 2006
@@ -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>
Propchange: maven/components/trunk/maven-core-it/it0087/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/components/trunk/maven-core-it/it0087/pom.xml
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"