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/11/30 18:12:59 UTC
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