Using Maven in Hibernate Tutorial -
I have Maven installed and I'm trying to go through the hibernate tutorial. But how can I use this file:
What should Maven do with it? Maven uses the project object model to describe the project.
Includes definitions of dependencies and execution to use for a project, including running reports while building, and many other features In Maven 2 the model is defined in pom.xml (file in Maven 1 is called Project.xml).
Maven expects to find pom.xml in the project's root directory (though it can be overridden). When you run a maven goal, the POM is parsed with pom.xml, Maven determines what dependencies and plugins are necessary, download them from the remote repository, then run the plug-in configured for the project. Are there.
For a Jar project, running mvn install will be based on a series of operations by default. You can define additional tasks by adding the definition of palm's plugin and binding it in the relevant phase of the lifecycle.
There is a good guide to Maven. This section will run through various parts of the Maven configuration. If you are familiar with the ant, look at the T block to understand the difference.
Comments
Post a Comment