my problem with maven is that if the maven repository is not responding, one cannot build. It seems to fetch every “mvn package” time some poms, which won’t change, because they are of the same version.
How can I say to maven that please don’t look them up from server, and instead download them permanetly to offline repository?
Thanks!
You can run maven with the
-oflag:This will cause Maven to never look for dependencies in remote repositories. On the other hand, your build will fail if the dependencies are not found in the local repository.