Org apache maven plugins ошибка

After updating IntelliJ from version 12 to 13, the following Maven-related plugins cannot be resolved:

org.apache.maven.plugins:maven-clean-plugin:2.4.1
org.apache.maven.plugins:maven-deploy-plugin
org.apache.maven.plugins:maven-install-plugin
org.apache.maven.plugins:maven-site-plugin

When using IntelliJ 12, these were not in the plugins list. Somehow they’ve been added after the update and now IntelliJ complains they cannot be found. Where can I remove these plugins from the list OR resolve the problem by installing them?

I can run maven goals clean and compile without problem, but the profile/plugins appear red with warnings in the IDE.

EDIT after 8 years: Please also have a look at all other good answers here. The accepted answer is a common solution but might not work for you or for your IDE version

asked Dec 10, 2013 at 13:47

Spring's user avatar

SpringSpring

11.3k29 gold badges116 silver badges186 bronze badges

4

For newer versions of IntelliJ, enable the use plugin registry option within the Maven settings as follows:

  1. Click File 🡒 Settings.
  2. Expand Build, Execution, Deployment 🡒 Build Tools 🡒 Maven.
  3. Check Use plugin registry.
  4. Click OK or Apply.

For IntelliJ 14.0.1, open the preferences—not settings—to find the plugin registry option:

  1. Click File 🡒 Preferences.

Regardless of version, also invalidate the caches:

  1. Click File 🡒 Invalidate Caches / Restart.
  2. Click Invalidate and Restart.

When IntelliJ starts again the problem should be vanquished.

Dave Jarvis's user avatar

Dave Jarvis

30.5k41 gold badges179 silver badges317 bronze badges

answered Nov 27, 2014 at 10:49

GarfieldKlon's user avatar

GarfieldKlonGarfieldKlon

11.2k7 gold badges31 silver badges33 bronze badges

12

I had this problem for years with the maven-deploy plugin, and the error showed up even though I was not directly including the plugin in my POM. As a work-around I had to force include the plugin with a version into my POMs plugin section just to remove the red-squiggly.

After trying every solution on Stack Overflow, I found the problem: Looking into my .m2/repository/org/apache/maven/plugins/maven-deploy-plugin directory there was a version ‘X.Y’ along with ‘2.8.2’ et al. So I deleted the entire maven-deploy-plugin directory, and then re-imported my Maven project.

So it seems the issue is an IntelliJ bug in parsing the repository. I would not not remove the entire repository though, just the plugins that report an error.

anothernode's user avatar

anothernode

5,15013 gold badges45 silver badges63 bronze badges

answered Jul 3, 2017 at 11:00

Steven Spungin's user avatar

Steven SpunginSteven Spungin

27.1k5 gold badges89 silver badges78 bronze badges

11

Run a Force re-import from the maven tool window. If that does not work, Invalidate your caches (File > Invalidate caches) and restart. Wait for IDEA to re-index the project.

answered Dec 10, 2013 at 16:16

Javaru's user avatar

JavaruJavaru

30.5k11 gold badges93 silver badges70 bronze badges

4

None of the other answers worked for me. The solution that worked for me was to download the missing artifact manually via cmd:

mvn dependency:get -DrepoUrl=http://repo.maven.apache.org/maven2/ -Dartifact=ro.isdc.wro4j:wro4j-maven-plugin:1.8.0

After this change need to let know the Idea about new available artifacts. This can be done in «Settings > Maven > Repositories», select there your «Local» and simply click «Update».

Edit: the -DrepoUrl seems to be deprecated. -DremoteRepositories should be used instead. Source: Apache Maven Dependency Plugin – dependency:get.

Logan Farci's user avatar

answered Oct 28, 2016 at 15:39

Eng.Fouad's user avatar

Eng.FouadEng.Fouad

115k71 gold badges315 silver badges417 bronze badges

7

The red with warnings maven-site-plugin resolved after the build site Lifecycle:

enter image description here

My IntelliJ version is Community 2017.2.4

answered Sep 25, 2017 at 15:56

Wendel's user avatar

WendelWendel

2,81929 silver badges28 bronze badges

3

SOLVED !!!

This is how I fixed the issue…

  1. Tried one of the answers which include ‘could solve it by enabling «use plugin registry» ‘. Did enable that but no luck.
  2. Tried again one of the answers in the thread which says ‘If that does not work, Invalidate your caches (File > Invalidate caches) and restart.’ Did that but again no luck.

  3. Tried These options ..
    Go to Settings —> Maven —> Importing and made sure the following was selected

    Import Maven projects automatically

    Create IDEA modules for aggregator projects Keep source…

    Exclude build dir…

    Use Maven output…

    Generated souces folders: «detect automatically»

    Phase to be…: «process-resources»

    Automatically download: «sources» & «documentation»

    Use Maven3 to import

    project VM options for importer: -Xmx512m

    But again no success.

    1. Now lets say I had 10 such plugins which didn’t get resolve and among them the
      first was ‘org.apache.maven.plugins:maven-site-plugin’
      I went to ‘.m2/repository/org/apache/maven/plugins/’ and deleted the directory
      ‘maven-site-plugin’ and did a maven reimport again. Guess what, particular
      missing plugin got dowloaded. And I just followed similar steps for other
      missing plugins and all got resolved.

answered Sep 20, 2019 at 7:14

Randhir Ray's user avatar

Randhir RayRandhir Ray

5505 silver badges14 bronze badges

6

I had the same issue. I added the plugins into my pom.xml dependencies and it works for me.

    <dependency>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-site-plugin</artifactId>
        <version>3.3</version>
        <type>maven-plugin</type>
    </dependency>

    <dependency>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-install-plugin</artifactId>
        <version>2.4</version>
        <type>maven-plugin</type>
    </dependency>

    <dependency>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-deploy-plugin</artifactId>
        <version>2.7</version>
        <type>maven-plugin</type>
    </dependency>

answered Feb 9, 2017 at 5:06

olivejp's user avatar

olivejpolivejp

9001 gold badge9 silver badges14 bronze badges

2

I tried the other answers, but none of them solved this problem for me.

The problem disappeared when I explicitly added the groupId like this:

<plugins>
    <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-clean-plugin</artifactId>
        <version>3.1.0</version>
    </plugin>
