• Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
664
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
2
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n

Transcript

  • 1. mavengerenciamento de dependência fácil com maven
  • 2. problema?• enormes scripts de build• muitas dependencias• desenvolvimento orientado a componentes
  • 3. Objetivos• foi criado para simplificar processo de build de projetos Java• padronização de projetos• forma simples de compartilhar jars entre projetos (desenvolvimento orientado a coimponentes)
  • 4. Principais funcionalidades• build fácil• sistema de build uniforme (plugins)• prover informação sobre o projeto • mail list • dependency list • unit test report• prover melhores práticas
  • 5. archetypes• mvn archetype:generate
  • 6. Criando um projeto• mvn archetype:generate - DgroupId=com.mycompany.app - DartifactId=my-app - DarchetypeArtifactId=maven- archetype-quickstart - DinteractiveMode=false
  • 7. POM project object model <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http:// www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/ 4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.mycompany.app</groupId> <artifactId>my-app</artifactId> <packaging>jar</packaging> <version>1.0-SNAPSHOT</version> <name>Maven Quick Start Archetype</name> <url>http://maven.apache.org</url> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.8.2</version> <scope>test</scope> </dependency> </dependencies></project>
  • 8. Maven Phases• validade• compile• test• package• integration-test• verify• install• deploy
  • 9. Site de documentação• mvn site
  • 10. Javadoc• mvn javadoc:javadoc
  • 11. IDE• mvn eclipse:eclipse• mvn netbeans:netbeans
  • 12. repositorios de componentes• apache archiva• repositoios oficiais