title: Resolution will not be attempted until the update interval of company_repository has elapsed or updates are forced
body: <p>I already have seen answers to this problems several time and I tried them too.</p>
  
  <p>I am trying to use grooy-all and groovy-maven-plugin in my project and the dependencies in pom.xml is:</p>
  
  <pre><code>          &lt;plugin&gt;
                  &lt;groupId&gt;org.codehaus.gmaven&lt;/groupId&gt;
                  &lt;artifactId&gt;groovy-all&lt;/artifactId&gt;
                  &lt;version&gt;2.5.2&lt;/version&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;id&gt;Kryst-reports-flex&lt;/id&gt;
                          &lt;phase&gt;prepare-package&lt;/phase&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;execute&lt;/goal&gt;
                          &lt;/goals&gt;
                          &lt;configuration&gt;
                              &lt;scriptpath&gt;
                                  &lt;element&gt;src/main/resources&lt;/element&gt;
                              &lt;/scriptpath&gt;
                              &lt;source&gt;ReportsAssembly.buildFlex(ant, project) 
                          &lt;/source&gt;
                          &lt;/configuration&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.codehaus.gmaven&lt;/groupId&gt;
                  &lt;artifactId&gt;groovy-maven-plugin&lt;/artifactId&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;id&gt;Kryst-reports-flex&lt;/id&gt;
                          &lt;phase&gt;prepare-package&lt;/phase&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;execute&lt;/goal&gt;
                          &lt;/goals&gt;
                          &lt;configuration&gt;
                              &lt;scriptpath&gt;
                                  &lt;element&gt;src/main/resources&lt;/element&gt;
                              &lt;/scriptpath&gt;
                              &lt;source&gt;ReportsAssembly.buildFlex(ant, project) 
                          &lt;/source&gt;
                          &lt;/configuration&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
                   &lt;dependencies&gt;
                      &lt;dependency&gt;
                        &lt;groupId&gt;org.codehaus.groovy&lt;/groupId&gt;
                        &lt;artifactId&gt;groovy-all&lt;/artifactId&gt;
                        &lt;version&gt;2.5.2&lt;/version&gt;
                      &lt;/dependency&gt;
                    &lt;/dependencies&gt;
              &lt;/plugin&gt;
  </code></pre>
  
  <p>I am getting error when I am trying to do mvn package or mvn install on this project. The error is:</p>
  
  <pre><code>Failure to find org.codehaus.gmaven:groovy-all:jar:2.5.2 in http://myrepo:9090/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of Z-nexus-public has elapsed or updates are forced pom.xml /cockpit-repo   line 1  Maven Configuration Problem
  </code></pre>
  
  <p>I tried to do mvn clean install -U and right click on project -> Maven -> update project with Update snapshots.
  But nothing has worked till now.</p>
  
  <p>Could anyone please help me regarding this?
  Thanks in advance </p>
  
  <p>PS: I tried <code>mvn dependency:purge-local-repository clean install</code> . It also gives error:</p>
  
  <pre><code>INFO] Downloading from : http://myrepo:9090/nexus/content/groups/public/org/codehaus/gmaven/groovy-maven-plugin/maven-metadata.xml
  [INFO] Downloading from : http://myrepo:9090/nexus/content/groups/public-snapshots/org/codehaus/gmaven/groovy-maven-plugin/maven-metadata.xml
  [INFO] Downloading from : https://repo.maven.apache.org/maven2/org/codehaus/gmaven/groovy-maven-plugin/maven-metadata.xml
  [INFO] Downloaded from : https://repo.maven.apache.org/maven2/org/codehaus/gmaven/groovy-maven-plugin/maven-metadata.xml (368 B at 1.0 kB/s)
  [INFO] Downloaded from : http://myrepo:9090/nexus/content/groups/public/org/codehaus/gmaven/groovy-maven-plugin/maven-metadata.xml (368 B at 511 B/s)
  [INFO] 
  [INFO] ---------------&lt; com.zetes.crystal:cockpit-reports-flex &gt;---------------
  [INFO] Building Cockpit reports Flex components 3.2.1-MB-18
  [INFO] --------------------------------[ jar ]---------------------------------
  [INFO] Downloading from : http://myrepo:9090/nexus/content/groups/public/org/codehaus/gmaven/groovy-all/2.5.2/groovy-all-2.5.2.pom
  [INFO] Downloading from : https://repo.maven.apache.org/maven2/org/codehaus/gmaven/groovy-all/2.5.2/groovy-all-2.5.2.pom
  [WARNING] The POM for org.codehaus.gmaven:groovy-all:jar:2.5.2 is missing, no dependency information available
  [INFO] Downloading from : http://myrepo:9090/nexus/content/groups/public/org/codehaus/gmaven/groovy-all/2.5.2/groovy-all-2.5.2.jar
  [INFO] Downloading from : https://repo.maven.apache.org/maven2/org/codehaus/gmaven/groovy-all/2.5.2/groovy-all-2.5.2.jar
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 2.816 s
  [INFO] Finished at: 2018-08-30T14:25:55+02:00
  [INFO] ------------------------------------------------------------------------
  [ERROR] Plugin org.codehaus.gmaven:groovy-all:2.5.2 or one of its dependencies could not be resolved: Could not find artifact org.codehaus.gmaven:groovy-all:jar:2.5.2 in Z-nexus-public (http://myrepo:9090/nexus/content/groups/public) -&gt; [Help 1]
  </code></pre>