jbosstools / m2e-apt

Maven integration with Eclipse JDT Annotation Processor Toolkit
39 stars 19 forks source link

Problems uninstalling m2e-apt #44

Open mcacker opened 8 years ago

mcacker commented 8 years ago

When uninstalling m2e-apt (to try and diagnose build issues), the workspace is left in a corrupted state. All poms now have the following error:

Project configurator "org.jboss.tools.maven.apt.MavenCompilerAptProjectConfigurator" required by plugin execution "org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (execution: default-compile, phase: compile)" is not available. To enable full functionality, install the project configurator and run Maven->Update Project Configuration. pom.xml /BobCommon  line 3  Maven Project Build Lifecycle Mapping Problem

Additionally, I had to manually remove

.settings/org.eclipse.jdt.apt.core.prefs
.factorypath

and edit

.classpath
org.eclipse.wst.common.component

It looks like the workspace lifecyclemapping files in .metadata.plugins\org.eclipse.m2e.core retain metadata regarding apt:

org.jboss.tools.maven.apt.MavenCompilerAptProjectConfigurator
wti commented 4 years ago

For me the errors and the generated annotation directories returned after destroying all those, even after deleting the project and the jboss metadata and of course removing the annotation configuration and dependencies from the pom.xml.

The ground-hog day eternal return of the same only stopped after I disabled annotations in .settings/org.eclipse.jdt.core.prefs.

mickaelistria commented 2 years ago

m2e-apt's code is now included in https://github.com/eclipse-m2e/m2e-core , please consider reporting issue to https://github.com/eclipse-m2e/m2e-core/issues if it's still relevant.