• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Problem with Maven configuration

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have downloaded and installed maven1.0.2. I put maven1.0.2/lib in the classpath and maven1.0.2/bin in the path of the system. But when i run the maven from console where my project.xml is present, i got errors like
"Attempting to download servletapi-2.3.jar.
Error retrieving artifact from [http://www.ibiblio.org/maven/servletapi/jars/servletapi-2.3.jar]: java.net.ConnectException: Connection refused: connect
WARNING: Failed to download servletapi-2.3.jar."

Like this some errors are coming. Basically these are the jar files(servletapi-2.3.jar) on which the application is dependent and which are mentioned in project.xml as a dependency.
I have also put these all these jar files in system classpath, but still the error persist.

So can any one help me in finding out the root cause of the problem.
Thanks well in advance.
Shrikant
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That problem is caused by Maven not being able to form a TCP connection to the ibiblio Maven repository. You have two options:
1) fix the network connection
2) manually get the .jar file in question from somewhere and place it into your local Maven repository
 
Shrikant Kulkarni
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Lasse Koskela,
I have installed Maven in C:\Program Files\Apache Software Foundation\Maven 1.0.2 directory structure. As per your second suggestion, where i should I place the Jar files which it is looking for(Ex: servletapi-2.3.jar)?
It should be in lib/bin or in some other directory inside Maven_Home?

Pls help.

Shrikant
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to Ant, Maven and Other Build Tools...
 
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"shrikant ks",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
Forum Bartender
 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
> As per your second suggestion, where i should I place the Jar files which it is looking for(Ex: servletapi-2.3.jar)?

It should be in the folder where the Maven Repository is. One of the installation steps is to create this repository using script: install_repo.bat REPO_FOLDER

So, You should copy servletapi-2.3.jar to REPO_FOLDER/servletapi/jars/servletapi-2.3.jar

Hint: On the http://www.ibiblio.org/maven/ You can find default directory structure for most known libraries.

Best Regards
KArol Muszynski
 
You don't like waffles? Well, do you like this tiny ad?
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic