Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

[Maven] Customize Project Structure

 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'll admit right off the bat that I haven't thoroughly browsed the Maven documentation so if the answer to my question is there, just link me to it and I'll be happy. When I start a new project I spend quite a bit of time going out and making sure I have the latest of all the libraries I need. It is my understanding that if I used Maven it pretty much does this for me if I add the dependencies to my pom.xml.

However, I really don't like the project structure that Maven creates. Can this be customized and if so how much?

Thanks.
 
Saloon Keeper
Posts: 24898
174
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I really don't like the Maven project structure. However there are 2 reasons - 3 reasons - for using Maven:

1. You want the automated library management
2. You want a diverse team to be able to hit the ground running, so you want a standardized project structure.
3. You want to have a really ugly project structure.

Yes, you can re-arrange the project structure, but they've made it fairly difficult. I just surrender to the inevitable. Maven's hard enough to debug as it is.

Of course, there's one thing uglier than the structure of a Maven project. The structure of a Maven project under Subversion.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok, so anyway to get #1 without Maven? Any other tools out there (not appfuse)?
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think appfuse is really just some custom Maven archetypes...

One non-Maven dependency management project I've heard of (though not used) is Ivy.

You can also use AntLib for Maven - use Maven through Ant to manage dependencies, but build through Ant rather than Maven. Since you're not doing the build through Maven, it doesn't matter what your directory structure is like. (I'm doing this currently - if you run into problems/want further information... just ask.)
[ May 29, 2007: Message edited by: Nathan Pruett ]
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Nathan. I'll peek into AntLib.
 
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic