I just had some problems with cgen declaration in the POM after upgrading to 1.0 version of M2Eclipse plugin. Turns out Cayenne projects now need the following declaration in the POM for the plugin to correctly work with cgen. This does not affect the command line build, only the behavior within Eclipse.
See http://wiki.eclipse.org/M2E_plugin_execution_not_covered for more details. We may need to contribute an extension to M2Eclipse, so that it recognizes Cayenne out of the box without this hack in the future. For now add this to your poms. Andrus <build> <pluginManagement> <plugins> <plugin> <groupId>org.eclipse.m2e</groupId> <artifactId>lifecycle-mapping</artifactId> <version>1.0.0</version> <configuration> <lifecycleMappingMetadata> <pluginExecutions> <pluginExecution> <pluginExecutionFilter> <groupId>org.apache.cayenne.plugins</groupId> <artifactId>maven-cayenne-plugin</artifactId> <versionRange>[1.0,)</versionRange> <goals> <goal>cgen</goal> </goals> </pluginExecutionFilter> <action> <execute /> </action> </pluginExecution> </pluginExecutions> </lifecycleMappingMetadata> </configuration> </plugin> </plugins> </pluginManagement> </build>
