Wednesday, September 12, 2012

Maven update interval for local repository

Today, while setting up new repository and moving artifacts, I ran into the following Maven (maven 3.0.4) error:
Failure to find oracle:oracle-jdbc-thin:jar:10.2.0.3 in http://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 -> [Help 1]
The solution turned out to be quite simple: run install command with the update flag
mvn clean install -U

No comments:

Post a Comment