SlideShare ist ein Scribd-Unternehmen logo
1 von 38
Stefan Scheidt Solution Architect OPITZ CONSULTING GmbH Maven 3 New Features
Wer bin ich? Software-Entwickler und Architekt Trainer und Coach Autor und Sprecher
Wer ist OPITZ CONSULTING? Last Minute: Offizieller OC 1 Seiter Von Tom Ihr Projektspezialist für Java, SOA und Oracle
Wer sind Sie?
Über diesen Vortrag...
Was ist Maven? Ein deklarativesBuild-System Convention overConfiguration Wiederverwendung durch Plugins Dependency Management Ein Tool für technisches Projekt-Reporting ein „Software Project Management Tool“
Was ist Maven? Ein Open-Source-Projekt bei Apache Ziel: Vereinheitlichen von Build, Verteilung, Projekt-Webseite Zweck: Don‘trepeatyourself! Siehe auch http://maven.apache.org/what-is-maven.html
Release-Historie 	 		1.0 Beta		2003 		 	1.0			2004 / Juli 		 	2.0 Alpha		2005 / April 		 	2.0 Beta		2005 / September 		 	2.0			2005 / Oktober 		 	3.0 Alpha		2009 / Februar 		 	3.0 Beta 		2010 / April 			3.0			2010 / Oktober Quelle: http://archive.apache.org/dist/maven/binaries/
Primäre Ziele für Maven 3.0 Refactoring der Code Base Interne Modularisierung
Modularisierung Quelle: http://maven.apache.org/ref/3.0/
Primäres Anliegen BackwardCompatibility Dafür viele Integrationstests Siehehttps://grid.sonatype.org/ci/view/Maven/job/maven-3.0.x-ITs/
Compatibility Notes https://cwiki.apache.org/MAVEN/maven-3x-compatibility-notes.html No moreprofiles.xml Support forprofilesoutside of the POM orthesettings.xml has beenremoved Advise: moveaffectedprofilesintosettings.xml (Hint: mvn--settingssome/settings/file.xml)
Compatibility Notes Stricter POM Validation More Errors MoreWarnings Explanationsbased on Exceptions Links to MavenWiki https://cwiki.apache.org/confluence/display/MAVEN/Errors+and+Solutions
Compatibility Notes Dependency Resolution fromLocalRepository buildscanonlyaccesslocallycachedartifacts iftheyhavethe proper repositoriesconfigured (Maven 3 keepstrack of artifactorigin)
Einschub: Aether A libraryforinteractingwith artifactrepositories Local / RemoteRepositories Workspaces Transport Artifact Resolution
Einschub: Maven benutzt Aether
Einschub: Aether – Ziele „Wewant to ensurethatprojectsbuilding with SBT, Leinigen, Gradle, Buildr, Ant, or a homegrownsysteminteroperate reliablywithMavenrepositories.“ Jason van Zyl, Aetherquestionsansweredfor JAX
Compatibility Notes ClassPathIssues Maven 3 usingAether canresult in different classpaths Warning: mvndependency:tree still useslegacyresolutioncode! (Hint: usemvn--debug)
Compatibility Notes PluginRepositories Buildextensions, plugins and plugindependenciesareonlyresolvedfrom<pluginRepositories> (and no longerfrom<repositories>)
Compatibility Notes Plugin Version Resolution automaticpluginversionresolution isscheduledfor removal Till then: latestreleaseversionisused, notlatestsnapshotversion
Compatibility Notes SnapshotDeployments snapshotartifacts will alwaysbedeployed using a timestampedversion (<uniqueVersion>false</uniqueVersion> has no effect)
Compatibility Notes Site Generation All reportingrelatedcode has beenremovedfromMavencore ThereforeonemustuseMaven Site Plugin 3.x Siehe https://cwiki.apache.org/MAVEN/maven-3x-and-site-plugin.html
Compatibility Notes Configuration of reportingplugins pluginconfiguration in <reporting> no longeraffectsplugins in <build> (whenexecuting a pluginduringbuildlifecycleorfromcli, onlyconfigurationfrom<build>isconsidered)
PluginCompatibility PluginCompatibility Matrix https://cwiki.apache.org/MAVEN/maven-3x-plugin-compatibility-matrix.html Reporting PluginsCompatibility Matrix https://cwiki.apache.org/MAVEN/maven-3x-and-site-plugin.html
Maven Shell http://shell.sonatype.org/ https://docs.sonatype.org/display/MVNSH/Home CLI forMaven standalone Java process keepsPOMs in memoryforfasterbuilds replacesmaven-cli-plugin
Performance
Performance: Parallel builds https://cwiki.apache.org/confluence/display/MAVEN/Parallel+builds+in+Maven+3 Experimental Feature since 3.0 Beta 1 mvn -T 4 clean install    # Buildswith 4 threads
   mvn -T 1C clean install   # 1 thread per cpucore
   mvn -T 1.5C clean install # 1.5 thread per core „20-50% speedimprovementisquitecommon“ Depends on distribution of tests
