Error resolving version for plugin ‘org.apache.maven.plugins:maven-compiler-plugin’ from the repo…

Error resolving version for the plugin ‘. Org, apache maven plugins: maven — the compiler plugin ‘from the repositories [local (E: \ apache maven – 3.5.3 \ repository). Nexus
(http://localhost:8080/nexus-2.14.5-02/content/groups/public)]] : plugins not found in any Plugin repository
The above error occurred at the beginning of the parent project to create the Maven aggregation project. You can see that the maven-Complier-plugin version of org.apache.maven.plugin resolves the error. The wrong configuration is as follows:

Solution: Declare a version for the plug-in:
Add & lt; version> Tags:

  <build>
      <plugins>
          <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-compiler-plugin</artifactId>
              <version>2.5.1</version>
              <configuration>
                  <source>1.7</source>
                  <target>1.7</target>
                  <encoding>UTF-8</encoding>
              </configuration>
          </plugin>
      </plugins>
  </build>


Read More: