• 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
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Maven dependencies won't download on my Mac

 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am confused, I have dependencies in my pom, but it won't download any of them to my repository. I must have missed something in my pom to make it download.

Here is my Parent pom



here is the pom for my Domain module, it is the first to be built and should work, but the Hibernate etc dependencies are not even getting attempted to be downloaded and I have no clue why.




Thanks

Mark
 
author
Posts: 4323
39
jQuery Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you checked external library path is configured in your maven user config file?
 
Mark Spritzler
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am just using the default settings.xml, no changes needed since I don't need anything special

Mark
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

but the Hibernate etc dependencies are not even getting attempted to be downloaded



What about other dependencies like spring? Are those downloaded?

Furthermore, I see that you are using scope=runtime for Hibernate dependencies. Does it download the jars if you change the scope to "compile"?
 
Scott Selikoff
author
Posts: 4323
39
jQuery Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Mark Spritzler:
I am just using the default settings.xml, no changes needed since I don't need anything special

Mark



I think you still need to define a remoteRepository manually. In the past I've usually set up my own local/remote repositories, but if you want it to connect to a public server for the dependencies, you need to setup a path to the repositories.

Just to confirm, which dependencies is maven not working out for you? Downloading junit, hibernate, spring, etc jars?
[ September 01, 2008: Message edited by: Scott Selikoff ]
 
Mark Spritzler
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For both Scott and Jaikiran.

Not a single dependency is downloading.
For scope, I tried everything, what you see just happened to be the last value I tried.

By default there is a super pom which includes the public maven2 repository, so it is given by default.

The plugins do get downloaded, but none of my dependencies.

I am thinking there might be something that is a problem with Maven on a Mac, because I have also notices that Maven on the Mac will not run any archetypes either.

Mark
 
Mark Spritzler
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I added the Repository to my parent pom, and that had no effect at all.

Mark
 
Mark Spritzler
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is a driving me crazy. So what I tried is to run Ubuntu under VMWare, in there I used mvn archetype:generate and made a project based on one of the archetypes. The archetype I used was AppFuse Spring MVC app, which creates all the poms with dependencies. I then ran "mvn install" and even that did not download any dependencies.

Mark
 
Mark Spritzler
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OK, I got it finally figured out. I had a <dependency-management> tag around my <dependencies> tag, which makes it mean something completely different.

Mark
 
reply
    Bookmark Topic Watch Topic
  • New Topic