[
https://jira.codehaus.org/browse/MECLIPSE-744?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andreas Dolk closed MECLIPSE-744.
---------------------------------
Resolution: Not A Bug
Changed the phase from the second execution from "generate-test-sources" to
"generate-sources" and now the build helper plugin recognizes the test source
folders and the eclipse plugin creates the folders as expected.
So it's obviously not an maven eclipse plugin issue.
> Doesn't add test source folders defined on build-helper-plugin to eclipse
> build path
> ------------------------------------------------------------------------------------
>
> Key: MECLIPSE-744
> URL: https://jira.codehaus.org/browse/MECLIPSE-744
> Project: Maven 2.x Eclipse Plugin
> Issue Type: Bug
> Components: Core : Dependencies resolution and build path
> (.classpath)
> Affects Versions: 2.9
> Reporter: Andreas Dolk
>
> I've configured the build-helper-maven-plugin to add source folders both for
> main and test sources. The source folders from the "add-source" goal are
> added to the classpath while the source folders from the "add-test-sources"
> goal aren't. I'd expect that the folders from both goals are added.
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>build-helper-maven-plugin</artifactId>
> <version>${version.build-helper-maven-plugin}</version>
> <executions>
> <execution>
> <id>main-sources</id>
> <phase>generate-sources</phase>
> <goals>
> <goal>add-source</goal>
> </goals>
> <configuration>
> <sources>
> <source>src/main/xtend</source>
> </sources>
> </configuration>
> </execution>
> <execution>
> <id>test-sources</id>
> <phase>generate-test-sources</phase>
> <goals>
> <goal>add-test-source</goal>
> </goals>
> <configuration>
> <sources>
> <source>src/test/xtend</source>
> </sources>
> </configuration>
> </execution>
> </executions>
> </plugin>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira