Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 2.5
-
Fix Version/s: None
-
Labels:None
-
Number of attachments :
Description
As soon as buildOutputDirectory is set to a non-default value the output directories for all source folders are the same. It should be possible to specify a buildTestOutputDirectory to separate main and test classes, as is the default behaviour when buildOutputDirectory is not set.
Issue Links
- is depended upon by
-
GEOT-2576
Have eclipse put its class files on its own directory instead of the default maven one
-
Activity
Andrea Aime
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Attachment | separateOutputs.patch [ 42976 ] |
Andrea Aime
made changes -
| Attachment | testOutputDirectory.patch [ 42977 ] |
Andrea Aime
made changes -
Arnaud Heritier
made changes -
| Assignee | Arnaud Heritier [ aheritier ] |
Arnaud Heritier
made changes -
| Assignee | Arnaud Heritier [ aheritier ] |
Hannu Leinonen
made changes -
| Attachment | fakeBuildOutputDirectory.patch [ 47268 ] |
buildOutputDirectory is useless; I can't think of a scenario in which one would want to mix test- and non-test folders, but it seems like the plugin was designed that way, according to this comment in EclipsePlugin.java:
// If using the standard output location, don't mix the test output into it.
A possible workaround:
Specify the output directory at the project level under /project/build, for example, like this:
<outputDirectory>WebContent/WEB-INF/classes</outputDirectory>
And don't specify buildOutputDirectory - the eclipse plugin will automatically use the default outputDirectory for non-test classes only.
Note For a web app, also specify correct webapp path under /project/build/plugins/plugin[artifactId="maven-war-plugin"]/configuration, like this:
<warSourceDirectory>WebContent</warSourceDirectory>