Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] Stopping m2e to create non-existing source folders specified in build-helper-maven-plugin

I vaguely remember wtp was doing that. See if you can reproduce the
problem with m2e installed on fresh/clean "standard" eclipse package
from http://www.eclipse.org/downloads/

--
Regards,
Igor

On 10/26/2013, 12:50 PM, Luca Naldini wrote:
In the parent pom of my projects I've the following
build-helper-maven-plugin setup:

<plugin>
             <groupId>org.codehaus.mojo</groupId>
             <artifactId>build-helper-maven-plugin</artifactId>
             <version>1.5</version>
             <executions>
                 <execution>
                     <id>add-test-source</id>
                     <phase>generate-sources</phase>
                     <goals>
                         <goal>add-test-source</goal>
                     </goals>
                     <configuration>
                         <sources>
                             <source>src/it/java</source>
                         </sources>
                     </configuration>
                 </execution>
             </executions>
         </plugin>

so that when I do Maven -> Update project, m2e adds the src/it/java
folder to the sources of the project. That folder exists in most of
the projects using that parent pom, but for the projects that don't
have the folder, m2e will create it. I would like that folder to not
be created. Is there a way to tell eclipse/m2/build-helper plugin to
not create the source folder if does not exist? I'm using eclipse
Kepler and m2e 1.4 with build-helper connector 0.5.

When I do Maven -> Update project and untick the "Update project
configuration from pom", then the folder is not created, but I would
rather tell m2e not to create the folder instead of unticking the
option for certain projects only.

This issue is not happening using an old version of the plugin
(0.10.2) in eclipse Indigo.
_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users



Back to the top