Maven files have .lastUpdated as an extension

I have an Eclipse setup with m2eclipse and subversive. I imported the maven2 project from svn. But I get an error that the whole group of artifacts is missing (for example: The org.springframework: spring -test: jar: 3.0.1.RELEASE: test artifact is missing).

If I look in my repository, I see jar files there, but they have the additional extension .lastUpdated. Why does maven add .lastUpdated to banks? And more importantly: how can I fix this?

The lastUpdated type is not mentioned in my POM.

+58
eclipse maven-2
Mar 27 '10 at 12:19
source share
6 answers

These files tell Maven that he tried to get the archive by downloading, but was unsuccessful. To save bandwidth, it will not retry until a specific period of time, encoded in the file, has elapsed. The -U command line switch causes maven to upgrade to a retry period. This may be required if you tried to build while disconnected from the network.

The file removal method works with most versions of maven, but since the files are internal mementos for maven, I would not recommend this method. There is no guarantee that this information will not be indicated or stored elsewhere, and such manipulation can damage the system.

+40
Oct 31
source share

Like rperez , I use to delete all these .lastUpdated files. On Linux, I created a little script to make it simple:

 find -name \*.lastUpdated -exec rm -fv {} + 

Just create a file with the previous content and put it in the local Maven repository. Usually this will be ~/.m2/repository .

+10
Dec 29 '10 at 16:56
source share

I installed Maven2 and compiled mvn from the command line. This seems to have solved the problem

+6
Mar 27 '10 at 13:29
source share

If you encounter this problem and you are using Nexus, you may have a routing rule that is incorrect. I hit this myself, and the files that he downloaded were correctly named, at the corresponding URLs he was looking at, but they were all with the extension .lastUpdated and the error message as content.

+2
Oct 19 '12 at 13:59
source share

You may have a problem with some of the artifacts that will be extracted from the repository. for example, spring has its own repository. this xtension is added when the artifact cannot be fully loaded. add the spring frame repository to your pom or settings.xml, delete the folder that includes the broken banks, and start again

+1
Mar 31 '10 at 19:53
source share

Open your terminal, go to the Eclipse project directory and run:

 mvn install 

If mvn install does not update your dependencies, call it with a switch to force the update:

 mvn install -U 

This is a much safer approach than faking maven files when deleting ".lastUpdated".

0
Jan 18 '19 at 1:57
source share



All Articles