Maven 3 und IDEs Major Java IDEs allreadyinclude (someversion of) Maven 3 Eclipse via m2eclipse, IntelliJ, NetBeans Still no supportby Oracle JDeveloper
Maven 3 und CI-Systeme Hudson No supportforMaven 3 yet, voteforhttp://issues.hudson-ci.org/browse/HUDSON-4988 WorkAround: Free Style Projects Shell Command: export M2_HOME=/path/to/apache-maven-3.0-beta-3 export M2=$M2_HOME/bin export PATH=$M2:$PATH 		cd someproject mvn clean install
Maven 3 und CI-Systeme Teamcity No Support in Teamcity 5 Support announcedfor Teamcity 6
Maven 3 und Sonar Sonar 2.2 supportsMaven 3 Butyouneed to use sonar-maven3-plugin:2.2 (mvn org.codehaus.sonar:sonar-maven3-plugin:2.2:sonar) Siehe http://www.sonatype.com/people/2010/08/maven-3-and-sonar/
PolyglotMaven http://polyglot.sonatype.org/
Ausblicke m2eclipse will move to eclipse.org Release of m2eclipse 1.0 „soon“ Release of mvnsh „fairlysoon“ newphase of work on PolyglotMaven OSGiruntime in futurerelease
Ausblicke: Maven 3.1 POM format 4.1 Global excludes Versionlessparentelements Mixins New settingssystem New Plugin API
Ausblicke - Quellen http://java.profict.nl/presentaties/maven.pdf http://www.sonatype.com/people/↵⌫2010/10/maven-3-0-has-landed/ http://www.infoq.com/news/2010/10/↵⌫maven-30-released Siehe auch https://sonatype.webex.com/sonatype/lsr.php?↵⌫ AT=pb&SP=EC&rID=46805542&rKey=3f773d348b2df17b
Fazit „Weseethis as a newbeginningforMaven“ Jason van Zyl
Fragen und Antworten
Kontakt Stefan Scheidt Solution Architect OPITZ CONSULTING GmbHKirchstr. 6, 51647 GummersbachTel. +49 (2261) 6001 - 0stefan.scheidt@opitz-consulting.com

Weitere ähnliche Inhalte

Was ist angesagt?

Glassfish Web Stack Launch Jyri Virkki V2
Glassfish Web Stack Launch Jyri Virkki V2Glassfish Web Stack Launch Jyri Virkki V2
Glassfish Web Stack Launch Jyri Virkki V2
Eduardo Pelegri-Llopart
 

Was ist angesagt? (20)

CodeShip
CodeShipCodeShip
CodeShip
 
Tomcat Maven Plugin
Tomcat Maven PluginTomcat Maven Plugin
Tomcat Maven Plugin
 
Capistrano deploy Magento project in an efficient way
Capistrano deploy Magento project in an efficient wayCapistrano deploy Magento project in an efficient way
Capistrano deploy Magento project in an efficient way
 
Magento 2 Capistrano Deploy
Magento 2 Capistrano DeployMagento 2 Capistrano Deploy
Magento 2 Capistrano Deploy
 
Frappe framework
Frappe framework Frappe framework
Frappe framework
 
Spring competitive tests
Spring competitive testsSpring competitive tests
Spring competitive tests
 
Unit 5
Unit 5Unit 5
Unit 5
 
