Maven
description
Transcript of Maven
Maven
What is Maven?
• Manages Software Projects- From Compilation to Distribution to Documentation to Team Building
• Was created to organize Apache Open Source projects.
Maven’s Principles
• Convention over configuration– Standard Directory Layout– One primary output per project– Standard Naming Convention
• Declarative execution• Reuse of build logic• Coherent organization of dependencies
First Maven Project
mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-webapp -DarchetypeArtifactId=maven-archetype-webapp
Common MVN Commands
mvn compilemvn packagemvn installmvn cleanmvn site
Eclipse Maven Plugin
• > mvn eclipse:eclipse• > mvn idea:idea
• > mvn eclipse:clean