Apache Maven 2<br />Valentin Jacquemin<br />Mohammed AIT OUFKIR<br />
Agenda<br />Definition and origines<br />Ant VS Maven<br />The POM file<br />Maven plugins<br />Maven archetypes<br />Repo...
No. 3<br />08 September 2009<br />Title of Presentation<br />Definition and origines<br />What is Maven<br />The Maven aim...
No. 4<br />08 September 2009<br />Title of Presentation<br />Ant VS Maven : the advantages of Maven<br />VS<br />Versionin...
No. 5<br />08 September 2009<br />Title of Presentation<br />The POM<br />What is Maven POM?<br />Anatomy of a basic POM<b...
Maven plugins<br />Plugin: collection of goals with a general common purpose.<br />No. 6<br />08 September 2009<br />Title...
javadoc
surefire (unit tests)
ejb</li></li></ul><li>Maven Archetypes<br />what is Maven Archetype? <br />Archetype is a plug-in<br />A list of predefine...
MavenRepositories<br />No. 8<br />08 September 2009<br />Title of Presentation<br />groupId<br />   |-- artifactId<br />  ...
Dependency Management<br />How maven manage dependencies? <br />Transitive dependency.<br />Dependency scope<br />No. 9<br...
<ul><li> 3 Buit-in Lifecycles
Upcoming SlideShare
Loading in...5
×

Maven 2 Introduction

4,053

Published on

Quick introduction about maven a Java project management tool.

Published in: Technology, Art & Photos, Business
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
4,053
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
114
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide
  • C’est quoi une dépendance?Une dépendance est une référence vers un artefact spécifique contenu dans un repository. Maven offre une gestion transitive de dépendance : c’est-à-dire que si vous avez besoin d’une librairie dans votre projet et que cette librairies dépends de plusieurs autres, vous n’avez qu’à indiquer le nom de cette librairie et sa version, et Maven se charge du reste.le scope définie la phase du projet ou sera disponible cette dépendance
  • Repo local vide, afficher le repoMvnarchetype:generate#15, afficher le repoMvn testModifie POM: Ajouterunedépendance<dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> <version>3.0-FINAL</version> </dependency>Dans App.java:import org.apache.poi.hssf.usermodel.HSSFWorkbook;EtHSSFWorkbookwb = new HSSFWorkbook();Mvncompiler:compileAjouter un plugin (javadoc reporting)<reporting> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>2.5</version> </plugin> </plugins> </reporting>Mvnjavadoc:javadocGénérer site/doc: mvn siteIntégration IDE: mvneclipse:eclipse
  • DrawbacksOur experience with ITGSS
  • Maven 2 Introduction

    1. 1. Apache Maven 2<br />Valentin Jacquemin<br />Mohammed AIT OUFKIR<br />
    2. 2. Agenda<br />Definition and origines<br />Ant VS Maven<br />The POM file<br />Maven plugins<br />Maven archetypes<br />Repositories<br />Dependency Management<br />Lifecycle<br />A quick demo<br />Q&A<br />No. 2<br />08 September 2009<br />Title of Presentation<br />
    3. 3. No. 3<br />08 September 2009<br />Title of Presentation<br />Definition and origines<br />What is Maven<br />The Maven aim<br />The current version <br />How it comes to us?<br />Brief History <br />The creator of Maven (Turbine)<br />Compilation<br />Deployment<br />Validation<br />Maven<br />Site<br />Dependency<br />Documentation<br />
    4. 4. No. 4<br />08 September 2009<br />Title of Presentation<br />Ant VS Maven : the advantages of Maven<br />VS<br />Versioningmanaged by Maven<br />Maven provides conventions<br />Extensibility, reusability<br />Better quality in deliveries<br />Less time spent<br />
    5. 5. No. 5<br />08 September 2009<br />Title of Presentation<br />The POM<br />What is Maven POM?<br />Anatomy of a basic POM<br />&lt;project&gt;<br />&lt;modelVersion&gt;1.0.0&lt;/modelVersion&gt;<br /> &lt;groupId&gt;com.mycompany.app&lt;/groupId&gt;<br /> &lt;artifactId&gt;my-app&lt;/artifactId&gt;<br /> &lt;packaging&gt; jar&lt;/packaging&gt;<br /> &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;<br /> &lt;dependencies&gt;<br /> &lt;dependency&gt;<br /> &lt;groupId&gt;junit&lt;/groupId&gt;<br /> &lt;artifactId&gt;junit&lt;/artifactId&gt;<br /> &lt;version&gt;3.8.1&lt;/version&gt;<br />&lt;scope&gt; test&lt;/scope&gt;<br /> &lt;/dependency&gt;<br /> &lt;/dependencies&gt;<br />&lt;/project&gt;<br />Project <br />
    6. 6. Maven plugins<br />Plugin: collection of goals with a general common purpose.<br />No. 6<br />08 September 2009<br />Title of Presentation<br />Some examples:<br /><ul><li>jboss-maven-plugin
    7. 7. javadoc
    8. 8. surefire (unit tests)
    9. 9. ejb</li></li></ul><li>Maven Archetypes<br />what is Maven Archetype? <br />Archetype is a plug-in<br />A list of predefined archetypes<br />Generating application structure from an archetype<br />Generation an archetype from an existing project<br />No. 7<br />08 September 2009<br />Title of Presentation<br />
    10. 10. MavenRepositories<br />No. 8<br />08 September 2009<br />Title of Presentation<br />groupId<br /> |-- artifactId<br /> |--- version<br /> |-- artifactId-version.pom<br />Local repositorycontainsartifactsusedso far<br />Remoterepositoryis a global artifactswarehouse on a remote server<br />
    11. 11. Dependency Management<br />How maven manage dependencies? <br />Transitive dependency.<br />Dependency scope<br />No. 9<br />08 September 2009<br />Title of Presentation<br /> &lt;dependencies&gt;<br /> &lt;dependency&gt;<br /> &lt;groupId&gt;junit&lt;/groupId&gt;<br /> &lt;artifactId&gt;junit&lt;/artifactId&gt;<br /> &lt;version&gt;3.8.1&lt;/version&gt;<br />&lt;scope&gt; test&lt;/scope&gt;<br /> &lt;/dependency&gt;<br /> &lt;/dependencies&gt;<br />
    12. 12. <ul><li> 3 Buit-in Lifecycles
    13. 13. Several phases for each Lifecycle
    14. 14. One or many plugins for each phase
    15. 15. Simple Actions or Goals.</li></ul>No. 10<br />08 September 2009<br />Title of Presentation<br />Lifecycle<br />Phase II<br />Phase II<br />Default<br />Phase I<br />Phase II<br />Phase II<br />clean<br />Phase I<br />Phase II<br />Phase II<br />Site<br />Phase I<br />
    16. 16. Demo<br />No. 11<br />08 September 2009<br />Title of Presentation<br />
    17. 17. Q&A<br />No. 12<br />08 September 2009<br />Title of Presentation<br />
    1. Gostou de algum slide específico?

      Recortar slides é uma maneira fácil de colecionar informações para acessar mais tarde.

    ×