Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

How to resolve this problem?

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

Try to run Maven import with -U flag (force update snapshots)

Photo1: enter image description here

Photo2: enter image description here

like image 413
Rahma Cherni Avatar asked Oct 12 '25 16:10

Rahma Cherni


1 Answers

@romanv-jb's answer worked for me.

For those not familiar with Maven:

  1. Navigate to the location of the problem version of maven-site-plugin in your local .m2 repository. Ex: ${YOUR_USER_DIR}/.m2/repository/org/apache/maven/plugins/maven-site-plugin/3.12.1/

  2. Delete maven-site-plugin-3.12.1.pom.lastUpdated

  3. In IntelliJ, navigate to the Maven tool window tab and select "Reload All Maven Projects".

Reload All Maven Projects referece pic

Executing mvn clean install from your projects root directory should work the same as step 3 but I'm just showing what I did to fix the problem with the specific maven-site-plugin version in the OP.

like image 124
czawlz Avatar answered Oct 15 '25 19:10

czawlz