[ 
http://jira.codehaus.org/browse/MECLIPSE-581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=182611#action_182611
 ] 

Andrea Aime commented on MECLIPSE-581:
--------------------------------------

I was cooking up a patch for another issue when I noticed the block of code 
responsible for this:

{code}
        // NOTE: Since MNG-3118, test classes come before main classes
        boolean testBeforeMain = isMavenVersion( "[2.0.8,)" );

        if ( testBeforeMain )
        {
            directories.addAll( testDirectories );
            directories.removeAll( mainDirectories );
            directories.addAll( mainDirectories );
        }
        else
        {
            directories.addAll( mainDirectories );
            directories.addAll( testDirectories );
        }
{code}

So it would seem it's a maven wide change.  I too find having the test 
directories first very annoying, it should be possible to have an option to get 
back the old order. It could simply be <testBeforeMain>false</testBeforeMain> 
in the eclipse configuration. Not hard to make a patch for this too, provided 
the plugin developers are interested in merging it. I can cook up a patch if 
the devs provide directions on how they would like the option to be exposed.

> Test source directories appear before Main source directories
> -------------------------------------------------------------
>
>                 Key: MECLIPSE-581
>                 URL: http://jira.codehaus.org/browse/MECLIPSE-581
>             Project: Maven 2.x Eclipse Plugin
>          Issue Type: Bug
>          Components: Core : .project
>    Affects Versions: 2.6
>         Environment: Maven 2.0.10
>            Reporter: Paul Benedict
>
> This is either a bug or a questionable feature. When I run eclipse:eclipse on 
> a project that has siblings in its parent POM, two things happen:
> (1) the sibling projects become a dependent project, not jar dependencies
> (2) src/test appears before src/main in the package explorer.
> I can handle #1, but #2 really is a tough adjustment.

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