</plugins>

Once the color of the version number changed from red to black and the problem disappeared from the Problems tab the groupId can be removed again from the problematic plugin, the error does not show up again and the version number even shows up as suggestion for version.

answered Aug 29, 2020 at 18:27

Johannes's user avatar

JohannesJohannes

82812 silver badges29 bronze badges

2

I am using IntelliJ Ultimate 2018.2.6 and found out, that the feature Reimport All Maven Project does not use the JDK, which is set in the Settings: Build, Execution, Deployment | Build Tools | Maven | Runner.
Instead it uses it’s own JRE in IntelliJ_HOME/jre64/ by default. You can configure the JDK for the Importer in Build, Execution, Deployment | Build Tools | Maven | Importing.

In my specific problem, an SSL certificate was missing in the JREs keystore. Unfortunately IDEA only logs this issue in it’s own logfile. A little red box to inform about the RuntimeException had been really nice…

answered Nov 14, 2018 at 10:04

Nils's user avatar

NilsNils

4763 silver badges4 bronze badges

4

I had the same error and was able to get rid of it by deleting my old Maven settings file. Then I updated the Maven plugins manually using the mvn command:

mv ~/.m2/settings.xml ~/.m2/settings.xml.old
mvn -up

Finally I ran the «Reimport All Maven Projects» button in the Maven Project tab in IntelliJ. The errors vanished in my case.

answered Mar 12, 2014 at 10:14

Björn Jacobs's user avatar

Björn JacobsBjörn Jacobs

4,0334 gold badges28 silver badges47 bronze badges

None of the other solutions worked for me.

My solution:

Maven Settings -> Repositories -> select Local Repository in the list, Update

Worked like a charm!

cigien's user avatar

cigien

57.9k11 gold badges73 silver badges112 bronze badges

answered Dec 26, 2021 at 14:24

Tamás Bárász's user avatar

1

This did the trick for me…delete all folders and files under ‘C:\Users[Windows User Account].m2\repository’.

Finally ran ‘Reimport All Maven Projects’ in the Maven Project tab in IntelliJ.

answered Aug 28, 2014 at 3:03

Brandon Oakley's user avatar

Remove your local Maven unknown plugin and reimport all maven projects. This will fix this issue.

You can find it under View > Tool Windows > Maven :

enter image description here

DependencyHell's user avatar

answered Jul 12, 2018 at 1:13

Xin Cai's user avatar

Xin CaiXin Cai

1613 silver badges5 bronze badges

For me it was as simple as giving the plugin a version:

<version>3.3.0</version>

The full plugin code sample is given below:

<build>
<plugins>
  <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-assembly-plugin</artifactId>
    <version>3.3.0</version>
    <executions>
      <execution>
        <phase>package</phase>
        <goals>
          <goal>single</goal>
        </goals>
        <configuration>
          <archive>
            <manifest>
              <mainClass>Main</mainClass>
            </manifest>
          </archive>
          <descriptorRefs>
            <descriptorRef>jar-with-dependencies</descriptorRef>
          </descriptorRefs>
        </configuration>
      </execution>
    </executions>
  </plugin>

answered Aug 21, 2020 at 9:22

CodeMonkey123's user avatar

1

I was recently faced with the same issue. None of the other solutions resolved the red error lines.

What I did was run the actual targets in question (deploy, site). I could see those dependencies then being fetched.

After that, a reimport did the trick.

answered Mar 9, 2017 at 11:51

Denham Coote's user avatar

1

This worked for me

  1. Go to Settings —> Maven —> Importing —> JDK for importer —>
    use «Use Project JDK» option instead of a custom JDK set previously.
  2. Re-build/re-import all the dependencies.

answered Mar 31, 2021 at 3:04

mohit jain's user avatar

mohit jainmohit jain

771 silver badge4 bronze badges

0

If an artifact is not resolvable.
Go in the directory of your .m2/repository
and check that you DON’T have that kind of file :

build-helper-maven-plugin-1.10.pom.lastUpdated

If you don’t have any artefact in the folder, just delete it, and try again to re-import in IntelliJ.

the content of those files is like :

#NOTE: This is an Another internal implementation file, its format can be changed without prior notice.
#Fri Mar 10 10:36:12 CET 2017
@default-central-https\://repo.maven.apache.org/maven2/.lastUpdated=1489138572430
https\://repo.maven.apache.org/maven2/.error=Could not transfer artifact org.codehaus.mojo\:build-helper-maven-plugin\:pom\:1.10 from/to central (https\://repo.maven.apache.org/maven2)\: connect timed out

Without the *.lastUpdated file, IntelliJ (or Eclipse by the way) is enabled to reload what is missing.

Spring's user avatar

Spring

11.3k29 gold badges116 silver badges186 bronze badges

answered Apr 27, 2017 at 17:11

Gauthier Peel's user avatar

Gauthier PeelGauthier Peel

1,4382 gold badges17 silver badges35 bronze badges

2

I could solve this problem by changing «Maven home directory» from «Bundled (Maven 3) to «/usr/local/Cellar/maven/3.2.5/libexec» in the maven settings of IntelliJ (14.1.2).

answered May 4, 2015 at 13:40

MathiasJ's user avatar

MathiasJMathiasJ

1,6611 gold badge14 silver badges20 bronze badges

0

Uncheck the «Work offline» checkbox in Maven settings.

answered Nov 4, 2015 at 6:48

Maheshkumar's user avatar

MaheshkumarMaheshkumar

7241 gold badge10 silver badges19 bronze badges

Here is what I tried to fix the issue and it worked:

  1. Manually deleted the existing plugin from the .m2 repo
  2. Enabled «use plugin registry» in IntelliJ
  3. Invalidated the cache and restarted IntelliJ
  4. Reimported the maven project in IntelliJ

After following above steps, the issue was fixed. Hopefully this helps you as well.

answered Aug 7, 2019 at 14:06

SureshAtt's user avatar

SureshAttSureshAtt

1,8912 gold badges17 silver badges22 bronze badges

For me which worked is putting the repository which contained the plugin under pluginRepository tags. Example,

<pluginRepositories>
    <pluginRepository>
        <id>pcentral</id>
        <name>pcentral</name>
        <url>https://repo1.maven.org/maven2</url>
    </pluginRepository>
