[mevenide-dev] [jira] Commented: (MEVENIDE-613) NetBeans does not recognise Test Packages as a source directory

"Milos Kleint (JIRA)" <jira-yCVjj/[email protected]>
Newsgroups gmane.comp.jakarta.turbine.maven.mevenide.devel
Message-ID <33424571.1206197086143.JavaMail.haus-jira@codehaus01.managed.contegix.com>
    [ http://jira.codehaus.org/browse/MEVENIDE-613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=128259#action_128259 ] 

Milos Kleint commented on MEVENIDE-613:
---------------------------------------

Oh well, doesn't work in 3.1-SNAPSHOT either. seems to be closely related to (or duplicate of)  http://www.netbeans.org/issues/show_bug.cgi?id=125603

the problem is not the custom test location, but the <resources> element defined in the parent's parent pom. it sets the resources root at ${basedir} and unfortunately it comes before the actual test root on the IDE's classpath.

a fix for it involves implementing classpath items with includes/excludes. 

> NetBeans does not recognise Test Packages as a source directory
> ---------------------------------------------------------------
>
>                 Key: MEVENIDE-613
>                 URL: http://jira.codehaus.org/browse/MEVENIDE-613
>             Project: mevenide
>          Issue Type: Bug
>          Components: mevenide2-netbeans
>    Affects Versions: NB_3.0
>         Environment: NetBeans 6.0.1, NetBeans 6.1Beta
> Using external Maven: apache-maven-2.0.8
> jdk 1.6.0_04
>            Reporter: David Rosell
>            Assignee: Milos Kleint
>            Priority: Minor
>             Fix For: NB_3.1
>
>
> It is a major annoyance to have correct code marked as incorrect in NetBeans.
> When checking out the apache-commons.csv project, NetBeans mark all the test classes as error.
> NetBeans don't recognise the Test Package directory as a source directory. All classes in Test Package are reported as "Incorrect Package" - "Change package declaration to src.test.org.apache.commons.csv". (the correct package is "org.apache.commons.csv")
> I believe it is this section in the pom that is missinterpreted:
>   <build>
>       <sourceDirectory>src/java</sourceDirectory>
>       <testSourceDirectory>src/test</testSourceDirectory> 
>   </build>
> The project builds correctly and the tests run correctly.
> To reproduce the problem - Check out the trunk from apache-commons-csv:
> http://svn.apache.org/repos/asf/commons/sandbox/csv/trunk/

-- 
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

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.