Apache Maven and Java 9 and 10 (Devoxx France 2018)
Apache Maven and Java 9 and 10 (Devoxx France 2018)Apache Maven and Java 9 and 10 (Devoxx France 2018)
Apache Maven and Java 9 and 10 (Devoxx France 2018)
 
"13 ways to run web applications on the Internet" Andrii Shumada
"13 ways to run web applications on the Internet" Andrii Shumada"13 ways to run web applications on the Internet" Andrii Shumada
"13 ways to run web applications on the Internet" Andrii Shumada
 
Phalcon
PhalconPhalcon
Phalcon
 
"How to deploy to production 10 times a day" Андрей Шумада
"How to deploy to production 10 times a day" Андрей Шумада"How to deploy to production 10 times a day" Андрей Шумада
"How to deploy to production 10 times a day" Андрей Шумада
 
Weblogic.deployer usage
Weblogic.deployer usageWeblogic.deployer usage
Weblogic.deployer usage
 
Session on Launching Selenium Grid and Running tests using docker compose and...
Session on Launching Selenium Grid and Running tests using docker compose and...Session on Launching Selenium Grid and Running tests using docker compose and...
Session on Launching Selenium Grid and Running tests using docker compose and...
 
Keeping up with Java made easy with Apache Maven (Devoxx 2018)
Keeping up with Java made easy with Apache Maven (Devoxx 2018)Keeping up with Java made easy with Apache Maven (Devoxx 2018)
Keeping up with Java made easy with Apache Maven (Devoxx 2018)
 
PHP on Google App Engine
PHP on Google App EnginePHP on Google App Engine
PHP on Google App Engine
 
Glassfish Web Stack Launch Jyri Virkki V2
Glassfish Web Stack Launch Jyri Virkki V2Glassfish Web Stack Launch Jyri Virkki V2
Glassfish Web Stack Launch Jyri Virkki V2
 
Session on Selenium Powertools by Unmesh Gundecha
Session on Selenium Powertools by Unmesh GundechaSession on Selenium Powertools by Unmesh Gundecha
Session on Selenium Powertools by Unmesh Gundecha
 
Wonderful World of Maven
Wonderful World of MavenWonderful World of Maven
Wonderful World of Maven
 
Selenium Demo
Selenium DemoSelenium Demo
Selenium Demo
 
Joomlatools Platform v2.0
Joomlatools Platform v2.0Joomlatools Platform v2.0
Joomlatools Platform v2.0
 

Andere mochten auch

Fax ip pbx (eternity)
Fax ip pbx (eternity)Fax ip pbx (eternity)
Fax ip pbx (eternity)
nonchai
 
Conferencia REDES Y APOYOS A PROYECTOS DE INTERNACIONALIZACIÓN
Conferencia REDES Y APOYOS A PROYECTOS DE INTERNACIONALIZACIÓN Conferencia REDES Y APOYOS A PROYECTOS DE INTERNACIONALIZACIÓN
Conferencia REDES Y APOYOS A PROYECTOS DE INTERNACIONALIZACIÓN
ekonomistak
 
Working With Cyber Team
Working With Cyber TeamWorking With Cyber Team
Working With Cyber Team
cbeck
 
Cambio y evolución del sistema de partidos en euskadi (2003 2011)
Cambio y evolución del sistema de partidos en euskadi (2003 2011)Cambio y evolución del sistema de partidos en euskadi (2003 2011)
Cambio y evolución del sistema de partidos en euskadi (2003 2011)
Mikel Gomez
 
Adriela Josabet Torres Tapia/3H/Proyecto de vida
Adriela Josabet Torres Tapia/3H/Proyecto de vidaAdriela Josabet Torres Tapia/3H/Proyecto de vida
Adriela Josabet Torres Tapia/3H/Proyecto de vida
adrielatorres031096
 
8 - Sprachen Des Semantic Web - OWL
8 - Sprachen Des Semantic Web - OWL8 - Sprachen Des Semantic Web - OWL
8 - Sprachen Des Semantic Web - OWL
Steffen Schloenvoigt
 

Andere mochten auch (20)

CV
CVCV
CV
 
Fax ip pbx (eternity)
Fax ip pbx (eternity)Fax ip pbx (eternity)
Fax ip pbx (eternity)
 
