You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Böhringer Jochen <Jo...@tcc-products.de> on 2004/12/01 17:17:15 UTC

RE: Disable use of remote repo for SNAPSHOT dependencies

Thank you for your help.
I tried to use the maven.mode.online option instead of the -o command line parameter and it didn't work. Then I upgraded from maven 1.0.0 to maven 1.0.1 and now it works:-)


Jochen


> -----Original Message-----
> From: Brett Porter [mailto:brett.porter@gmail.com]
> Sent: Dienstag, 30. November 2004 20:21
> To: Maven Users List
> Subject: Re: Disable use of remote repo for SNAPSHOT dependencies
> 
> file:${maven.repo.local} (this is how java.net.URL handles file URLs on
> windows)
> 
> the maven.repo.remote.enabled problem is a bug.
> 
> However, you can just use -o as well...
> 
> - Brett
> 
> 
> On Tue, 30 Nov 2004 18:18:15 +0100, Böhringer Jochen
> <jo...@tcc-products.de> wrote:
> > I tried to use a file URL in the list of remote repositories:
> >
> > maven.repo.remote=file:///${maven.repo.local}
> >
> > but the URL gets corrupted by maven. One / is lost. So I get the error:
> >
> > Error retrieving artifact from
> [file://D:\MavenHome\repository/chameleon/ears/wealserverea-SNAPSHOT.ear]:
> java.net.UnknownHostException: D
> >
> > I also tried to type the path by hand:
> >
> > maven.repo.remote=file:///D:/MavenHome/repository
> >
> > But this also didn't work:
> >
> > Error retrieving artifact from
> [file://D:/MavenHome/repository/chameleon/ears/wealserverea-SNAPSHOT.ear]:
> java.net.UnknownHostException: D
> >
> > Any ideas?
> >
> > Thx
> >
> > Jochen
> >
> >
> >
> > > -----Original Message-----
> > > From: Böhringer Jochen [mailto:Jochen.Boehringer@tcc-products.de]
> > > Sent: Dienstag, 30. November 2004 18:13
> > > To: users@maven.apache.org
> > > Subject: Disable use of remote repo for SNAPSHOT dependencies
> > >
> > > Hello,
> > >
> > > I tried to use the following settings like described in the Maven -
> User
> > > Guide to disable the download of SNAPSHOT dependencies from the remote
> > > repository:
> > >
> > > maven.mode.online=true
> > > maven.repo.remote.enabled=false
> > >
> > > When I run with these settings, I get a maven error:
> > >
> > > The use of the remote repository has been disabled.
> > > The build cannot continue because of the following unsatisfied
> dependency:
> > >
> > > wealserverea-SNAPSHOT.ear
> > >
> > >
> > > But the wealserverea-SNAPSHOT.ear is in the right place in my local
> > > repository.
> > >
> > > If I use these settings:
> > >
> > > maven.mode.online=true
> > > maven.repo.remote.enabled=true
> > >
> > > the build works but maven tells me, that the remote repository did not
> > > contain the ear, but the local repository does?!
> > >
> > > Attempting to download wealserverea-SNAPSHOT.ear.
> > > Error retrieving artifact from
> > > [http://moes0008/repository/maven/chameleon/ears/wealserverea-
> > > SNAPSHOT.ear]: java.net.ConnectException: Connection refused: connect
> > > Artifact /chameleon/ears/wealserverea-SNAPSHOT.ear doesn't exists in
> > > remote repository, but it exists locally
> > >
> > >
> > > This is correct the local repository does contain the ear and the
> remote
> > > repository is out of order.
> > >
> > > How can I tell maven only to use the local repository without checking
> the
> > > remote one?
> > >
> > > Any help would be greatly appreciated!
> > >
> > > Thx
> > >
> > > Jochen
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org