[ http://jira.codehaus.org/browse/MNG-2427?page=comments#action_69476 ] 

Brett Porter commented on MNG-2427:
-----------------------------------

it seems javac will compile the dependant java files from the outputDirectory. 
I need to take a closer look at why it is setup such that it needs to compile 
those java files since they should just be used to extract javadocs from in the 
test case.

The patch isn't very helpful - but that's ok because it should be done with svn 
operations anyway (svn mv the files), if that's the correct solution.

> [PATCH] Maven fresh checkout does not compile 
> (JavaMojoDescriptorExtractorTest error, source2 folder)
> -----------------------------------------------------------------------------------------------------
>
>          Key: MNG-2427
>          URL: http://jira.codehaus.org/browse/MNG-2427
>      Project: Maven 2
>         Type: Bug

>     Versions: 2.0.5
>  Environment: Linux Gentoo 2.6.12, JDK blackdown 1.4.2
>     Reporter: Simone Gianni
>     Priority: Critical
>  Attachments: MVN1.patch
>
>
> The JavaMojoDescriptorExtractorTest contains an import for source2.MyBla . 
> Sources for this classes are in the src/test/resources but not in 
> src/test/java, so the test does not compile and gives the following error :
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] Building Maven Plugin Tools for Java
> [INFO]    task-segment: [install]
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:testCompile]
> Compiling 1 source file to 
> /home/sym/workspaces/Apache/maven/components/maven-plugin-tools/maven-plugin-tools-java/target/test-classes
> [INFO] 
> ----------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] Compilation failure
>  
> /home/sym/workspaces/Apache/maven/components/maven-plugin-tools/maven-plugin-tools-java/src/test/java/org/apache/maven/tools/plugin/extractor/java/JavaMojoDescriptorExtractorTest.java:[30,19]
>  package source2.sub does not exist
>  
> /home/sym/workspaces/Apache/maven/components/maven-plugin-tools/maven-plugin-tools-java/src/test/java/org/apache/maven/tools/plugin/extractor/java/JavaMojoDescriptorExtractorTest.java:[94,22]
>  cannot resolve symbol
> symbol  : class MyBla
> location: class 
> org.apache.maven.tools.plugin.extractor.java.JavaMojoDescriptorExtractorTest
> Copying the source2 directory to src/test/java solved the problem, but I'm 
> not sure this is the correct behaviour.

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to