</pluginRepositories>

answered Feb 26, 2020 at 13:00

Nipuna Saranga's user avatar

Enabling «use plugin registry» and Restart project after invalidate cash solved my problem

to Enabling «use plugin registry» >>> (intelij) File > Setting > Maven > enable the option from the option list of maven

To invalidate cash >>> file > invalidate cash

That’s it…

answered Jul 18, 2020 at 5:20

DalusC's user avatar

DalusCDalusC

4012 silver badges12 bronze badges

3

This worked for me:

  • Close IDEA
  • Delete «*.iml» and «.idea» -directories(present in the root folder of project)
  • Run «mvn clean install» from the command-line
  • Re-import your project into IDEA

After re-importing the entire project, installation of dependencies will start which will take some minutes to complete depending upon your internet connection.

answered Jan 24, 2019 at 9:16

Abhishek Gupta's user avatar

My case:

  • maven-javadoc-plugin with version 3.2.0 is displayed red in IntelliJ.
  • Plugin is present in my local maven repo.
  • Re-imported maven million times.
  • Ran mvn clean install from the command line N times.
  • All my maven settings in IntelliJ are correct.
  • Tried to switch between Bundled and non-bundled Maven.
  • Tried do delete the whole maven repo and to delete only the plugin from it.
  • Nothing of the above worked.
  • The only thing that almost always helps with modern IntelliJ IDEA versions is «Invalidate caches / Restart». It helped this time as well. maven-javadoc-plugin is not red anymore, and I can click on it and to to the source pom file of the plugin.

answered Oct 19, 2020 at 16:14

Dmitriy Popov's user avatar

Dmitriy PopovDmitriy Popov

2,1603 gold badges25 silver badges34 bronze badges

Recently I faced the same issue.
All tips doesn’t work in my cause.

But I fix it.

Go to Intellij idea setting, find Maven, and in it you need to open Repository tab and update maven and local repos. That’s all.

answered Nov 7, 2020 at 17:50

Roman Egorov's user avatar

If you have red squiggles underneath the project in the Maven plugin, try clicking the «Reimport All Maven Projects» button (looks like a refresh symbol).

Reimport all Maven Projects

answered Oct 2, 2014 at 17:47

satoukum's user avatar

satoukumsatoukum

1,1881 gold badge21 silver badges31 bronze badges

You can add them as dependencies:

<dependencies>
    <dependency>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-clean-plugin</artifactId>
        <version>2.4.1</version>
    </dependency>
</dependencies>

Intellij will resolve them. After successfull import dependencies, you can clean them.

answered May 14, 2019 at 16:02

Nassim Hassaine's user avatar

  1. Check the plugins which cannot be found (maven-site-plugin,maven-resources-plugin)
  2. go to ‘.m2/repository/org/apache/maven/plugins/’
  3. delete the directory rm -rf plugin-directory-name (eg: rm -rf maven-site-plugin)
  4. exit project from intellij
  5. import project again
  6. Do a Maven reimport

Explanation: when you do a maven reimport, it will download all the missing plugins again.

Happy Coding

answered May 27, 2020 at 6:34

Sheersha Jain's user avatar

I use the community edition packaged as snap on Ubuntu 18.04.

I experience that issue each time there a IntelliJ release.

In that scenario, my working solution is to invoke the invalidate cache and restart from the file menù flagging the indexes removal too.

answered May 29, 2021 at 21:54

Antonio Petricca's user avatar

Antonio PetriccaAntonio Petricca

9,1125 gold badges36 silver badges74 bronze badges

June/2021:

No Delete, No Reimport.

What I did is, I was going to :

C:\Users\dell\.m2\repository\org\apache\maven\plugins

Then double Click on every Plugin Folders, And see what version it is downloaded.

Then I came back to pom file, and according to downloaded version, I carefully changes those versions in <version>....</version> Tags. Then refresh.

And That way, All red marks are gone, Even gone those Yellow Marks.

All Clean.

Here is my full pom file for further notice. The Project is JavaFx+Maven with Shade :

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>main.java.sample</groupId>
    <artifactId>ThreeColumnTable</artifactId>
    <version>1.0-SNAPSHOT</version>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <maven.compiler.source>11</maven.compiler.source>
        <maven.compiler.target>11</maven.compiler.target>
    </properties>
    <dependencies>
        <dependency>
            <groupId>org.openjfx</groupId>
            <artifactId>javafx-controls</artifactId>
            <version>15.0.1</version>
        </dependency>
        <dependency>
            <groupId>org.openjfx</groupId>
            <artifactId>javafx-fxml</artifactId>
            <version>15.0.1</version>
        </dependency>
        <dependency>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-install-plugin</artifactId>
            <version>2.4</version>
            <type>maven-plugin</type>
        </dependency>

        <dependency>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-deploy-plugin</artifactId>
            <version>2.7</version>
            <type>maven-plugin</type>
        </dependency>
    </dependencies>
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.8.0</version>
                <configuration>
                    <source>11</source>
                    <target>11</target>
                    <release>11</release>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-resources-plugin</artifactId>
                <version>2.6</version>
                <executions>
                    <execution>
                        <phase>test</phase>
                        <goals>
                            <goal>resources</goal>
                            <goal>testResources</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-project-info-reports-plugin</artifactId>
                <version>3.1.2</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-clean-plugin</artifactId>
                <version>3.1.0</version>
                <configuration>
                    <filesets>
                        <fileset>
                            <directory>src/main/generated-groovy-stubs</directory>
                        </fileset>
                    </filesets>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <version>2.4</version>
                <configuration>
                    <archive>
                        <manifest>
                            <mainClass>org.example.App</mainClass>
                            <manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile>
                        </manifest>
                    </archive>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.openjfx</groupId>
                <artifactId>javafx-maven-plugin</artifactId>
                <version>0.0.1</version>
                <configuration>
                    <mainClass>org.example.App</mainClass>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-shade-plugin</artifactId>
                <version>3.2.4</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>shade</goal>
                        </goals>
                        <configuration>
                            <shadedArtifactAttached>true</shadedArtifactAttached>
                            <shadedClassifierName>project-classifier</shadedClassifierName>
                            <transformers>
                                <transformer implementation=
                                                     "org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
                                    <mainClass>org.example.Main</mainClass>
                                </transformer>
                            </transformers>

                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>