Demanda medica síndrome forense de sócrates 2013
Demanda medica síndrome forense de sócrates 2013Demanda medica síndrome forense de sócrates 2013
Demanda medica síndrome forense de sócrates 2013
 
India now volume1_issue1
India now volume1_issue1India now volume1_issue1
India now volume1_issue1
 
Conferencia REDES Y APOYOS A PROYECTOS DE INTERNACIONALIZACIÓN
Conferencia REDES Y APOYOS A PROYECTOS DE INTERNACIONALIZACIÓN Conferencia REDES Y APOYOS A PROYECTOS DE INTERNACIONALIZACIÓN
Conferencia REDES Y APOYOS A PROYECTOS DE INTERNACIONALIZACIÓN
 
Working With Cyber Team
Working With Cyber TeamWorking With Cyber Team
Working With Cyber Team
 
Monsters high (1)
Monsters high (1)Monsters high (1)
Monsters high (1)
 
Tema 2
Tema 2Tema 2
Tema 2
 
Zoom 505ii guitar
Zoom 505ii guitarZoom 505ii guitar
Zoom 505ii guitar
 
Antropologicas nº-2
Antropologicas nº-2Antropologicas nº-2
Antropologicas nº-2
 
Spi 2012
Spi 2012Spi 2012
Spi 2012
 
CMAT 240 Welcome Presentation
CMAT 240 Welcome PresentationCMAT 240 Welcome Presentation
CMAT 240 Welcome Presentation
 
Cambio y evolución del sistema de partidos en euskadi (2003 2011)
Cambio y evolución del sistema de partidos en euskadi (2003 2011)Cambio y evolución del sistema de partidos en euskadi (2003 2011)
Cambio y evolución del sistema de partidos en euskadi (2003 2011)
 
Servicios Informáticos EUROCEI
Servicios Informáticos EUROCEIServicios Informáticos EUROCEI
Servicios Informáticos EUROCEI
 
Adriela Josabet Torres Tapia/3H/Proyecto de vida
Adriela Josabet Torres Tapia/3H/Proyecto de vidaAdriela Josabet Torres Tapia/3H/Proyecto de vida
Adriela Josabet Torres Tapia/3H/Proyecto de vida
 
Gramatica practica del_espanol
Gramatica practica del_espanolGramatica practica del_espanol
Gramatica practica del_espanol
 
8 - Sprachen Des Semantic Web - OWL
8 - Sprachen Des Semantic Web - OWL8 - Sprachen Des Semantic Web - OWL
8 - Sprachen Des Semantic Web - OWL
 
Mobile Display: How to Make Money Off of Such a Tiny Screen
Mobile Display: How to Make Money Off of Such a Tiny ScreenMobile Display: How to Make Money Off of Such a Tiny Screen
Mobile Display: How to Make Money Off of Such a Tiny Screen
 
Play uk ps4 reveal special (issue 229, 2013)
Play uk   ps4 reveal special (issue 229, 2013)Play uk   ps4 reveal special (issue 229, 2013)
Play uk ps4 reveal special (issue 229, 2013)
 
JobDax 2006
JobDax 2006JobDax 2006
JobDax 2006
 

Ähnlich wie Maven 3 New Features

Jdc 2010 - Maven, Intelligent Projects
Jdc 2010 - Maven, Intelligent ProjectsJdc 2010 - Maven, Intelligent Projects
Jdc 2010 - Maven, Intelligent Projects
Mert Çalışkan
 
Maven 2.0 - Project management and comprehension tool
Maven 2.0 - Project management and comprehension toolMaven 2.0 - Project management and comprehension tool
Maven 2.0 - Project management and comprehension tool
elliando dias
 
An Introduction to Maven
An Introduction to MavenAn Introduction to Maven
An Introduction to Maven
Vadym Lotar
 
Team Development & Continuous Integration on the Salesforce Platform
Team Development & Continuous Integration on the Salesforce PlatformTeam Development & Continuous Integration on the Salesforce Platform
Team Development & Continuous Integration on the Salesforce Platform
Carlos Ramirez Martinez-Eiroa
 
Maven 2.0 - Improve your build patterns
Maven 2.0 - Improve your build patternsMaven 2.0 - Improve your build patterns
Maven 2.0 - Improve your build patterns
elliando dias
 

Ähnlich wie Maven 3 New Features (20)

