Error when building Orekit using Maven DefaultDataContextPlugin

Hello
I am trying to use Maven to build Orekit12.2.1 in IntelliJ IDEA
But I am getting this error:
i encountered the following error:
java: java.util.ServiceConfigurationError: com.sun.source.util.Plugin: Provider org.orekit.compiler.plugin.DefaultDataContextPlugin not found

but the file META-INF/services/com.sun.source.util.Plugin exists;
the class containing DefaultDataContextPlugin is on the classpath
also i have the “tools.jar” library

so why?
thank you

Hi @shadow,

Welcome to the forum!

Which JDK or SDK are you using?
And what is the maven command you’re launching from the IDE?

Cheers,
Maxime

Thank you very much for your reply.
I have found the cause of the problem. It was because the Maven version used by my IDE was 3.8. Later, I changed it to 3.6.3, and the build was successful.
thank you again!

Great!
FYI I’m on Maven 3.9.8 in IntelliJ and it works…
I’ll mark the topic as solved since you managed to do it yourself

Perhaps it was because the Maven version set in my environment variables was 3.3.9. Later, I changed it to 3.6.3。

1 Like