| Summary: | Don't force Java Build Path Excluded: ** if a custom Lifecyle Mapping is used | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Michael Vorburger <mike> |
| Component: | m2e | Assignee: | Project Inbox <m2e.core-inbox> |
| Status: | CLOSED WORKSFORME | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | igor |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Michael Vorburger
You should be able to do this in m2e 1.0 already. Very rough implementation idea. 1. Implement custom project configurator that extends org.eclipse.m2e.jdt.internal.AbstractJavaProjectConfigurator and configures project source folders as necessary. 2. In pom.xml file of your project (or parent pom), map maven-compiler-plugin with compilerId=javac to the custom project configurator from start 1 above. See [1] for the standard mapping 3. In pom.xml file of your project (or parent pom), map maven-resources-plugin resources and testResources goals to <ignore/> action. You can read more about m2e build lifecycle mapping and extensions development in [2] and [3]. Please ask any further questions on m2e-dev@eclipse.org mailing list [1] http://git.eclipse.org/c/m2e/m2e-core.git/tree/org.eclipse.m2e.jdt/lifecycle-mapping-metadata.xml?id=releases/1.0/1.0.0.20110607-2117 [2] http://wiki.eclipse.org/M2E_plugin_execution_not_covered [3] http://wiki.eclipse.org/M2E_Extension_Development |