Use the offline flag On Tue, Dec 30, 2008 at 1:31 PM, Rick <[email protected]> wrote:
> I've googled this and tried to search the archives but it's hard to > get a direct hit. > > We are using an internal repository but if for some reason that > repository goes down, isn't there a way the maven build can still > proceed using the files in the user's local repository (assuming of > course the pom hasn't changes and dependencies since they last were > connected.) Right now, if that internal repository is down, the builds > will not work. My repository definitions look like this (I know there > is debate about where to put the repository info, but I like it in the > project's parent pom instead of on the user's machine.): > > <repositories> > <repository> > <id>central</id> > <url>http://company-repo-IP:8081/artifactory/repo</url> > <snapshots> > <enabled>false</enabled> > </snapshots> > </repository> > <repository> > <id>snapshots</id> > <url>http://company-repo-IP:8081/artifactory/repo</url> > <releases> > <enabled>false</enabled> > </releases> > </repository> > <repository> > <id>maven2-repository.dev.java.net</id> > <name>Java.net Repository for Maven</name> > <url>http://download.java.net/maven/2/</url> > <layout>default</layout> > </repository> > <repository> > <id>maven2-repository.dev.java.net</id> > <name>Java.net Repository for Maven</name> > <url>http://download.java.net/maven/2/</url> > <layout>default</layout> > </repository> > <repository> > <id>jboss.net repo</id> > <name>Java.net Repository for Maven</name> > <url>http://repository.jboss.org/maven2</url> > <layout>default</layout> > </repository> > </repositories> > <pluginRepositories> > <pluginRepository> > <id>central</id> > <url>http://company-repo-IP:8081/artifactory/plugins-releases > </url> > <snapshots> > <enabled>false</enabled> > </snapshots> > </pluginRepository> > <pluginRepository> > <id>snapshots</id> > <url>http://company-repo-IP:8081/artifactory/plugins-snapshots > </url> > <releases> > <enabled>false</enabled> > </releases> > </pluginRepository> > </pluginRepositories> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
