You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Bernhard Slominski <be...@zooplus.com> on 2005/03/17 16:45:49 UTC
Newbi dependencies file protocol
Hi,
I'm new to Maven and try to get my dependencies working and have problems
with the file protocol.
I'm using Windows 2000, SP4.
I have the follwing dependecy:
<dependency>
<groupId>servletapi</groupId>
<artifactId>servlet-api</artifactId>
<version>2.4-20040521</version>
</dependency>
I have stored the file under:
D:\java_dev\maven\lib\servletapi\jars\servlet-api-2.4-20040521.jar
It works fine when I download via the remote repository, but when trying to
load it locally with the file protocol it does not work, even I tried the
file url in my browser.
I tried two things:
1. with <url> (I renamed the Version to 2.4 otherwise it will pick up the
one at http://www.ibiblio.org/maven)
project.xml:
<dependency>
<groupId>servletapi</groupId>
<artifactId>servlet-api</artifactId>
<version>2.4</version>
<url>file:///d:/java_dev/maven/lib</url>
</dependency>
File location:
D:\java_dev\maven\lib\servletapi\jars\servlet-api-2.4.jar
Error message:
Error retrieving artifact from
[file://d:/java_dev/maven/lib/servletapi/jars/servlet-api-2.4.jar]:
java.net.UnknownHostException: d
WARNING: Failed to download servlet-api-2.4.jar.
The build cannot continue because of the following unsatisfied
dependency:...
2. Change repository
project.properties
maven.repo.remote=file:///d:/java_dev/maven/lib
project.xml:
<dependency>
<groupId>servletapi</groupId>
<artifactId>servlet-api</artifactId>
<version>2.4-20040521</version>
</dependency>
file location
D:\java_dev\maven\lib\servletapi\jars\servlet-api-2.4-20040521.jar
Error Message
Attempting to download servlet-api-2.4-20040521.jar.
Error retrieving artifact from
[file://d:/java_dev/maven/lib/servletapi/jars/se
vlet-api-2.4-20040521.jar]: java.net.UnknownHostException: d
WARNING: Failed to download servlet-api-2.4-20040521.jar.
I'm sure it's some thing wrong in the syntax, But I could not find any
example, so any hint will help me.
Thanks
Bernhard
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Newbi dependencies file protocol
Posted by Hamza Hydri <ha...@gmail.com>.
Bernhard,
when you are asking maven to load the dependencies locally, you have
to place the jars in the {user.home}\.maven\repository\ location ...
under the appropriate subfolder
for eg:
{user.home}\.maven\repository\servletapi\jar\servletapi-2.4-20040521.jar
store all your dependencies this way in the repository folder.
cheers !
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Newbi dependencies file protocol
Posted by Vincent Siveton <vi...@gmail.com>.
Hi Bernhard,
I recommend you to use the following servlet API (tomcat):
http://www.ibiblio.org/maven/tomcat/jars/
The dependy definition should be:
<dependency>
<groupId>tomcat</groupId>
<artifactId>servlet-api</artifactId>
<version>5.0.16</version>
</dependency>
Lets have a look
http://www.ibiblio.org/maven/tomcat/jars/
You can use also a proxy.
http://maven-proxy.codehaus.org/
Regards,
Vincent
On Thu, 17 Mar 2005 16:45:49 +0100, Bernhard Slominski
<be...@zooplus.com> wrote:
> Hi,
>
> I'm new to Maven and try to get my dependencies working and have problems
> with the file protocol.
> I'm using Windows 2000, SP4.
>
> I have the follwing dependecy:
> <dependency>
> <groupId>servletapi</groupId>
> <artifactId>servlet-api</artifactId>
> <version>2.4-20040521</version>
> </dependency>
> I have stored the file under:
> D:\java_dev\maven\lib\servletapi\jars\servlet-api-2.4-20040521.jar
>
> It works fine when I download via the remote repository, but when trying to
> load it locally with the file protocol it does not work, even I tried the
> file url in my browser.
>
> I tried two things:
> 1. with <url> (I renamed the Version to 2.4 otherwise it will pick up the
> one at http://www.ibiblio.org/maven)
> project.xml:
> <dependency>
> <groupId>servletapi</groupId>
> <artifactId>servlet-api</artifactId>
> <version>2.4</version>
> <url>file:///d:/java_dev/maven/lib</url>
> </dependency>
>
> File location:
> D:\java_dev\maven\lib\servletapi\jars\servlet-api-2.4.jar
> Error message:
> Error retrieving artifact from
> [file://d:/java_dev/maven/lib/servletapi/jars/servlet-api-2.4.jar]:
> java.net.UnknownHostException: d
> WARNING: Failed to download servlet-api-2.4.jar.
> The build cannot continue because of the following unsatisfied
> dependency:...
>
> 2. Change repository
> project.properties
> maven.repo.remote=file:///d:/java_dev/maven/lib
> project.xml:
> <dependency>
> <groupId>servletapi</groupId>
> <artifactId>servlet-api</artifactId>
> <version>2.4-20040521</version>
> </dependency>
>
> file location
> D:\java_dev\maven\lib\servletapi\jars\servlet-api-2.4-20040521.jar
> Error Message
> Attempting to download servlet-api-2.4-20040521.jar.
> Error retrieving artifact from
> [file://d:/java_dev/maven/lib/servletapi/jars/se
> vlet-api-2.4-20040521.jar]: java.net.UnknownHostException: d
> WARNING: Failed to download servlet-api-2.4-20040521.jar.
>
> I'm sure it's some thing wrong in the syntax, But I could not find any
> example, so any hint will help me.
> Thanks
>
> Bernhard
>
> ---------------------------------------------------------------------
> 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