How to build v3 when Nexus server is down?

As you might know, Nexus is our (GlassFish) repository manager. It so happens that it is down sometimes. If that happens, you get some download errors. Most of the time, you don't need Nexus dependencies as they are available in your local repo.

But if the build is failing due to Nexus server is down, use the following options to bypass Nexus:

1. If you're outside of Sun's Firewall (SWAN), use "-P external-repo" profile

mvn -P external-repo clean install

2. If you're inside of Sun's Firewall (SWAN), use the internal Nexus server with "-P internal-repo" profile:

mvn -P internal-repo clean install

3. If you've already built successfully and the local maven repository is up to date, you can build v3 workspace offline without internet connection. Maven will not download artifacts over the network :

mvn -DskipTests=true  -o clean install


settings.xml.pdf (application/pdf)