Akshay Hazari's user avatar

answered Jun 26, 2021 at 18:32

Noor Hossain's user avatar

Noor HossainNoor Hossain

1,6401 gold badge18 silver badges25 bronze badges

2

Whenever I create a new Maven project in IntelliJ, I always get these errors.

Cannot resolve plugin org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M3

Cannot resolve plugin org.apache.maven.plugins:maven-install-plugin:3.0.0-M1

Cannot resolve plugin org.apache.maven.plugins:maven-deploy-plugin:3.0.0-M1

Cannot resolve plugin org.apache.maven.plugins:maven-site-plugin:3.8.2

How can I solve these plugin errors?Error messages I get when trying to sync my new and untouched project.

My pom.xml

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>com.kebaranas.croppynet</groupId>
    <artifactId>croppy-net-backend</artifactId>
    <version>1.0-SNAPSHOT</version>
    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-clean-plugin</artifactId>
                    <version>3.1.0</version>
                </plugin>

                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <version>3.0.0-M3</version>
                </plugin>

                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-install-plugin</artifactId>
                    <version>3.0.0-M1</version>
                </plugin>

                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-deploy-plugin</artifactId>
                    <version>3.0.0-M1</version>
                </plugin>

                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-site-plugin</artifactId>
                    <version>3.8.2</version>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>
</project>

My log file

2019-09-07 10:44:42,525 [  60453]   INFO -      #org.jetbrains.idea.maven - org.apache.maven.plugin.PluginResolutionException: Plugin org.apache.maven.plugins:maven-clean-plugin:3.1.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:3.1.0 
java.lang.RuntimeException: org.apache.maven.plugin.PluginResolutionException: Plugin org.apache.maven.plugins:maven-clean-plugin:3.1.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:3.1.0
    at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:117)
    at org.jetbrains.idea.maven.server.Maven3XServerEmbedder.resolvePlugin(Maven3XServerEmbedder.java:1119)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:357)
    at sun.rmi.transport.Transport$1.run(Transport.java:200)
    at sun.rmi.transport.Transport$1.run(Transport.java:197)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:573)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:834)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:688)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:687)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException: org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:3.1.0
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:255)
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:171)
    at org.eclipse.aether.internal.impl.DefaultRepositorySystem.readArtifactDescriptor(DefaultRepositorySystem.java:250)
    at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:103)
    ... 18 more
Caused by: java.lang.RuntimeException: org.eclipse.aether.resolution.ArtifactResolutionException: Failure to transfer org.apache.maven.plugins:maven-clean-plugin:pom:3.1.0 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:3.1.0 from/to central (https://repo.maven.apache.org/maven2): java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:423)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:225)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:202)
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:240)
    ... 21 more
Caused by: java.lang.RuntimeException: org.eclipse.aether.transfer.ArtifactTransferException: Failure to transfer org.apache.maven.plugins:maven-clean-plugin:pom:3.1.0 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:3.1.0 from/to central (https://repo.maven.apache.org/maven2): java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
    at org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:226)
    at org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:192)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.gatherDownloads(DefaultArtifactResolver.java:564)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:482)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:400)
    ... 24 more
2019-09-07 10:44:44,045 [  61973]   INFO - pl.ProjectRootManagerComponent - project roots have changed 
2019-09-07 10:44:44,156 [  62084]   INFO - .diagnostic.PerformanceWatcher - Pushing properties took 0ms; general responsiveness: ok; EDT responsiveness: ok 
2019-09-07 10:44:44,413 [  62341]   INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 256ms; general responsiveness: ok; EDT responsiveness: ok 
2019-09-07 10:44:44,783 [  62711]   INFO -      #org.jetbrains.idea.maven - org.apache.maven.plugin.PluginResolutionException: Plugin org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M3 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-surefire-plugin:jar:3.0.0-M3 
java.lang.RuntimeException: org.apache.maven.plugin.PluginResolutionException: Plugin org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M3 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-surefire-plugin:jar:3.0.0-M3
    at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:117)
    at org.jetbrains.idea.maven.server.Maven3XServerEmbedder.resolvePlugin(Maven3XServerEmbedder.java:1119)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:357)
    at sun.rmi.transport.Transport$1.run(Transport.java:200)
    at sun.rmi.transport.Transport$1.run(Transport.java:197)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:573)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:834)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:688)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:687)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException: org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for org.apache.maven.plugins:maven-surefire-plugin:jar:3.0.0-M3
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:255)
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:171)
    at org.eclipse.aether.internal.impl.DefaultRepositorySystem.readArtifactDescriptor(DefaultRepositorySystem.java:250)
    at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:103)
    ... 18 more
Caused by: java.lang.RuntimeException: org.eclipse.aether.resolution.ArtifactResolutionException: Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:3.0.0-M3 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-surefire-plugin:pom:3.0.0-M3 from/to central (https://repo.maven.apache.org/maven2): java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:423)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:225)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:202)
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:240)
    ... 21 more
Caused by: java.lang.RuntimeException: org.eclipse.aether.transfer.ArtifactTransferException: Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:3.0.0-M3 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-surefire-plugin:pom:3.0.0-M3 from/to central (https://repo.maven.apache.org/maven2): java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
    at org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:226)
    at org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:192)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.gatherDownloads(DefaultArtifactResolver.java:564)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:482)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:400)
    ... 24 more
2019-09-07 10:44:44,829 [  62757]   INFO -      #org.jetbrains.idea.maven - org.apache.maven.plugin.PluginResolutionException: Plugin org.apache.maven.plugins:maven-install-plugin:3.0.0-M1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-install-plugin:jar:3.0.0-M1 
java.lang.RuntimeException: org.apache.maven.plugin.PluginResolutionException: Plugin org.apache.maven.plugins:maven-install-plugin:3.0.0-M1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-install-plugin:jar:3.0.0-M1
    at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:117)
    at org.jetbrains.idea.maven.server.Maven3XServerEmbedder.resolvePlugin(Maven3XServerEmbedder.java:1119)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:357)
    at sun.rmi.transport.Transport$1.run(Transport.java:200)
    at sun.rmi.transport.Transport$1.run(Transport.java:197)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:573)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:834)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:688)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:687)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException: org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for org.apache.maven.plugins:maven-install-plugin:jar:3.0.0-M1
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:255)
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:171)
    at org.eclipse.aether.internal.impl.DefaultRepositorySystem.readArtifactDescriptor(DefaultRepositorySystem.java:250)
    at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:103)
    ... 18 more
