• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to add jars in Maven

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am importing a git project from gitlab in eclipse but my pom file has a lot of errors, I miss approximately 300 artifacts. When i go to my project directory and i run the command "mvn install" the build failed and what i get is :

Failed to execute goal on project smartea: Could not resolve dependencies for project biz.smart360:smartea:war:3.6.0: Failed to collect dependencies at org.restlet.jee:org.restlet:jar:2.2.0: Failed to read artifact descriptor for org.restlet.jee:org.restlet:jar:2.2.0: Could not transfer artifact org.restlet.jee:org.restlet:pom:2.2.0 from/to iteraplan.open (https://iteraplan.iteratec.de/nexus/content/groups/open): iteraplan.iteratec.de: unknown error: Unknown host iteraplan.iteratec.de:



Does anyone know how to solve that problem? I have been stucking for two days and i really need some help since i need to start to do some coding over this large project.

Thanks in advance
 
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
From my understanding, when you clean a maven project, the IDE should automatically download the missing artifacts (jars) defined in the POM file into your repository.

If it can't download, check your network setting (eg using proxy/firewall etc)

Second is make sure you imported a maven project instead of another type.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic