Skip to main content

[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 ?

Hi Fred,
I already have installed build helper m2e extension.

But I forget to say an important thing: this project is a eclipse plugin.

Now I could make it work properly. There is no need of build-helper-maven-plugin, I just need to do this in build.properties:

source.. = src/main/java/,\
           src-gen/


thanks for answer anyway...

regards,

Cristiano

On 15/06/12 08:46, Fred Bricon wrote:
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


_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users


Back to the top