Skip to content
This repository has been archived by the owner on Feb 18, 2022. It is now read-only.

Provider org.eclipse.sisu.space.SisuIndexAPT6 not found error when using m2e-apt #43

Open
mcacker opened this issue Sep 22, 2015 · 6 comments

Comments

@mcacker
Copy link

mcacker commented Sep 22, 2015

I've installed m2e-apt in Eclipse Mars, and am running into the following error:

Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation failure
error: Bad service configuration file, or exception thrown while constructing Processor object:  
javax.annotation.processing.Processor: Provider org.eclipse.sisu.space.SisuIndexAPT6 not found

The error seems to occur in several different projects, regardless whether i'm directly using annotations, though perhaps dependencies are annotated, unless I explicitly disable it using

        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>2.3.2</version>
            <configuration>
                <source>1.8</source>
                <target>1.8</target>
                <compilerArgument>-proc:none</compilerArgument>
            </configuration>
        </plugin>

using

        <m2e.apt.activation>maven_plugin</m2e.apt.activation> or
        <m2e.apt.activation>disabled</m2e.apt.activation>

makes no difference. Any ideas how to fix it?

thanks, Mitchell

@fbricon
Copy link
Member

fbricon commented Sep 22, 2015

Do you have a sample project reproducing the error?

@mcacker
Copy link
Author

mcacker commented Sep 22, 2015

Unfortunately, the projects i'm trying to use m2e-apt with are quite extensive, so it would be hard to provide one of these as a sample. I'll see if I can cobble one together

@fbricon
Copy link
Member

fbricon commented Sep 22, 2015

the maven_plugin mode is very experimental. What happens if you use <m2e.apt.activation>jdt_apt</m2e.apt.activation>?

@mcacker
Copy link
Author

mcacker commented Sep 22, 2015

I still see the error with this setting. It runs my annotations, but then I get the above error.

Just to clarify, i'm seeing the error when I run a maven build from an Eclipse run configuration. I'm not sure yet that it's running yet during incremental compilation.

@fbricon
Copy link
Member

fbricon commented Sep 22, 2015

well m2e-apt is only relevant in the context of Eclipse builds (incremental or not), not while executing Maven build commands from the Run As menu.

@mickaelistria
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants