If I understand the code to the eclipse plugin correctly, it is not possible
to have a seperate output directory for tests unless you also build eclipse
classes into the same place as the normal maven build puts things:
org.apache.maven.plugin.eclipse.EclipsePlugin.buildDirectoryList(...)
| // If using the standard output location, don't mix the test output into
it.
| String testOutput = null;
| boolean useStandardOutputDir = buildOutputDirectory
| .equals( new File( project.getBuild().getOutputDirectory() ) );
| if ( useStandardOutputDir )
| {
| testOutput = IdeUtils.toRelativeAndFixSeparator( projectBaseDir, new File(
project.getBuild()
| .getTestOutputDirectory() ), false );
| }
|
There's only one parameter that controls output so it is all or nothing.
We have this configured in jboss-parent
| <plugin>
| <groupId>org.apache.maven.plugins</groupId>
| <artifactId>maven-eclipse-plugin</artifactId>
| <configuration>
| <downloadSources>true</downloadSources>
|
<buildOutputDirectory>target/eclipse-classes</buildOutputDirectory>
| </configuration>
| </plugin>
|
What we really want is the non-existant:
|
<testOutputDirectory>target/eclipse-classes-tests</testOutputDirectory>
|
as well.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034552#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...