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

WTP is installed as a dependency of m2e-wtp.

Luca Naldini <luca.naldini.82@xxxxxxxxx> wrote:
>I've installed a fresh standard version of eclipse and m2e, and as you
>said, the problem is not occurring.
>In the list of software installed on the eclipse where the problem is
>occurring, I don't seem to have WTP installed, just m2e-wtp connector.
>I've tried to install that on the fresh eclipse, but the problem still
>has not occurred.
>Any further suggestions on how to isolate the issue?
>thanks
>
>
>On Sun, Oct 27, 2013 at 12:08 AM, Igor Fedorenko <igor@xxxxxxxxxxxxxx>
>wrote:
>> 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
>>>
>> _______________________________________________
>> m2e-users mailing list
>> m2e-users@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/m2e-users
>_______________________________________________
>m2e-users mailing list
>m2e-users@xxxxxxxxxxx
>https://dev.eclipse.org/mailman/listinfo/m2e-users

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.


Back to the top