0 votes

Problems with maven in java

I have a problem with maven in java, it does not let me run it, I get the following problems:

Cannot resolve plugin org.apache.maven.plugins:maven-resources-plugin:2.6

Cannot resolve plugin org.apache.maven.plugins:maven-jar-plugin:2.4

Cannot resolve plugin org.apache.maven.plugins:maven-compiler-plugin:3.1

Cannot resolve plugin org.apache.maven.plugins:maven-surefire-plugin:2.12.4

Cannot resolve plugin org.apache.maven.plugins:maven-install-plugin:2.4

Cannot resolve plugin org.apache.maven.plugins:maven-deploy-plugin:2.7

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

I have been looking for solutions and some people talk about searching here for maven and selecting it but I get the following options:

introducir la descripción de la imagen aquí

I have pom.xml inside the project as well:

introducir la descripción de la imagen aquí

If anyone can help me I would appreciate it.


Sago78 Points 1

For newer versions, it is recommended to activate the option to use the plugin's registry.

  1. File> settings
  2. Build>execution>deployment>build tools>Maven
  3. Verify that the option: used registry plugin is active.
  4. Ok>apply

I recommend restarting the application after applying.

If the problem persists try resetting the cache.

  1. File> invalidate caches/restart


HolaDevs is an online community of programmers and software lovers.
You can check other people responses or create a new question if you don't find a solution

Powered by: