"Can not set org.eclipse.aether.spi.log.Logger" with custom maven plugin

I had same issue but after updating maven version from 3.3.9 to 3.6.3 solved my problem. Please try upgrading maven to 3.6.X . Hope this helps someone. Happy Learning :).


After some research, I felt it looked like some version incompatibility. and indeed, it is, between the maven version I am using to build the applications using the plugin, and the maven core version used in the plugin.

  • in my plugin, I was using latest maven core version available as a dependency, ie 3.5.2
  • I am building the plugin with Maven 3.3.1 and build is OK.
  • but when I build a project using the plugin, with Maven 3.3.1, the problem happens.

I downgraded maven core to 3.3.9, then rebuilt my plugin, and it works now.

I guess there are some incompatibilities between maven core 3.5.x and previous maven runtime..

I see on https://jaxenter.com/apache-maven-3-5-0-nothing-see-3-4-0-move-along-133180.html that they switched ... from Eclipse Aether to Maven Artifact Resolver

but what was very confusing is that my build was failing not at the time of my plugin being called, but after.


For a spring boot project, if you can't easily update maven version for some reason ( in my case the error appeared in automated builds which used a maven docker container from a custom docker registry )

Specifying a version for plugin spring-boot-maven-plugin fixed the issue for me

    <pluginManagement>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <version>1.3.5.RELEASE</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>repackage</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </pluginManagement>

if you are running inside IntelliJ IDEA go to

  • Build -> Execution, Deployment > Build tools > Maven

  • Update maven directory as your maven /dir. (maven-3.6.0)

The default one is 3.3.9 for IntelliJ idea 2018.3.1

enter image description here