Showing posts with label Maven. Show all posts
Showing posts with label Maven. Show all posts

June 29, 2017

A simple Hibernate Example with Maven, Eclipse and SQLServer..

Go to the command prompt execute the following command to generate Maven compatible Java project named as 'HibernateSLC'
mvn archetype:generate -DgroupId=com.khs.scrutiny -DartifactId=HibernateSLC -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false

Above command will tell Maven to create a Java project from “maven-archetype-quickstart” template. If you ignore the archetypeArtifactId argument, a list of the templates will be listed for you to choose.

To convert Maven project to support Eclipse IDE, on the command prompt navigate to 'HibernateSLC' and execute below command:
mvn eclipse:eclipse

April 27, 2017

Maven Interview Questions And Answers

What is Maven?
Apache Maven is an advanced build tool to support the developer at the whole process of a software project. Maven allows the developer to automate the process of the creation of the initial folder structure for the Java application, performing the compilation, testing, packaging and deployment of the final product.

Since Maven is implemented in Java which makes it platform-independent.