apache maven 2
Download
Skip this Video
Download Presentation
Apache Maven 2

Loading in 2 Seconds...

play fullscreen
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
slide6
POM
  • Beskriver prosjektet
  • <project>

<modelVersion>4.0.0</modelVersion>

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

<artifactId>my-app</artifactId>

<version>1</version>

</project>

slide7
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