[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
| Re: [m2e-users] how to configure m2e to deal with generated source folder ? | 
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 
<cvgaviao@xxxxxxxxx> 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
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users
-- 
"Have you tried turning it off and on again" - The IT Crowd