Caused by: java.lang.RuntimeException: org.eclipse.aether.resolution.ArtifactResolutionException: Failure to transfer org.apache.maven.plugins:maven-install-plugin:pom:3.0.0-M1 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-install-plugin:pom:3.0.0-M1 from/to central (https://repo.maven.apache.org/maven2): java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:423)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:225)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:202)
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:240)
    ... 21 more
Caused by: java.lang.RuntimeException: org.eclipse.aether.transfer.ArtifactTransferException: Failure to transfer org.apache.maven.plugins:maven-install-plugin:pom:3.0.0-M1 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-install-plugin:pom:3.0.0-M1 from/to central (https://repo.maven.apache.org/maven2): java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
    at org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:226)
    at org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:192)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.gatherDownloads(DefaultArtifactResolver.java:564)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:482)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:400)
    ... 24 more
2019-09-07 10:44:44,860 [  62788]   INFO -      #org.jetbrains.idea.maven - org.apache.maven.plugin.PluginResolutionException: Plugin org.apache.maven.plugins:maven-deploy-plugin:3.0.0-M1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-deploy-plugin:jar:3.0.0-M1 
java.lang.RuntimeException: org.apache.maven.plugin.PluginResolutionException: Plugin org.apache.maven.plugins:maven-deploy-plugin:3.0.0-M1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-deploy-plugin:jar:3.0.0-M1
    at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:117)
    at org.jetbrains.idea.maven.server.Maven3XServerEmbedder.resolvePlugin(Maven3XServerEmbedder.java:1119)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:357)
    at sun.rmi.transport.Transport$1.run(Transport.java:200)
    at sun.rmi.transport.Transport$1.run(Transport.java:197)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:573)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:834)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:688)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:687)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException: org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for org.apache.maven.plugins:maven-deploy-plugin:jar:3.0.0-M1
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:255)
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:171)
    at org.eclipse.aether.internal.impl.DefaultRepositorySystem.readArtifactDescriptor(DefaultRepositorySystem.java:250)
    at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:103)
    ... 18 more
Caused by: java.lang.RuntimeException: org.eclipse.aether.resolution.ArtifactResolutionException: Failure to transfer org.apache.maven.plugins:maven-deploy-plugin:pom:3.0.0-M1 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-deploy-plugin:pom:3.0.0-M1 from/to central (https://repo.maven.apache.org/maven2): java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:423)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:225)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:202)
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:240)
    ... 21 more
Caused by: java.lang.RuntimeException: org.eclipse.aether.transfer.ArtifactTransferException: Failure to transfer org.apache.maven.plugins:maven-deploy-plugin:pom:3.0.0-M1 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-deploy-plugin:pom:3.0.0-M1 from/to central (https://repo.maven.apache.org/maven2): java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
    at org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:226)
    at org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:192)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.gatherDownloads(DefaultArtifactResolver.java:564)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:482)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:400)
    ... 24 more
2019-09-07 10:44:44,896 [  62824]   INFO -      #org.jetbrains.idea.maven - org.apache.maven.plugin.PluginResolutionException: Plugin org.apache.maven.plugins:maven-site-plugin:3.8.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-site-plugin:jar:3.8.2 
java.lang.RuntimeException: org.apache.maven.plugin.PluginResolutionException: Plugin org.apache.maven.plugins:maven-site-plugin:3.8.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-site-plugin:jar:3.8.2
    at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:117)
    at org.jetbrains.idea.maven.server.Maven3XServerEmbedder.resolvePlugin(Maven3XServerEmbedder.java:1119)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:357)
    at sun.rmi.transport.Transport$1.run(Transport.java:200)
    at sun.rmi.transport.Transport$1.run(Transport.java:197)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:573)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:834)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:688)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:687)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException: org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for org.apache.maven.plugins:maven-site-plugin:jar:3.8.2
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:255)
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:171)
    at org.eclipse.aether.internal.impl.DefaultRepositorySystem.readArtifactDescriptor(DefaultRepositorySystem.java:250)
    at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:103)
    ... 18 more
Caused by: java.lang.RuntimeException: org.eclipse.aether.resolution.ArtifactResolutionException: Failure to transfer org.apache.maven.plugins:maven-site-plugin:pom:3.8.2 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-site-plugin:pom:3.8.2 from/to central (https://repo.maven.apache.org/maven2): java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:423)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:225)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:202)
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:240)
    ... 21 more
Caused by: java.lang.RuntimeException: org.eclipse.aether.transfer.ArtifactTransferException: Failure to transfer org.apache.maven.plugins:maven-site-plugin:pom:3.8.2 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-site-plugin:pom:3.8.2 from/to central (https://repo.maven.apache.org/maven2): java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
    at org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:226)
    at org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:192)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.gatherDownloads(DefaultArtifactResolver.java:564)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:482)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:400)
    ... 24 more
2019-09-07 10:44:50,797 [  68725]   INFO - rationStore.ComponentStoreImpl - Saving Project '/home/kebaranas/IdeaProjects/croppynetbackend' croppynetbackendRunManager took 16 ms 
2019-09-07 10:45:33,435 [ 111363]   INFO - rationStore.ComponentStoreImpl - Saving appEditorColorsManagerImpl took 11 ms 
2019-09-07 10:45:33,466 [ 111394]   INFO - rationStore.ComponentStoreImpl - Saving Project '/home/kebaranas/IdeaProjects/croppynetbackend' croppynetbackendKotlinCommonCompilerArguments took 14 ms

Is your Maven build failing with the error «Failed to execute goal org.apache.maven.plugins»? Don’t worry; we’ve got you covered! In this troubleshooting guide, we will provide you with step-by-step solutions to resolve this error and help you get your Maven build up and running again.

Table of Contents

  1. Introduction to Maven
  2. Common Causes of the Error
  3. Effective Solutions to Fix the Error
  • Solution 1: Check Your POM File
  • Solution 2: Verify Your Maven Installation
  • Solution 3: Update Maven Plugins
  • Solution 4: Clear Maven Cache
  • Solution 5: Check Your Proxy Settings
  1. FAQs
  2. Related Links

