Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #29349
| From | Joerg Meier <joergmmeier@arcor.de> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: why use maven to deploy a servlet? |
| Date | 2014-07-26 21:41 +0200 |
| Message-ID | <19aj8h8nrthfl.yqa0qby4itkg.dlg@40tude.net> (permalink) |
| References | <1e117fb1-b031-45c3-925e-a469ef9b046c@googlegroups.com> |
On Fri, 25 Jul 2014 08:45:06 -0700 (PDT), www wrote: > I am learning Java Servlet using Eclipse(Java EE). Normally, after I finish writing the servlet code, I just export to a WAR file by a couple clicks and deploy it to Tomcat. However, I saw some people using maven doing it. I intend to take the opportunity to learn maven. However, I don't get why bothering using maven. It seems a drag. What I forgot to mention the other day, and what is one of the core features of Maven, and certainly one of the most attractive ones, is dependency management. That I forgot to mention it is quite telling - what can often develop into a nightmare of copied jar files, directories full of differently named versions, and spreadsheets about what dependency is needed by another dependency, and what jars to include at compile time, or run time, or both, commonly referred to as "dependency hell" is something that Maven just does for you. It does it so well that I didn't even remember that that was ever an issue. If I need a library in my project, I just copy 4-6 lines into my pom.xml configuration file (usually available on the libraries website), and Maven does the rest for me - search for it on the net, download it, place it whereever it belongs, and when I make a jar or war, puts it into the jar or war (or not, depending on whether it's needed). And what is more: it also deals with all the dependencies THAT library may have - no longer need I worry about whether hibernate-core.jar needs apache-logging.jar, or maybe a specific version of log4j2. Naturally, that is less of a concern if you already have a complex application set up the way you want it, so it seems less like a fantastic feature and more like a burden. Liebe Gruesse, Joerg -- Ich lese meine Emails nicht, replies to Email bleiben also leider ungelesen.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread
why use maven to deploy a servlet? www <xsli2@yahoo.com> - 2014-07-25 08:45 -0700
Re: why use maven to deploy a servlet? Joerg Meier <joergmmeier@arcor.de> - 2014-07-25 19:36 +0200
Re: why use maven to deploy a servlet? Arne Vajhøj <arne@vajhoej.dk> - 2014-07-25 21:16 -0400
Re: why use maven to deploy a servlet? Joerg Meier <joergmmeier@arcor.de> - 2014-07-26 14:31 +0200
Re: why use maven to deploy a servlet? Arne Vajhøj <arne@vajhoej.dk> - 2014-07-26 10:07 -0400
Re: why use maven to deploy a servlet? Donkey Hottie <donkey@fredriksson.dy.fi> - 2014-08-02 21:54 +0300
Re: why use maven to deploy a servlet? lipska the kat <lipskathekat@example.com> - 2014-07-26 19:24 +0100
Re: why use maven to deploy a servlet? Joerg Meier <joergmmeier@arcor.de> - 2014-07-26 21:34 +0200
Re: why use maven to deploy a servlet? lipska the kat <lipskathekat@example.com> - 2014-07-26 21:11 +0100
Re: why use maven to deploy a servlet? Joerg Meier <joergmmeier@arcor.de> - 2014-07-27 00:32 +0200
Re: why use maven to deploy a servlet? lipska the kat <lipskathekat@example.com> - 2014-07-27 08:28 +0100
Re: why use maven to deploy a servlet? Joerg Meier <joergmmeier@arcor.de> - 2014-07-28 23:06 +0200
Re: why use maven to deploy a servlet? lipska the kat <lipskathekat@example.com> - 2014-07-29 08:42 +0100
Re: why use maven to deploy a servlet? Joerg Meier <joergmmeier@arcor.de> - 2014-07-26 21:41 +0200
csiph-web