Recently I've started making changes to the Dropwizard base code using Eclipse. When setting up the workspace, I noticed that the default-compile and default-testCompile goals are not recognized by m2e. It turns out to be known limitation with the m2e plugin and the workaround is as follows:
1. Run Eclipse and open the Dropwizard workspace. 2. In the top menu, open *Window* > *Preferences*. 3. In the *Preferences* dialog, expand *Maven* and select *Lifecycle Mappings* from the left menu tree. 4. Click *Open workspace lifecycle mappings metadata*, then close the dialog. 5. In the editor view for the opened lifecycle-mapping-metadata.xml file, copy and paste the following code: <?xml version="1.0" encoding="UTF-8"?> <lifecycleMappingMetadata> <lifecycleMappings> <lifecycleMapping> <packagingType>jar</packagingType> <lifecycleMappingId>org.eclipse.m2e.jdt.JarLifecycleMapping </lifecycleMappingId> </lifecycleMapping> </lifecycleMappings> <pluginExecutions> <pluginExecution> <pluginExecutionFilter> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <versionRange>3.5.1</versionRange> <goals> <goal>testCompile</goal> <goal>compile</goal> </goals> </pluginExecutionFilter> <action> <configurator> <id>org.eclipse.m2e.jdt.javaConfigurator</id> </configurator> </action> </pluginExecution> </pluginExecutions> </lifecycleMappingMetadata> 6. Save and close the file. 7. Restart Eclipse. After this, the Maven errors no longer show up and you can use Eclipse normally to develop Dropwizard. Just wanted to leave this instruction somewhere in case any developer wants to use Eclipse for Dropwizard development. -- You received this message because you are subscribed to the Google Groups "dropwizard-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to dropwizard-dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.