Maven 3: New Features - OPITZ CONSULTING - Stefan Scheidt
Maven 3: New Features - OPITZ CONSULTING - Stefan ScheidtMaven 3: New Features - OPITZ CONSULTING - Stefan Scheidt
Maven 3: New Features - OPITZ CONSULTING - Stefan Scheidt
 
Maven 3.0 at Øredev
Maven 3.0 at ØredevMaven 3.0 at Øredev
Maven 3.0 at Øredev
 
All the Laravel things: up and running to making $$
All the Laravel things: up and running to making $$All the Laravel things: up and running to making $$
All the Laravel things: up and running to making $$
 
Jdc 2010 - Maven, Intelligent Projects
Jdc 2010 - Maven, Intelligent ProjectsJdc 2010 - Maven, Intelligent Projects
Jdc 2010 - Maven, Intelligent Projects
 
Maven 2.0 - Project management and comprehension tool
Maven 2.0 - Project management and comprehension toolMaven 2.0 - Project management and comprehension tool
Maven 2.0 - Project management and comprehension tool
 
Maven
MavenMaven
Maven
 
An Introduction to Maven
An Introduction to MavenAn Introduction to Maven
An Introduction to Maven
 
Maven Introduction
Maven IntroductionMaven Introduction
Maven Introduction
 
Introduction to Maven
Introduction to MavenIntroduction to Maven
Introduction to Maven
 
Team Development & Continuous Integration on the Salesforce Platform
Team Development & Continuous Integration on the Salesforce PlatformTeam Development & Continuous Integration on the Salesforce Platform
Team Development & Continuous Integration on the Salesforce Platform
 
Maven 2 features
Maven 2 featuresMaven 2 features
Maven 2 features
 
Maven Overview
Maven OverviewMaven Overview
Maven Overview
 
maven
mavenmaven
maven
 
20091112 - Mars Jug - Apache Maven
20091112 - Mars Jug - Apache Maven20091112 - Mars Jug - Apache Maven
20091112 - Mars Jug - Apache Maven
 
Maven 2.0 - Improve your build patterns
Maven 2.0 - Improve your build patternsMaven 2.0 - Improve your build patterns
Maven 2.0 - Improve your build patterns
 
Exploring Maven SVN GIT
Exploring Maven SVN GITExploring Maven SVN GIT
Exploring Maven SVN GIT
 
Apache Maven - eXo VN office presentation
Apache Maven - eXo VN office presentationApache Maven - eXo VN office presentation
Apache Maven - eXo VN office presentation
 
Presentation 1 open source tools in continuous integration environment v1.0
Presentation 1   open source tools in continuous integration environment v1.0Presentation 1   open source tools in continuous integration environment v1.0
Presentation 1 open source tools in continuous integration environment v1.0
 
Jbossworld Presentation
Jbossworld PresentationJbossworld Presentation
Jbossworld Presentation
 
IBM ConnectED 2015 - BP106 From XPages Hero To OSGi Guru: Taking The Scary Ou...
IBM ConnectED 2015 - BP106 From XPages Hero To OSGi Guru: Taking The Scary Ou...IBM ConnectED 2015 - BP106 From XPages Hero To OSGi Guru: Taking The Scary Ou...
IBM ConnectED 2015 - BP106 From XPages Hero To OSGi Guru: Taking The Scary Ou...
 

Mehr von Stefan Scheidt

ipdc10: Spring Backends für iOS Apps
ipdc10: Spring Backends für iOS Appsipdc10: Spring Backends für iOS Apps
ipdc10: Spring Backends für iOS Apps
Stefan Scheidt
 
WJAX 2010: Spring Backends für iOS Apps
WJAX 2010: Spring Backends für iOS AppsWJAX 2010: Spring Backends für iOS Apps
WJAX 2010: Spring Backends für iOS Apps
Stefan Scheidt
 

Mehr von Stefan Scheidt (10)

Kotlin DSLs
Kotlin DSLsKotlin DSLs
Kotlin DSLs
 
Understanding the Four Rules of Simple Design
Understanding the Four Rules of Simple DesignUnderstanding the Four Rules of Simple Design
Understanding the Four Rules of Simple Design
 
