[
https://issues.apache.org/jira/browse/HADOOP-7660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13109268#comment-13109268
]
Laxman commented on HADOOP-7660:
--------------------------------
sourceIncludes approach didn't work for me. Please check if my usage is wrong.
{code:xml}
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<configuration>
<sourceIncludes>
<sourceInclude>${project.build.directory}/generated-test-sources/java/*.java</sourceInclude>
</sourceIncludes>
</configuration>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
...
...
{code}
> Maven generated .classpath doesnot includes
> "target/generated-test-source/java" as source directory.
> ----------------------------------------------------------------------------------------------------
>
> Key: HADOOP-7660
> URL: https://issues.apache.org/jira/browse/HADOOP-7660
> Project: Hadoop Common
> Issue Type: Bug
> Components: build
> Affects Versions: 0.24.0
> Reporter: Laxman
> Priority: Minor
> Labels: eclipse, maven
> Fix For: 0.24.0, HA Branch (HDFS-1623)
>
>
> I can see lot of compilation issues after setting up my development
> environment using "mvn eclipse:eclipse". All these compilation issues are
> resolved after adding "target/generated-test-sources" as a source folder to
> the common project.
> When verified the "pom.xml", it's noticed that these are included under
> "generate-test-sources" phase. This seems to be a problem occurred because of
> incorrect understanding/usage of "build-helper-maven-plugin" in Common
> project.
> All these compilation issues are resolved after changing the phase to
> "generate-sources".
> I found similar issue here.
> https://issues.sonatype.org/browse/MNGECLIPSE-2387
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira