Results 1 to 4 of 4
  1. #1
    Pojahn_M's Avatar
    Pojahn_M is offline Senior Member
    Join Date
    Mar 2011
    Location
    Sweden
    Posts
    200
    Rep Power
    9

    Default Maven + Tomcat Project, newbie questions

    I am creating a webserver with Tomcat and Maven for education purposes. Unfortunately, Maven is causing major confusion.
    Some questions:

    - Is Maven used to execute projects or just compile them(I know that it also handles dependencies)?
    - Do I execute/launch the tomcat server with Maven or the in "Servers" section in Eclipse?
    - Maven in Eclipse vs command line?

  2. #2
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    5,114
    Rep Power
    12

    Default Re: Maven + Tomcat Project, newbie questions

    Is Maven used to execute projects or just compile them(I know that it also handles dependencies)?
    Maven ? Maven Features

    Do I execute/launch the tomcat server with Maven or the in "Servers" section in Eclipse?
    Technically you can do both and also neither since you can just manually boot the server, but since you develop in Eclipse it makes a whole lot more common sense to do it from there

    Maven in Eclipse vs command line?
    Just tagging a question mark to a sentence does not make it a question. You use the maven integration plugin (m2eclipse, which comes bundled with eclipse nowadays) to be able to create an Eclipse project from Maven poms and you do most of your development work from Eclipse without Maven. I tend to do a command line build right at the beginning to fetch all the dependencies, I do intermittent command line builds to easily run all unit tests and I do a command line build to create a final deployable artifact.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  3. #3
    Pojahn_M's Avatar
    Pojahn_M is offline Senior Member
    Join Date
    Mar 2011
    Location
    Sweden
    Posts
    200
    Rep Power
    9

    Default Re: Maven + Tomcat Project, newbie questions

    Are there pro & cons when launching tomcat via Maven vs the Servers section?
    Are there cases where I need to launch my tomcat project via Maven? Do I get extra features/abilities?

  4. #4
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    5,114
    Rep Power
    12

    Default Re: Maven + Tomcat Project, newbie questions

    Quote Originally Posted by Pojahn_M View Post
    Are there pro & cons when launching tomcat via Maven vs the Servers section?
    Try it and experience it for yourself. I'm sure you'll find doing it from Eclipse is just a whole lot faster.

    Are there cases where I need to launch my tomcat project via Maven? Do I get extra features/abilities?
    It doesn't pay off to ask context-sensitive questions. Imagine you asking "Do I need to get a passport?". Yeah maybe, depends on where you travel. On top of that your questions really only stem from the fact that you haven't taken the time to actually read into Maven yet.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

Similar Threads

  1. convert dynamic web project to maven project
    By Achouri in forum Apache Maven
    Replies: 0
    Last Post: 04-23-2014, 02:31 AM
  2. Replies: 0
    Last Post: 09-03-2013, 03:35 PM
  3. Replies: 1
    Last Post: 09-03-2013, 12:54 PM
  4. Installing Apache tomcat and maven into NetBeans
    By MostinCredible21 in forum Apache Commons
    Replies: 0
    Last Post: 01-03-2012, 08:57 PM
  5. How to convert from Ant project to maven project?
    By jiapei100 in forum New To Java
    Replies: 0
    Last Post: 06-08-2011, 10:01 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •