How to use Maven in my Java Project and Why? -


I am trying to use it and I have found many articles describing its features and uses. But I'm not only able to understand the actual use of Maven from the point of view of productivity.

What is used in our school projects, was creating a new Java project in Eclipse, write your code, create .war (if Web based) and paste the code into the webapp folder, Tomcat and Server start!

Then,

  1. Where does Maven come in the picture? I have used ant and I understand the ants of a standardized construction process. But why do we need an advanced ant in Maven?

  2. In any case, I need to use it, so where do I start - basic flow, some good tutorials

Thanks

Maven is used to manage build, test, and deployment processes This unit can isolate the test and integration test so that you only need to be cut at the time of construction and

it is also an Dry The Bhata Manager is , which means that when you feel that the server part of your project is required, then Apache Commons Logging 1.0.4 but the client 0.7.9 < Conflicts with some of the / code>, you can add some line in the related pom.xml files, and Maven handles them all (downloading, installing and keeping different versions of those dependencies Track of

i Was not a believer, but after large enterprise use of 2 years for the applications, I certainly how to get the respect that Meven table. There are so many online resources but if you are going to be the lead and feel really inconvenient, then I recommend taking a book - is useful


forget it It's been an eclipse plugin that does not feel sad about using it with Eclipse:


For example pom.xml the answer to the Segment OP question:

Your pom.xml will be included in it XML code such as:

  & lt; Dependency & gt; & Lt; Dependency & gt; & Lt; Group & gt; Commons-Logging & lt; / Group & gt; & Lt; ArtifactId & gt; Commons-Logging & lt; / ArtifactId> & Lt; Version & gt; 1.0.4 & lt; / Edition & gt; & Lt; Scope & gt; Provided & lt; / Scope & gt; & Lt; / Dependencies & gt; & Lt; / Dependencies & gt;  

They have been downloaded from the Central Mewen repository (Google "maven nexus") or you can configure your own additional repository (such as for your own projects, or if you have internet Are not connected).


Comments