• 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

Maven Error.

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm having trouble compiling with maven.
It's saying that I don't have the repository files, but I have them all, and they're all configured in the right Path.
I don't know what's wrong.

Thanks
erromaven.jpg
[Thumbnail for erromaven.jpg]
error
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I can't find the Eclipse JARs you are referencing in Maven Central - I see older versions but not the versions you are referencing.

What remote repository have you configured?

You wrote that "they're all configured in the right Path". What do you mean by this? I assume you mean that they are all in the local repository on your PC. If that is what you mean, exactly how did you put the JARs into the loacl repository? It is not sufficient to copy the files there, you must install then using the "mvn install:install-file ..." command that Maven provides in the error message.

And by the way, please don't post screen shots! Instead, copy and paste the text form the command prompt window!
 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to JavaRanch !!!

You are getting this maven build error because maven not able to get the jar files from repository, check your dependency details if those are correct then check your central repository url.

you should have central repository under repositories tag in pom.xml

<repository>
<id>maven.central</id>
<url>http://repo1.maven.org/maven2</url>;
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>


in case if the missing items(as per your logs) are doesn't have dependency then you should add snapshot in your pom.xml and also you need to add those snapshot into local repository.

you can add those into your local repository by check out those components and run locally.
 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Gopi Chella wrote:you should have central repository under repositories tag in pom.xml

<repository>
<id>maven.central</id>
<url>http://repo1.maven.org/maven2</url>;
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>


Sorry but you shouldn't define repositories in the pom nor maven central, cause Maven already know about it.

The problem here is, there are used dependencies from Eclipse (equinox etc.) which are not in Maven Central available.

This can be read here: http://wiki.eclipse.org/EclipseLink/Maven

Furthermore to use Maven in real life it is really recommended to use a repository manager (Archiva, Artifactory or Nexus) which helps solving such problems in more comfortable way.

Kind regards
Karl-Heinz Marbaise
 
reply
    Bookmark Topic Watch Topic
  • New Topic