10

This is my metadata. It's clearly incorrect, but I don't know why, so maven can't update download dependencies in my project.

<metadata modelVersion="1.1.0">
   <groupId>com.test</groupId>
   <artifactId>test-sdk</artifactId>
   <version>1.7.0-SNAPSHOT</version>
   <versioning>
     <snapshot>
       <timestamp>20140130.175110</timestamp>
       <buildNumber>58</buildNumber>
     </snapshot>
     <lastUpdated>20140130175110</lastUpdated>
     <snapshotVersions>
       <snapshotVersion>
         <extension>jar</extension>
         <value>1.7.0-20140130.175109-57</value>
         <updated>20140130175110</updated>
       </snapshotVersion>
       <snapshotVersion>
         <extension>pom</extension>
         <value>1.7.0-20140130.175109-57</value>
         <updated>20140130175110</updated>
       </snapshotVersion>
     </snapshotVersions>
   </versioning>
 </metadata>
2
  • 1
    Are you having problems trying to download new SNAPSHOTs from Nexus or having problems uploading (mvn deploy) to it? If the problem is on downloading, I suggest you to run your build with the -U flag. Jan 31, 2014 at 12:17
  • I am having problem downloading, because build 58 doesn't exists
    – gavioto
    Feb 1, 2014 at 16:20

3 Answers 3

5

I don't know why this happens, but I solved scheduling a Nexus task to "rebuild metadata" in "Scheduled Task" admin option. For now, this is a valid solution for me.

enter image description here

Additional information about how to fix the issue in this answer

1
  • I added a self explanatory image and updated the text
    – gavioto
    Feb 3, 2015 at 11:09
1

I encountered the same problem. You might check your test-sdk's parent pom to see if any extra maven deploy plugin defined in.

1
  • Thanks. But this project doesn't have parent pom. Some other idea?
    – gavioto
    Feb 11, 2016 at 17:17
1

I had this issue when I used the Maven Deploy Plugin and the Nexus Staging Plugin simultaneously. Try skipping the Maven Deploy Plugin:

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-deploy-plugin</artifactId>
  <configuration>
    <skip>true</skip>
  </configuration>
</plugin>
1
  • It makes sense. Thanks
    – gavioto
    Oct 31, 2019 at 21:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.