Before going offline, you need to make sure that everything in your local repo is required when working offline. Running "mvn dependency: go-offline" for the project (s) / pom (s) that you intend to continue will reduce the effort to achieve this.
But this, as a rule, is not the whole story, because the dependency: go-offline will load only bare-assembly plugins ( go-offline / resolve-plugins does not allow all plug-in dependencies ). Thus, you need to find a way to load the deployment / testing / site plugins (and possibly others) and their dependencies in your repo.
In addition, the dependency: go-offline does not load the pom artifact itself, so you should depend on it: copy it if necessary.
Sometimes, as MaDa wrote, you donβt know what you need while being offline, which makes βenoughβ repo impossible.
In any case, if your repo is filled out correctly, you need to add "<offline> true </offline>" to the Maven's.xml settings for going offline.
Do not change the Maven (id) profile that was used to populate your repo while offline. Maven recognizes uploaded artifacts in its metadata with an "identifier" that is associated with a profile identifier.
Eike PΓΆgel Feb 26 '14 at 16:08 2014-02-26 16:08
source share