0

enter image description here

While I am trying to use Maven this error occurs in Eclipse

Failure to transfer commons-lang:commons-lang:pom:2.1 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 commons-lang:commons-lang:pom:2.1 from/to central repo.maven.apache.org pom.xml /test line 1 Maven Configuration Problem

Guillaume Georges
  • 3,878
  • 3
  • 14
  • 32
midhun mp
  • 5
  • 7
  • Possible duplicate of [Failure to transfer dependency, was cached in the local repository](https://stackoverflow.com/questions/10684311/failure-to-transfer-dependency-was-cached-in-the-local-repository) – K.Nicholas Jun 13 '17 at 16:30
  • https://stackoverflow.com/questions/4856307/when-maven-says-resolution-will-not-be-reattempted-until-the-update-interval-of helps? – K.Nicholas Jun 13 '17 at 16:31

1 Answers1

0

you can add many <plugin> into <plugins> tag, example show below :-

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

      <plugin>
        <inherited>true</inherited>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-deploy-plugin</artifactId>

        <configuration>
          <updateReleaseInfo>true</updateReleaseInfo>
        </configuration>
      </plugin>
   </plugins>
Anshul Sharma
  • 3,432
  • 1
  • 12
  • 17