Apache maven 2
Download
1 / 10

Apache Maven 2 - PowerPoint PPT Presentation


  • 146 Views
  • Uploaded on

Apache Maven 2. Hva er Maven?. Forenkler prosjekt Prosjekt bygger Oppmuntrer best practice Dokumentasjon. Bakgrunn. Jakarta Alexandria Turbine Maven 1.x Maven 2. Begynne med Maven. http://maven.apache.org Sett miljøvariabler (MAVEN_HOME, PATH) mvn archetype:create

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about ' Apache Maven 2' - cianna


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

Hva er maven
Hva er Maven?

  • Forenkler prosjekt

  • Prosjekt bygger

  • Oppmuntrer best practice

  • Dokumentasjon


Bakgrunn
Bakgrunn

  • Jakarta Alexandria

  • Turbine

  • Maven 1.x

  • Maven 2


Begynne med maven
Begynne med Maven

  • http://maven.apache.org

  • Sett miljøvariabler (MAVEN_HOME, PATH)

  • mvn archetype:create

    -DarchetypeGroupId=org.apache.maven.archetypes -DgroupId=com.mycompany.app

    -DartifactId=my-app

  • -DarchetypeArtifactId=maven-archetype-webapp


Noen kommandoer
Noen Kommandoer

  • mvn compile

  • mvn package

  • mvn install

  • mvn site

  • mvn clean

  • mvn eclipse:eclipse


POM

  • Beskriver prosjektet

  • <project>

    <modelVersion>4.0.0</modelVersion>

    <groupId>com.mycompany.app</groupId>

    <artifactId>my-app</artifactId>

    <version>1</version>

    </project>


POM

  • <packaging>jar</packaging>

  • <name>my-app</name>

  • <dependencies>

    <dependency>

    <groupId>junit</groupId>

    <artifactId>junit</artifactId>

    <version>3.8.1</version>

    <scope>test</scope>

    </dependency>

    </dependencies>


Repository
Repository

  • Lokal repository

  • Fjerntliggende repository


Fordeler
Fordeler

  • Enkel å bruke

  • Nyttige plugins

  • Transitive Dependencies


Ulemper
Ulemper

  • Tar tid å laste ned jar filer


ad