maven - tdc fln 2013
TRANSCRIPT
![Page 2: Maven - TDC FLN 2013](https://reader035.vdocuments.mx/reader035/viewer/2022081401/5584d1f3d8b42af1138b5241/html5/thumbnails/2.jpg)
Globalcode – Open4education
Agenda
Metadata
Maven em 15 mins
Maven: Passado, Presente e Futuro
Antipadrões de Maven
Conclusão
![Page 3: Maven - TDC FLN 2013](https://reader035.vdocuments.mx/reader035/viewer/2022081401/5584d1f3d8b42af1138b5241/html5/thumbnails/3.jpg)
Globalcode – Open4education
Metadata
Aldrin Leal
Pro troll
Arquitetura
Cloud, Big Data
… e ALM
Motivo?
![Page 4: Maven - TDC FLN 2013](https://reader035.vdocuments.mx/reader035/viewer/2022081401/5584d1f3d8b42af1138b5241/html5/thumbnails/4.jpg)
Globalcode – Open4education
Maven em 15 min
archetype:generate
POM
Propriedades
Caminhos e
Interpolação
Dependências /
Versões / Escopo
Plugins / Metadata
Perfis
Fases
Configuração
Flags na CLI
System-wide settings
NUNCA USAR
User-wide
settings.xml
![Page 5: Maven - TDC FLN 2013](https://reader035.vdocuments.mx/reader035/viewer/2022081401/5584d1f3d8b42af1138b5241/html5/thumbnails/5.jpg)
Globalcode – Open4education
Maven em 15 min
Flags Úteis:
-N (Sem Recursão)
-X (Log Excessivo)
-D (Definir)
-f / -s (Usar outro POM /
Settings)
-P (Ativar / Desativar
Perfil)
Mojos Utilíssimos
help:effective-pom
dependency:
analyze,go-
offline,resolve,tree,source
s,purge-local-repository}
![Page 6: Maven - TDC FLN 2013](https://reader035.vdocuments.mx/reader035/viewer/2022081401/5584d1f3d8b42af1138b5241/html5/thumbnails/6.jpg)
Globalcode – Open4education
Passado
Fundação Apache
Gump, Maven 1
Premissas
Dependência Binária não fica no SCM
Dinâmico
Headless
IDE-agnóstico
Reusar Tarefas Comuns
Integrar Ferramentas Distintas
![Page 7: Maven - TDC FLN 2013](https://reader035.vdocuments.mx/reader035/viewer/2022081401/5584d1f3d8b42af1138b5241/html5/thumbnails/7.jpg)
Globalcode – Open4education
Passado
Como era antes do Maven?
Ferramentas e Artefatos
Fontes
Repositórios
Testes
Integração Contínua
Relatorios
Distribuição
![Page 8: Maven - TDC FLN 2013](https://reader035.vdocuments.mx/reader035/viewer/2022081401/5584d1f3d8b42af1138b5241/html5/thumbnails/8.jpg)
Globalcode – Open4education
Presente
Maven 2/3
Sisu versus Plexus
Maven Central
http://search.maven.org/#stats
![Page 9: Maven - TDC FLN 2013](https://reader035.vdocuments.mx/reader035/viewer/2022081401/5584d1f3d8b42af1138b5241/html5/thumbnails/9.jpg)
Globalcode – Open4education
Presente
Aos cavaleiros do apocalipse:
Vocês vão ter que aturar mais um pouquinho…
![Page 10: Maven - TDC FLN 2013](https://reader035.vdocuments.mx/reader035/viewer/2022081401/5584d1f3d8b42af1138b5241/html5/thumbnails/10.jpg)
Globalcode – Open4education
Futuro
Tycho / Aether / Tesla
![Page 11: Maven - TDC FLN 2013](https://reader035.vdocuments.mx/reader035/viewer/2022081401/5584d1f3d8b42af1138b5241/html5/thumbnails/11.jpg)
Globalcode – Open4education
Antipadroes de Maven
Mimimi Maven
baixando a Internet
Qual as saídas?
Use menos Frameworks,
e nenhum AS
Gerenciador de
Repositorios
Publique o seu (Sonatype
OSS vs Maven Central)
Outras Broncas de
Artefatos:
Versão de Plugin Não
Definida
Escopos
Snapshots e Ranges de
Versão
Aonde encontrar?
http://search.maven.org/
Operadores: fc e 1
![Page 12: Maven - TDC FLN 2013](https://reader035.vdocuments.mx/reader035/viewer/2022081401/5584d1f3d8b42af1138b5241/html5/thumbnails/12.jpg)
Globalcode – Open4education
Antipadroes de Maven
Mimimi xml
Maven é:
Distribuição
Metadados
Ferramenta
![Page 13: Maven - TDC FLN 2013](https://reader035.vdocuments.mx/reader035/viewer/2022081401/5584d1f3d8b42af1138b5241/html5/thumbnails/13.jpg)
Globalcode – Open4education
Antipadrões de Maven
mimimi documentação
Help do Plugin
Configuração Maven
Versione o settings.xml
Vagrant
Configuração App
http://www.12factor.net/
config
Complexidade
Fatorar / Modular
POM Organizacional
{dependency/plugin}Ma
nagement
multimodule e reactor
builds
Unitário (surefire)
Versus Integração
(failsafe)
![Page 14: Maven - TDC FLN 2013](https://reader035.vdocuments.mx/reader035/viewer/2022081401/5584d1f3d8b42af1138b5241/html5/thumbnails/14.jpg)
Globalcode – Open4education
Conclusão
Dilema do Crockford
Pensamento Final
![Page 15: Maven - TDC FLN 2013](https://reader035.vdocuments.mx/reader035/viewer/2022081401/5584d1f3d8b42af1138b5241/html5/thumbnails/15.jpg)
Globalcode – Open4education
Dúvidas?
![Page 16: Maven - TDC FLN 2013](https://reader035.vdocuments.mx/reader035/viewer/2022081401/5584d1f3d8b42af1138b5241/html5/thumbnails/16.jpg)
Globalcode – Open4education
Obrigado