Introduction to Maven

Maven is a popular build automation tool for Java projects, which simplifies the build and dependency management process. Sometimes, while building a Maven project, you may encounter a «Failed to execute goal org.apache.maven.plugins» error, which can be quite frustrating.

Common Causes of the Error

Some common reasons for the «Failed to execute goal org.apache.maven.plugins» error are:

  1. Incorrect configuration in the POM file
  2. Issues with the Maven installation
  3. Outdated Maven plugins
  4. Corrupted Maven cache
  5. Proxy settings issues

Effective Solutions to Fix the Error

Here are some effective solutions to resolve the «Failed to execute goal org.apache.maven.plugins» error:

Solution 1: Check Your POM File

The first step in resolving the error is to check your POM file (pom.xml) for any incorrect configurations or missing dependencies. Ensure that all the required plugins, dependencies, and properties are correctly defined.

<project>
  ...
  <dependencies>
    <!-- Add your dependencies here -->
  </dependencies>
  
  <build>
    <plugins>
      <!-- Add your plugins here -->
    </plugins>
  </build>
  ...
</project>

Solution 2: Verify Your Maven Installation

Ensure that Maven is properly installed on your system. You can verify this by running the following command in your terminal or command prompt:

mvn --version

If Maven is not installed or the command fails, follow the official installation guide to install Maven on your system.

Solution 3: Update Maven Plugins

Outdated Maven plugins can also cause the «Failed to execute goal org.apache.maven.plugins» error. Update your Maven plugins by specifying the latest version in your POM file:

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-compiler-plugin</artifactId>
  <version>3.8.1</version>
  ...
</plugin>

You can find the latest version of a plugin on its official documentation or Maven Central Repository.

Solution 4: Clear Maven Cache

Sometimes, the Maven cache (~/.m2/repository) might get corrupted, leading to build errors. To clear the Maven cache, delete the .m2/repository directory and re-run your build:

rm -rf ~/.m2/repository
mvn clean install

Solution 5: Check Your Proxy Settings

If you are behind a proxy server, ensure that your proxy settings are correctly configured in Maven’s settings.xml file, located in the ~/.m2 or %USERPROFILE%\.m2 directory:

<settings>
  ...
  <proxies>
    <proxy>
      <id>my-proxy</id>
      <active>true</active>
      <protocol>http</protocol>
      <host>proxy.example.com</host>
      <port>8080</port>
      <username>proxyuser</username>
      <password>proxypwd</password>
      <nonProxyHosts>www.google.com|*.example.com</nonProxyHosts>
    </proxy>
  </proxies>
  ...
</settings>

FAQs

Q1: Can I use Maven with other programming languages besides Java?

Yes, Maven is primarily designed for Java projects, but it can also be used with other programming languages like Scala, Groovy, and Kotlin through the use of appropriate plugins.

Q2: What is the difference between mvn clean install and mvn clean package?

mvn clean install builds your project, packages it, and installs the packaged artifact to your local repository. On the other hand, mvn clean package builds your project and packages it, but does not install the artifact to your local repository.

Q3: How can I skip running tests while building my Maven project?

To skip running tests while building your Maven project, you can use the -DskipTests option:

mvn clean install -DskipTests

Q4: How do I specify a specific JDK version for my Maven project?

To specify a specific JDK version for your Maven project, you can configure the maven-compiler-plugin in your POM file:

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-compiler-plugin</artifactId>
  <version>3.8.1</version>
  <configuration>
    <source>1.8</source>
    <target>1.8</target>
  </configuration>
</plugin>

Q5: Can I configure multiple profiles in my Maven project?

Yes, you can configure multiple profiles in your Maven project by defining them in your POM file:

<profiles>
  <profile>
    <id>profile-1</id>
    ...
  </profile>
  <profile>
    <id>profile-2</id>
    ...
  </profile>
</profiles>

To activate a specific profile, you can use the -P option:

mvn clean install -P profile-1
  1. Apache Maven Official Website
  2. Maven Central Repository
  3. Maven User Centre
  4. Maven Plugins Documentation
  5. Maven – Guide to Using Multiple Repositories

После того, как я обновил версию IntelliJ с 12 по 13, я вижу ошибки в моем профиле Maven/Project/Plugins, говорящие, что следующие плагины не могут быть решены:

org.apache.maven.plugins:maven-clean-plugin:2.4.1
org.apache.maven.plugins:maven-deploy-plugin
org.apache.maven.plugins:maven-install-plugin
org.apache.maven.plugins:maven-site-plugin

Хотя я использовал IntelliJ 12, они не были в моем списке плагинов, как-то они добавляются после обновления, и теперь он жалуется, что их невозможно найти, где я могу удалить эти плагины из списка или решить проблему, установив их?

Я могу запускать maven цели clean и compile без проблем, но профиль/плагины просто выглядит красным с предупреждениями, которые мне не нравятся.

Поделиться

Источник

21 ответ

У меня была такая же проблема в IntelliJ 14.0.1. Я мог бы решить эту проблему, включив «использование реестра плагинов» в настройках maven IntelliJ.

GarfieldKlon

Поделиться

Запустите принудительное повторное импортирование из окна инструмента maven. Если это не сработает, отмените кеширование (File> Invalidate cache) и перезапустите. Подождите, пока IDEA повторно проиндексирует проект.

Javaru

Поделиться

У меня была эта проблема в течение многих лет с плагином maven-deploy, и возникла ошибка, хотя я не был напрямую включен в плагин моего POM. В процессе работы я должен был включить плагин с версией в мой раздел плагина POMs, чтобы удалить красновато-рыжий.

Попробовав каждое решение в StackOverflow, я нашел проблему: заглянув в мой каталог.m2/repository/org/apache/maven/plugins/maven-deploy-plugin, появилась версия «XY» вместе с «2.8.2» и др., Поэтому я удалил весь каталог maven-deploy-plugin, а затем повторно импортировал мой проект Maven.

Поэтому кажется, что проблема заключается в ошибке IJ при анализе репозитория. Я бы не удалял все репо, но только плагины, сообщающие об ошибке.

