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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]