You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2004/11/05 04:59:47 UTC
[jira] Commented: (MPTEST-45) maven test plugin 1.6.2 test throws a ClassNotFound exception in a subtier level project
The following comment has been added to this issue:
Author: Brett Porter
Created: Thu, 4 Nov 2004 10:59 PM
Body:
inheritence was not behaving as it should in rc2, and was deliberately changed. I think this is it.
Can you detail the parent projects you have and what their build sections look like?
Thanks.
---------------------------------------------------------------------
View this comment:
http://jira.codehaus.org/browse/MPTEST-45?page=comments#action_26089
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MPTEST-45
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MPTEST-45
Summary: maven test plugin 1.6.2 test throws a ClassNotFound exception in a subtier level project
Type: Bug
Status: Unassigned
Priority: Major
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: maven-test-plugin
Assignee:
Reporter: Daniel Flesner
Created: Thu, 4 Nov 2004 9:26 PM
Updated: Thu, 4 Nov 2004 10:59 PM
Environment: Solaris 9, maven 1.0, sun jdk 1.4.2_03
Description:
when running a sub level project the test:compile somehow gets confused and doesn't include the <unitTest><includes>. hence, the test fails with a class not found on the Test class itself. the exact same project.xml file works fine in rc2. the debug output from 1.0:
---
test:compile:
[available] [DEBUG] class "X" was not found
[available] [VERBOSE] Unable to load class X to set property classPresent
[javac] [DEBUG] fileset: Setup scanner in dir /home/dflesner/ct/dev/ims/components/authn/components/authn-cmd/test/java with patternSet{ includes: [**/*Command.java] excludes: [**/package.html] }
---the same output from rc2---
test:compile:
[javac] [DEBUG] fileset: Setup scanner in dir /home/dflesner/ct/dev/ims/components/authn/components/authn-cmd/test/java with patternSet{ includes: [] excludes: [**/package.html] }
[javac] [VERBOSE] com/rsa/authn/LoginCommandTest.java added as com/rsa/authn/LoginCommandTest.class doesn't exist.
[javac] [VERBOSE] com/rsa/authn/LogoutCommandTest.java added as com/rsa/authn/LogoutCommandTest.class doesn't exist.
[javac] Compiling 2 source files to /home/dflesner/ct/dev/ims/components/authn/components/authn-cmd/target/test-classes
---
notice the includes is different. the includes is actually the src modifications not the test includes?
my project.xml excerpt
---
<build>
<sourceDirectory>../../src/java</sourceDirectory>
<resources>
<resource>
<directory>src/java/</directory>
<includes>
<include>**/*.properties</include>
</includes>
</resource>
</resources>
<sourceModifications>
<sourceModification>
<className>X</className>
<includes>
<include>**/*Command.java</include>
</includes>
</sourceModification>
</sourceModifications>
<unitTestSourceDirectory>test/java</unitTestSourceDirectory>
<unitTest>
<includes>
<include>**/*Test.java</include>
</includes>
</unitTest>
</build>
---the actual error in the test log
Null Test: Caused an ERROR
com.rsa.authn.LoginCommandTest
java.lang.ClassNotFoundException: com.rsa.authn.LoginCommandTest
at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org