Reputation: 1292
I don't know if there is a better title for this post (please suggest) but the situation is this: in my .m2/repository
folder there are some dependencies with all the configuration files and the corresponing jar
but in others I have the config files but not the jar
. For instance, in .m2/repository/ant/ant/1.5/
I have the files:
_maven.repositories
ant-1.5.pom
ant-1.5.pom.lastUpdated
ant-1.5.pom.sha1
and ant-1.5.jar
is missing. Is there a way to add these missing jar
's to the local repository?
Thanks in advance for your answers.
Upvotes: 0
Views: 78
Reputation: 97517
The point is your projects should be first in version control and from there it shouldn't be a big issue to rebuilt them. If you have more than 10 projects than you are doing it wrong and you should do them via Jenkins or something similar...And the best maintenance I know of is simply delete it completely and build your project...btw. The local repository is not a repository it is only a local cache don't mistaken that...Start using a repository manager to hold the built artifacts in a reproducible manner...
Upvotes: 1