iOS Einstieg und Ausblick
iOS Einstieg und AusblickiOS Einstieg und Ausblick
iOS Einstieg und Ausblick
 
iOS: Einstieg und Ausblick
iOS: Einstieg und AusblickiOS: Einstieg und Ausblick
iOS: Einstieg und Ausblick
 
Java script data binding mit jQuery Mobile
Java script data binding mit jQuery MobileJava script data binding mit jQuery Mobile
Java script data binding mit jQuery Mobile
 
Test driven java script development
Test driven java script developmentTest driven java script development
Test driven java script development
 
Fruehling fuers iPhone
Fruehling fuers iPhoneFruehling fuers iPhone
Fruehling fuers iPhone
 
Automatischer Build mit Maven
Automatischer Build mit MavenAutomatischer Build mit Maven
Automatischer Build mit Maven
 
ipdc10: Spring Backends für iOS Apps
ipdc10: Spring Backends für iOS Appsipdc10: Spring Backends für iOS Apps
ipdc10: Spring Backends für iOS Apps
 
WJAX 2010: Spring Backends für iOS Apps
WJAX 2010: Spring Backends für iOS AppsWJAX 2010: Spring Backends für iOS Apps
WJAX 2010: Spring Backends für iOS Apps
 

Kürzlich hochgeladen

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Kürzlich hochgeladen (20)

CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 

