I am trying to add the source folder for a maven java project in Eclipse using the maven plugin.
When I try to use the org.codehaus.mojo plugin, I get the following error
Failed to fulfill the target org.codehaus.mojo: build-helper-maven-plugin: 1.7: add-source (default-cli) in the project infrastructure project: source parameters for the target org.codehaus.mojo: build-helper- maven-plugin: 1.7: add-source missing or invalid β [Help 1]
From reading documents at http://mojo.codehaus.org/build-helper-maven-plugin/usage.html, should this be correct? The target / sources / mygeneratedfiles folder is available.
<plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <executions> <execution> <id>add-source</id> <phase>generate-sources</phase> <goals> <goal>add-source</goal> </goals> <configuration> <sources> <source>target/sources/mygeneratedfiles</source> </sources> </configuration> </execution> </executions> </plugin>
maven m2e
blue-sky May 24 '12 at 9:40 2012-05-24 09:40
source share