1. Archetype : Used to create Project with same pattern like Hibernate Project, Web project etc.
command : mvn archetype :generate
2. Compile Project : Go to folder where POM is place
command : mvn compile
3. Compile and Run Test (Unit Test)
command : mvn test
4. How to compile just test resources
command : mvn test-compile
5. How to create jar file using maven
command : mvn package
6. What are POM files
POM Contains :
· Information about project
· Project description
· Versioning
· Dependencies
7. List objectives provided by Maven
· Provide Quality Information
· Transparent Migration to new features
· Makes build process easy
· Uniform building system
8. Maven’s Order of inheritance
· Parent POM
· Project POM
· Settings
· CLI Parameters
9. What are two main subdirectory folder of Maven
· src
· target
10. What is target directory used?
House all output of build
11. What is Groupid
Entity or organization responsible for producing the artifact
12. What is Artifact id
Name of artifact
13. What is version
Version number of artifact
No comments:
Post a Comment