Steven Spungin

Поделиться

Ни один из других ответов не работал для меня. Решение, которое сработало для меня, — это загрузить отсутствующий артефакт вручную через cmd:

mvn dependency:get -DrepoUrl=http://repo.maven.apache.org/maven2/ -Dartifact=ro.isdc.wro4j:wro4j-maven-plugin:1.8.0

Eng.Fouad

Поделиться

У меня была такая же ошибка, и я смог избавиться от нее, удалив старый файл настроек Maven. Затем я обновил плагины Maven вручную, используя команду mvn:

mv ~/.m2/settings.xml ~/.m2/settings.xml.old
mvn -up

Наконец, я запустил кнопку «Reimport All Maven Projects» на вкладке Maven Project в IntelliJ. Ошибки исчезли в моем случае.

Björn Jacobs

Поделиться

Красный с предупреждениями maven-site-plugin разрешен после создания сайта Lifecycle:

Изображение 124460

Моей версией IntelliJ является Community 2017.2.4

Wendel

Поделиться

Я мог бы решить эту проблему, изменив «домашний каталог Maven» с «Связанный (Maven 3)» на «/usr/local/Cellar/maven/3.2.5/libexec» в настройках maven IntelliJ (14.1.2).

MathiasJ

Поделиться

Недавно я столкнулся с той же проблемой. Ни одно из других решений не разрешало красные строки ошибок.

То, что я сделал, — это запуск реальных целей (развернуть, сайт). Я мог видеть, что эти зависимости затем извлекаются.

После этого реимпорт сделал трюк.

Denham Coote

Поделиться

Я использую IntelliJ Ultimate 2018.2.6 и обнаружил, что функция Reimport All Maven Project не использует JDK, который установлен в Настройках: Сборка, Выполнение, Развертывание | Инструменты для сборки | Maven | Runner. Вместо этого он использует собственный JRE в IntelliJ_HOME/jre64/ по умолчанию. Вы можете настроить JDK для Importer в Build, Execution, Deployment | Инструменты для сборки | Maven | Импорт.

В моей конкретной проблеме SSL-сертификат отсутствовал в хранилище ключей JREs. К сожалению, IDEA только регистрирует эту проблему в своем собственном лог файле. Маленькая красная коробка, чтобы сообщить о RuntimeException, была действительно хороша…

nils

Поделиться

Если артефакт не разрешен, перейдите в библиотеку вашего.m2/repository и убедитесь, что у вас нет такого файла:

строить-хелперов-Maven-плагин-1.10.pom.lastUpdated

Если у вас нет артефакта в папке, просто удалите его и повторите попытку повторного импорта в IntelliJ.

содержимое этих файлов выглядит так:

#NOTE: This is an Aether internal implementation file, its format can be changed without prior notice.
#Fri Mar 10 10:36:12 CET 2017
@default-central-https\://repo.maven.apache.org/maven2/.lastUpdated=1489138572430
https\://repo.maven.apache.org/maven2/.error=Could not transfer artifact org.codehaus.mojo\:build-helper-maven-plugin\:pom\:1.10 from/to central (https\://repo.maven.apache.org/maven2)\: connect timed out

Без файла *.lastUpdated, IntelliJ (или Eclipse кстати) позволяет перезагрузить то, что отсутствует.

Gauthier Peel

Поделиться

Я была такая же проблема. Я добавил плагины в свои зависимости pom.xml, и он работает для меня.

    <dependency>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-site-plugin</artifactId>
        <version>3.3</version>
        <type>maven-plugin</type>
    </dependency>

    <dependency>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-install-plugin</artifactId>
        <version>2.4</version>
        <type>maven-plugin</type>
    </dependency>

    <dependency>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-deploy-plugin</artifactId>
        <version>2.7</version>
        <type>maven-plugin</type>
    </dependency>

olivejp

Поделиться

Перейти к IntelliJ → Настройки → Плагин

Найдите maven, вы увидите 1. Интеграция Maven 2. Расширение интеграции Maven.

Выберите опцию Maven Integration и перезапустите Intellij

Anil

Поделиться

Снимите флажок «Работа в автономном режиме» в настройках Maven.

Maheshkumar

Поделиться

Если у вас есть красные squiggles под проектом в плагине Maven, попробуйте нажать кнопку «Reimport All Maven Projects» (выглядит как символ обновления).

Изображение 124461

satoukum

Поделиться

Это сделало трюк для меня… удалите все папки и файлы в разделе «C:\Users [учетная запись пользователя Windows].m2\repository».

Наконец побежал «Reimport All Maven Projects» на вкладке Maven Project в IntelliJ.

Brandon Oakley

Поделиться

Это сработало для меня:

  • Закрыть ИДЕЯ
  • Удалите » *.iml » и » .idea » -directories (присутствует в корневой папке проекта)
  • Запустите » mvn clean install » из командной строки
  • Повторно импортируйте ваш проект в IDEA

После повторного импорта всего проекта начнется установка зависимостей, которая займет несколько минут в зависимости от вашего интернет-соединения.

Abhishek Gupta

Поделиться

это может помочь кому-то в дальнейшем

я столкнулся с подобными проблемами, моя система не смогла разрешить прокси-сервер
так что подключен к местному Wi-Fi hotpsot.

Abhishek D K

Поделиться

Удалите локальный неизвестный плагин Maven и повторно импортируйте все проекты maven. Это устранит эту проблему.

Изображение 124462

Xin Cai

Поделиться

Я изменил домашний каталог Maven из Bundled (Maven 3) в Bundled (Maven 2) в настройке maven. И это работает для меня. Попробуй!

Culbert

Поделиться

В моем случае в двух подмодулях maven были две несколько разные зависимости (версия 2.1 vs 2.0). После того, как я переключился на одну версию, ошибка прошла в IDEA 14. (Refresh и.m2 swipe не помогли.)

Pavel Vlasov

Поделиться

