[ 
https://jira.codehaus.org/browse/MCOMPILER-150?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Scholte closed MCOMPILER-150.
------------------------------------

    Resolution: Not A Bug
      Assignee: Robert Scholte

It looks to me you're using a wrong test directory or a wrong package.
The default testSourceDirectory is {{src/test/java}}, not {{src/test/java/test}}
That should be the reason why the compiler complains: the fully qualified name 
of the class and the path to the java-file don't match.

> testCompile Unable to Include Compiled source classes
> -----------------------------------------------------
>
>                 Key: MCOMPILER-150
>                 URL: https://jira.codehaus.org/browse/MCOMPILER-150
>             Project: Maven 2.x Compiler Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2
>            Reporter: ashwin
>            Assignee: Robert Scholte
>
> C:\>mvn -version
> Apache Maven 2.2.1 (r801777; 2009-08-06 15:16:01-0400)
> Java version: 1.6.0_21
> Java home: C:\setup\Java\jdk1.6.0_21\jre
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
> [INFO] 1error
> [INFO] -------------------------------------------------------------
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Compilation failure
> \project\src\test\java\test\com\linkwithweb\WorkflowTest.java:[58,-1] cannot 
> access test.com.linkwithweb.Workflow
> bad class file: \test\com\linkwithweb\Workflow.java
> When you dont have same Directory structure in test and when import 
> statements are inform of com.linkwithweb.* in test calsses. It is trying to 
> find wrong classes file or infact pointing to wrong class file

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to