• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Query on Maven dependencies?

Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I have some queries on maven dependency.
Lets say, I want to create a Spring MVC project. Now the 1st query, how to find the spring mvc specific archetype OR I should I start with dynamic web project archetype. If spring specific archetype is found then what you need to setup in maven?

2nd query, Lets say a project has a lot of dependencies and obviously it will be using different different versions of different libraries including 3rd party jars. So, is there any way to know the particular version of these jars that this project supports eg. I need to include log4j then which version I should go for? How to know that? Because all versions of log4j may not be supported.

Saloon Keeper
Posts: 22503
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Dynamic web project" is an IDE-specific term, and therefore not directly applicable to Maven, which, when properly configured doesn't need an IDE to function.

You can start a new Maven project by finding a suitable archetype and generating from it, by cloning an existing project (which is basically what an archetype does), or by building up the POM from scratch. Usually, it's easier to plunder an existing project structure than create from scratch, but often you won't have an exact match among the available archetypes and clonable existing projects, so you take a reasonably good fit and customize.

Regarding software versions. Yes, you can essentially end up in something resembling the infamous "DLL Hell" when you construct large projects and have to find versions of stuff that play well together. It's not uncommon, in fact, to have to add even more stuff to the mix, such as the SLF4J modules that all different libraries using different logging packages to unify themselves under one particular logger.

Archetypes can help avoid many of these problems, since the archetypes have (allegedly) been built with workable version relationships already determined. Their downside is that some archetypes may be fairly antiquated and may not be using sufficiently-modern version of what you need.
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic