[hibernate-dev] Eclipse-specific execution filters in POMs

Brett Meyer brmeyer at redhat.com
Thu Aug 23 12:42:27 EDT 2012


I know a lot of you don't use Eclipse, but...

Its Maven plugin (M2E) does not have connectors for several of Hibernate 3.3's lifecycle mappings.  The only way to get the IDE to ignore them is to add the following (as an example).  What are your opinions of having IDE-specific areas, like this, in the parent POM?



<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
                <plugin>
                	<groupId>org.eclipse.m2e</groupId>
                	<artifactId>lifecycle-mapping</artifactId>
                	<version>1.0.0</version>
                	<configuration>
                		<lifecycleMappingMetadata>
                			<pluginExecutions>
                				<pluginExecution>
                					<pluginExecutionFilter>
                						<groupId>
                							org.jboss.maven.plugins
                						</groupId>
                						<artifactId>
                							maven-injection-plugin
                						</artifactId>
                						<versionRange>
                							[1.0.2,)
                						</versionRange>
                						<goals>
                							<goal>bytecode</goal>
                						</goals>
                					</pluginExecutionFilter>
                					<action>
                						<ignore></ignore>
                					</action>
                				</pluginExecution>
                			</pluginExecutions>
                		</lifecycleMappingMetadata>
                	</configuration>
                </plugin>


More information about the hibernate-dev mailing list