Ещё вопросы

  • 0jQuery: генерировать ссылку из содержимого ячейки таблицы
  • 1Средние данные с одинаковым ключом в массиве словаря
  • 1Значок переключения пароля textinputlayout заблокирован
  • 1Конвертировать категорические признаки (Enum) в H2o в Boolean
  • 0не удалось проверить значение поля datetime с помощью PHP
  • 0Объект Javascript: область видимости переменной экземпляра
  • 0Нужен совет по созданию графически построенных чертежей с использованием Visual C ++
  • 0преобразование char в int — что здесь происходит?
  • 0Кнопка перекрытия с меткой
  • 0Что я делаю не так с функцией ввода?
  • 0Почему эта переменная работает в nav, а не в теге body?
  • 0Пользовательский класс корзины в CodeIgniter показывает непредвиденное поведение
  • 1Преимущество привязки функций к именам в локальных областях?
  • 1Android Design: Intentservice вызывает приложение не отвечает
  • 1Нажмите на ссылку, используя селен вебдрайвер
  • 0Qt4.8 периодическая отправка нерегулярных данных
  • 0Неправильная фильтрация списка, созданного с помощью ng-repeat (AngularJS)
  • 0Как увеличить центр экрана?
  • 0Причина, почему оператор = обычно возвращает ссылку на объект в C ++?
  • 0У меня есть большой список ограничивающих рамок, как я могу рассчитать дубликаты?
  • 0Как бороться с необработанным отказом SequelizeConnectionError: подключить ETIMEDOUT
  • 0Странные отступы вокруг создания текста, содержащие div слишком большой
  • 0Обработка поста в угловых юнит-тестах
  • 0Хранить индексы геометрии
  • 1Как добавить несколько Shapes.Path в ListView в WinRT XAML?
  • 0Области применения переменных и объектов в угловых
  • 1Неподдерживаемый тип операнда с использованием функции sum
  • 0Побитовое «не» нуля равно нулю, когда ноль рассчитывается сдвигами
  • 1Котлин как проблема мультиплатформенности
  • 0NumberFormatException: для входной строки: «XXX, XX» в TextField, связанной с локалью
  • 1Расширить все методы дополнительными параметрами, не объявляя их
  • 1Python GUI, который поддерживает интерфейс как CSS & HTML?
  • 0Изменяемая ручка блокирует перетаскиваемое взаимодействие
  • 0Как я могу найти [внутри моего столбца MySQL?
  • 0Динамический выпадающий список с использованием HTML и PHP
  • 1удалить родительский узел с помощью JavaScript (новый подход)
  • 1Не удается найти сертификат ни в хранилище LocalMachine, ни в хранилище CurrentUser — несоответствие имени удаленного сертификата
  • 0Получить значение переменной Smarty, имя которой состоит из переменных
  • 1Выполнение вызовов службы с использованием ServiceStack и клиента C # с проверкой подлинности Windows вызывает несанкционированное исключение
  • 1Javascript для цикла и уменьшения. Это верно
  • 0Получить измененные поля
  • 0Горизонтальная страница контента Windows 8
  • 1FLAG_LAYOUT_NO_LIMITS для настройки строки состояния перекрывает панель навигации
  • 0Уникальный указатель в связанном списке
  • 0Подключение к базе данных Sage 50 с использованием SQL
  • 1Связывание кода начальной загрузки с файлом .aspx.cs
  • 0Выполнение запроса занимает более 40 секунд
  • 0Назначение переменных после разбора файла с помощью c ++
  • 0Создание горизонтальной прокрутки и элементов обтекания
  • 0Объединение и сортировка 2 каналов

Сообщество Overcoder

IntelliJ IDEA and Maven — «Unresolved Plugin» Solutions

⚠️ Probably outdated (from 2016).

Related:

  • https://intellij-support.jetbrains.com/hc/en-us/community/posts/206434489
  • https://youtrack.jetbrains.com/issue/IDEA-127515

Symptoms

  1. After adding a plugin or a dependency to pom.xml and auto-importing changes or importing changes manually, the plugin or dependency is still not resolved/downloaded
  • Check via CTRL+SHIFT+A -> Enter «Maven Projects» (you would a red underlined plugin or dependency)
  1. «Cannot reconnect» to remote Maven central repository
  • Check via CTRL+SHIFT+A -> Enter «Maven Settings» > Repositories (you would see a red entry)

Causes (only assumptions)

  • Corrupted download: background process has been interrupted/aborted…
    1. due to a network problem
    2. (un)intentionally by the user
  • After downloading the archive, while extracting the archive, IntelliJ aborts the process because of too low disk space
  • Simultaneous downloads from the Maven repository (?)

Solutions — tested on Linux

Before you try any of these solutions, save your work, clear IntelliJ’s cache via File > «Invalidate Cache / Restart» and check if the problem persists.

Please also try if a simple «Reimport All Maven Projects» (type as action using CTRL+SHIFT+A) changes anything.

1. Solution — «Unresolved plugin»

If you have multiple unresolved plugins, it’s maybe less work for you to follow the second solution instead to redownload all plugins at once.

Let’s assume the plugin’s full name which causes the problem is: org.apache.maven.plugins:maven-shade-plugin:2.4.3:shade (replace with your plugin’s name)


  • Close IntelliJ
  • Get the path of your plugin. The path of the example plugin would be org/apache/maven/plugins/maven-shade-plugin (substitute ‘.’ and ‘:’ with ‘/’)
  • Navigate to the affected plugin directory and delete it:
cd ~/.m2/repository/org/apache/maven/plugins/maven-shade-plugin
ls -a # should show a directory named after your plugin's version number
mv 2.4.3 2.4.3_old
  • Start IntelliJ again
  • CTRL+SHIFT+A -> Enter «Reimport All Maven Projects»
  • If the problem still persists, try the second solution below

2. Solution — «Cannot reconnect» to Maven repository

  • Make sure that you have enough disk space (especially when using a VM)
  • Try to update the repository CTRL+SHIFT+A -> Enter «Maven Settings» > Repositories -> select the red entry and click «Update»
  • Wait and drink ☕. This possibly takes a long time depending on your system, especially after the download has finished. The progress bar stands still but package extraction is in progress, please be patient.
  • If IntelliJ fails and the problem still persists: close IntelliJ, then:
cd ~/.m2
mv repository repository_old
  • Update as descibed in 2.

Понравилась статья? Поделить с друзьями:
  • Orensot ошибка 28
  • Ordinal not in range 128 ошибка
  • Order not found ошибка
  • Orcs must die 3 ошибка unreal engine
  • Orangeemu64 dll ошибка симс 4