0
votes

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

1

1 Answers

0
votes

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>