Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[m2e-users] build-helper-maven-plugin and add source support in m2e

Hi,


I am using the build-helper-maven-plugin to integrate sources that are
outside of the current pom.xml project. I know it's not the best
practise, but that's the way it is now.

The source nicely compiles on the command line,

But m2e has problems making the source available in eclipse.

The error message is:
Access "/Users/me/workspace/project/gwt/../play/app" directory outside
of project base directory.
(org.apache.maven.plugins:maven-resources-plugin:2.5:resources:default-resources:process-resources)

(Plugin configuration is at the bottom.)

Any ideas how to integrate that? I am not sure - but if I am not
completely wrong that worked in an older version of m2e.

My specs:
 m2e - Maven Integration for
Eclipse 1.0.100.20110804-1717   org.eclipse.m2e.feature.feature.group
 Eclipse.org
- m2e
 m2e connector for
build-helper-maven-plugin       0.14.0.201109282148
org.sonatype.m2e.buildhelper.feature.feature.group      Sonatype,
Inc.

Thanks a lot :)


Best,


Raphael


<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>../play/app/shared</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>


Back to the top