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

"Domino" project dependencies

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello, I hope this forum is the right place for this question...

This is the scenario:
Project A-> depends on Project B->depends on ProjectC

Each project has its own /lib and /config.

Up to this point, for successful execution, each project's /lib and /config have to be manually copied into its parent Project. And each project has to be built individually. As you could see, this process is becoming cumbersome as more projects are being added. I've read about Maven but can't quite wrap my head around it, and not sure if Maven will actually help the situation or open up more can of worms.

Could you please recommend a better way? Also, i'm using Netbeans. Any pointers will be greatly appreciated.
 
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
Maven handles these types of dependencies very well. It really is worth learning just for this one capability. And the integration with Eclipse keeps getting better; I assume that the same is happening with NetBeans.
 
laila NiHai
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for your reply Peter! Now, I feel better knowing that there will be a light at the end of the tunnel of learning Maven!
 
Peter Johnson
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
After you have read Better Builds with Maven and Maven: The Complete Reference, and have created a few projects that use Maven, write a Maven plugin. Once you have written the plugin you will have a better feeling for how Maven works and it will no longer appear to be a "black box". Also, do your builds from the command line to get used to working with Maven. Only after you become familiar with with running Maven on the command line should you use the Maven capabilities built into your IDE. I keep on having to help too many of my co-workers who refuse to follow this advice and run into issues when the IDE tries to be helpful and instead messes things up.
 
laila NiHai
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks again for all the great advices Peter.
 
On top of spaghetti all covered in cheese, there was this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic