You need to add the build helper m2e extension from Window > Preferences >
Maven > Discovery > Open catalog

On Fri, Jun 15, 2012 at 1:44 PM, Cristiano Gavião <[email protected]>wrote:

>  Hi,
>
> I would like to know how configure m2e to deal with alternative source
> folders and add them to build path.
>
> I've setup the plugin below, but every time that I update the project it
> removes the source from the build path.
>
> <plugins>
>             <plugin>
>                 <groupId>org.codehaus.mojo</groupId>
>                 <artifactId>build-helper-maven-plugin</artifactId>
>                 <executions>
>                     <execution>
>                         <phase>generate-sources</phase>
>                         <goals>
>                             <goal>add-source</goal>
>                         </goals>
>                         <configuration>
>                             <sources>
>
> <source>${project.build.directory}/src-gen</source>
>                             </sources>
>                         </configuration>
>                     </execution>
>                 </executions>
>             </plugin>
>         </plugins>
>
> thanks,
>
> Cristiano
>
> _______________________________________________
> m2e-users mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/m2e-users
>
>


-- 
"Have you tried turning it off and on again" - The IT Crowd
_______________________________________________
m2e-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/m2e-users

Reply via email to