Maven 3 New Features

  • 1. Stefan Scheidt Solution Architect OPITZ CONSULTING GmbH Maven 3 New Features
  • 2. Wer bin ich? Software-Entwickler und Architekt Trainer und Coach Autor und Sprecher
  • 3. Wer ist OPITZ CONSULTING? Last Minute: Offizieller OC 1 Seiter Von Tom Ihr Projektspezialist für Java, SOA und Oracle
  • 6. Was ist Maven? Ein deklarativesBuild-System Convention overConfiguration Wiederverwendung durch Plugins Dependency Management Ein Tool für technisches Projekt-Reporting ein „Software Project Management Tool“
  • 7. Was ist Maven? Ein Open-Source-Projekt bei Apache Ziel: Vereinheitlichen von Build, Verteilung, Projekt-Webseite Zweck: Don‘trepeatyourself! Siehe auch http://maven.apache.org/what-is-maven.html
  • 8. Release-Historie 1.0 Beta 2003 1.0 2004 / Juli 2.0 Alpha 2005 / April 2.0 Beta 2005 / September 2.0 2005 / Oktober 3.0 Alpha 2009 / Februar 3.0 Beta 2010 / April 3.0 2010 / Oktober Quelle: http://archive.apache.org/dist/maven/binaries/
  • 9. Primäre Ziele für Maven 3.0 Refactoring der Code Base Interne Modularisierung
  • 11. Primäres Anliegen BackwardCompatibility Dafür viele Integrationstests Siehehttps://grid.sonatype.org/ci/view/Maven/job/maven-3.0.x-ITs/
  • 12. Compatibility Notes https://cwiki.apache.org/MAVEN/maven-3x-compatibility-notes.html No moreprofiles.xml Support forprofilesoutside of the POM orthesettings.xml has beenremoved Advise: moveaffectedprofilesintosettings.xml (Hint: mvn--settingssome/settings/file.xml)
  • 13. Compatibility Notes Stricter POM Validation More Errors MoreWarnings Explanationsbased on Exceptions Links to MavenWiki https://cwiki.apache.org/confluence/display/MAVEN/Errors+and+Solutions
  • 14. Compatibility Notes Dependency Resolution fromLocalRepository buildscanonlyaccesslocallycachedartifacts iftheyhavethe proper repositoriesconfigured (Maven 3 keepstrack of artifactorigin)
  • 15. Einschub: Aether A libraryforinteractingwith artifactrepositories Local / RemoteRepositories Workspaces Transport Artifact Resolution
  • 17. Einschub: Aether – Ziele „Wewant to ensurethatprojectsbuilding with SBT, Leinigen, Gradle, Buildr, Ant, or a homegrownsysteminteroperate reliablywithMavenrepositories.“ Jason van Zyl, Aetherquestionsansweredfor JAX
  • 18. Compatibility Notes ClassPathIssues Maven 3 usingAether canresult in different classpaths Warning: mvndependency:tree still useslegacyresolutioncode! (Hint: usemvn--debug)
  • 19. Compatibility Notes PluginRepositories Buildextensions, plugins and plugindependenciesareonlyresolvedfrom<pluginRepositories> (and no longerfrom<repositories>)
  • 20. Compatibility Notes Plugin Version Resolution automaticpluginversionresolution isscheduledfor removal Till then: latestreleaseversionisused, notlatestsnapshotversion
  • 21. Compatibility Notes SnapshotDeployments snapshotartifacts will alwaysbedeployed using a timestampedversion (<uniqueVersion>false</uniqueVersion> has no effect)
  • 22. Compatibility Notes Site Generation All reportingrelatedcode has beenremovedfromMavencore ThereforeonemustuseMaven Site Plugin 3.x Siehe https://cwiki.apache.org/MAVEN/maven-3x-and-site-plugin.html
  • 23. Compatibility Notes Configuration of reportingplugins pluginconfiguration in <reporting> no longeraffectsplugins in <build> (whenexecuting a pluginduringbuildlifecycleorfromcli, onlyconfigurationfrom<build>isconsidered)
  • 24. PluginCompatibility PluginCompatibility Matrix https://cwiki.apache.org/MAVEN/maven-3x-plugin-compatibility-matrix.html Reporting PluginsCompatibility Matrix https://cwiki.apache.org/MAVEN/maven-3x-and-site-plugin.html
  • 25. Maven Shell http://shell.sonatype.org/ https://docs.sonatype.org/display/MVNSH/Home CLI forMaven standalone Java process keepsPOMs in memoryforfasterbuilds replacesmaven-cli-plugin
  • 27. Performance: Parallel builds https://cwiki.apache.org/confluence/display/MAVEN/Parallel+builds+in+Maven+3 Experimental Feature since 3.0 Beta 1 mvn -T 4 clean install # Buildswith 4 threads
 mvn -T 1C clean install # 1 thread per cpucore
 mvn -T 1.5C clean install # 1.5 thread per core „20-50% speedimprovementisquitecommon“ Depends on distribution of tests
  • 28. Maven 3 und IDEs Major Java IDEs allreadyinclude (someversion of) Maven 3 Eclipse via m2eclipse, IntelliJ, NetBeans Still no supportby Oracle JDeveloper
  • 29. Maven 3 und CI-Systeme Hudson No supportforMaven 3 yet, voteforhttp://issues.hudson-ci.org/browse/HUDSON-4988 WorkAround: Free Style Projects Shell Command: export M2_HOME=/path/to/apache-maven-3.0-beta-3 export M2=$M2_HOME/bin export PATH=$M2:$PATH cd someproject mvn clean install
  • 30. Maven 3 und CI-Systeme Teamcity No Support in Teamcity 5 Support announcedfor Teamcity 6
  • 31. Maven 3 und Sonar Sonar 2.2 supportsMaven 3 Butyouneed to use sonar-maven3-plugin:2.2 (mvn org.codehaus.sonar:sonar-maven3-plugin:2.2:sonar) Siehe http://www.sonatype.com/people/2010/08/maven-3-and-sonar/
  • 33. Ausblicke m2eclipse will move to eclipse.org Release of m2eclipse 1.0 „soon“ Release of mvnsh „fairlysoon“ newphase of work on PolyglotMaven OSGiruntime in futurerelease
  • 34. Ausblicke: Maven 3.1 POM format 4.1 Global excludes Versionlessparentelements Mixins New settingssystem New Plugin API
  • 35. Ausblicke - Quellen http://java.profict.nl/presentaties/maven.pdf http://www.sonatype.com/people/↵⌫2010/10/maven-3-0-has-landed/ http://www.infoq.com/news/2010/10/↵⌫maven-30-released Siehe auch https://sonatype.webex.com/sonatype/lsr.php?↵⌫ AT=pb&SP=EC&rID=46805542&rKey=3f773d348b2df17b
  • 36. Fazit „Weseethis as a newbeginningforMaven“ Jason van Zyl
  • 38. Kontakt Stefan Scheidt Solution Architect OPITZ CONSULTING GmbHKirchstr. 6, 51647 GummersbachTel. +49 (2261) 6001 - 0stefan.scheidt@opitz-consulting.com