[fcrepo-dev] m2e, generated classes and lifecyclemapping

0 views
Skip to first unread message

frank asseg

unread,
May 11, 2012, 10:45:36 AM5/11/12
to fedora-commo...@lists.sourceforge.net
Hola guys,

To get rid of eclipse errors the following additions to poms worked for me:

for CXF's generated classes the following helped:

in fcrepo-common/pom.xml i added the following as stated in the SO
question at
http://stackoverflow.com/questions/7160006/m2e-and-having-maven-generated-source-folders-as-eclipse-source-folders

<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>${project.build.directory}/generated-sources/cxf/</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>



for the lifecycle mapping errors changing fcrepo-server/pom.xml
according to this:
http://wiki.eclipse.org/M2E_plugin_execution_not_covered#ignore_plugin_goal
did the trick

<pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<versionRange>[1.0.0,)</versionRange>
<goals>
<goal>java</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore />
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>


hope this helps

Frank


--
*frank asseg*
softwareentwicklung
feichtmayrstrasse 37
76646 bruchsal
tel.: ++49-7251-322-6073
fax.: ++49-7251-322-6078
mail: frank...@congrace.de
web: http://www.congrace.de/

Reply all
Reply to author
Forward
0 new messages