Q-what is maven?
ans-"maven is a software management and comprehension tool based on the concept of project object model.
All build system are essentials the same
There are some step for build project
1-compile source code.
2-copy resource
3-compile and run test.
4-packge project.
5-deploy project
6-clean up the code.
Development of maven wanted:-
Advantages of maven: - Maven wanted a standard way to build the project they wanted clear definition what the project consist of an easy way to publish project information and way to share jar across several the project.
they wanted an easy way to build the project and share your project with the colleagues or with the client
so they come up with the tool which is called maven.. which is for building and managing any java project
maven is intended to make day to day java developer work easier
POM(project object model)
Maven uses the concept of POM.
Q-What is pom?
ans- POM is fundamental unit of work in maven you can say.
"pom is XML file that contain information about the project and configuration details used by maven
to build the project "
Note-XML file contains some information
1- Describe a project
2- This information contain name, version and artifact, source code location, Dependences of project
3- It also retail the plugin information and profile.
4- It uses XML by default
5- But not the way ant uses XML.
MAVEN Advantag and objective:-
1: - Making the build process easy.
2: - Provide the uniform an information
3: - Provide quality project information
4: - Provide guildlines for best practice Development
5: - Allowing transprant migration for a new feature.
Create first maven project simple
step1- First set class path with maven
step2- Copy that maven project path and pased on command line.
step3- mvn archetype: generate (this command is used for generate project from existeing template ) maven project( this command will help you to create a perfect diretory structure for you)
( when you entre for this command we need internate for download plugin)
note :- Generally what happend is if yu are not using maven than you need to make project structural by your self.
How to create maven project with eclipse:-
ans:-
step:- Goto file-new- choose project-search maven-select maven project-next-next-we need to give group id, artifact id,version,package and leave everything is default
and finish
after eclipse it will create maven project for us.
How maven work internally?
ans-"maven is a software management and comprehension tool based on the concept of project object model.
Maven do many things for us like resolving dependencies, create project structure, build a project, creating war/jar etc. By using Maven you can also create portlet, theme, services without any need of SDK.
(POM) which can manage project build , reporting and documentation from center piece of information."
All build system are essentials the same
There are some step for build project
1-compile source code.
2-copy resource
3-compile and run test.
4-packge project.
5-deploy project
6-clean up the code.
Development of maven wanted:-
Advantages of maven: - Maven wanted a standard way to build the project they wanted clear definition what the project consist of an easy way to publish project information and way to share jar across several the project.
they wanted an easy way to build the project and share your project with the colleagues or with the client
so they come up with the tool which is called maven.. which is for building and managing any java project
maven is intended to make day to day java developer work easier
POM(project object model)
Maven uses the concept of POM.
Q-What is pom?
ans- POM is fundamental unit of work in maven you can say.
"pom is XML file that contain information about the project and configuration details used by maven
to build the project "
Note-XML file contains some information
1- Describe a project
2- This information contain name, version and artifact, source code location, Dependences of project
3- It also retail the plugin information and profile.
4- It uses XML by default
5- But not the way ant uses XML.
MAVEN Advantag and objective:-
1: - Making the build process easy.
2: - Provide the uniform an information
3: - Provide quality project information
4: - Provide guildlines for best practice Development
5: - Allowing transprant migration for a new feature.
Create first maven project simple
step1- First set class path with maven
step2- Copy that maven project path and pased on command line.
step3- mvn archetype: generate (this command is used for generate project from existeing template ) maven project( this command will help you to create a perfect diretory structure for you)
( when you entre for this command we need internate for download plugin)
note :- Generally what happend is if yu are not using maven than you need to make project structural by your self.
How to create maven project with eclipse:-
ans:-
step:- Goto file-new- choose project-search maven-select maven project-next-next-we need to give group id, artifact id,version,package and leave everything is default
and finish
after eclipse it will create maven project for us.
How maven work internally?
Suppose you need any dependencies jar file maven it provide automatically download required dependencies for that we need to dependency on jar.
No comments:
Post a Comment