SlideShare une entreprise Scribd logo
1  sur  8
Télécharger pour lire hors ligne
m2eclipse: integrazione
maven2 in eclipse IDE
Marcello Teodori
marcello.teodori@jugmilano.it
Cos'è Maven?

Da maven.apache.org:
"Maven is a Java project
 management and project
 comprehension tool"



                     JUG Milano - m2eclipse 2
L'ecosistema Maven




               JUG Milano - m2eclipse 3
maven-eclipse-plugin

●   definizione variabile M2_REPO:

    mvn -Declipse.workspace=<path-to-eclipse-workspace>
            eclipse:add-maven-repo



●   generazione file di progetto eclipse:

    mvn eclipse:eclipse




                                        JUG Milano - m2eclipse 4
m2eclipse


●   progetto di Sonatype
●   web site: http://m2eclipse.sonatype.org
●   proposto alla fondazione Eclipse
●   plugin “storico” per Maven, nato già ai tempi
    di Maven1 e noto anche con il nome tycho
●   ha un concorrente: q4e
●   community attiva e release frequenti
●   integra nell'help di Eclipse il libro “Maven:
    The Definitive Guide”!!!
                                    JUG Milano - m2eclipse 5
installazione m2eclipse

●   Eclipse 3.3 o 3.4 con editor XML editor
●   update site “stable”:
    http://m2eclipse.sonatype.org/update/
●   update site “dev”:
    http://m2eclipse.sonatype.org/update-dev/
●   useremo la versione dev: 0.9.5.20080627
●   requisiti opzionali:
    –   Subversive (o Subclipse)
    –   Mylyn


                                   JUG Milano - m2eclipse 6
Demo Time
●   new project
●   new project from archetype
●   add dependency
●   add plugin
●   POM Editor
●   dependency viewer
●   WTP support
●   SCM integration
●   Mylyn integration


                                 JUG Milano - m2eclipse 7
Qualche nota finale...
●   i dati nel POM possono essere utili in Eclipse
    anche indipendentemente dall'uso di Maven
    nella build
●   Maven POM vs. DOAP vs. semantic web?
●   ancora nessuna soluzione per la
    configurazione dei plugin...




                                    JUG Milano - m2eclipse 8

Contenu connexe

Similaire à m2eclipse: integrazione maven2 in eclipse IDE

Maven from dummies
Maven from dummiesMaven from dummies
Maven from dummiesfirenze-gtug
 
Apache Maven - Gestione di progetti Java e build automation
Apache Maven - Gestione di progetti Java e build automationApache Maven - Gestione di progetti Java e build automation
Apache Maven - Gestione di progetti Java e build automationTiziano Serritella
 
Infrastructure as code: Kubernetes on ACS
Infrastructure as code: Kubernetes on ACSInfrastructure as code: Kubernetes on ACS
Infrastructure as code: Kubernetes on ACSNucleode Srl
 
SPRING - MAVEN - REST API (ITA - Luglio 2017)
SPRING - MAVEN - REST API (ITA - Luglio 2017)SPRING - MAVEN - REST API (ITA - Luglio 2017)
SPRING - MAVEN - REST API (ITA - Luglio 2017)Valerio Radice
 
Working between the clouds
Working between the cloudsWorking between the clouds
Working between the cloudsDavide Cerbo
 
Tanti "piccoli rilasci" con Symfony2
Tanti "piccoli rilasci" con Symfony2Tanti "piccoli rilasci" con Symfony2
Tanti "piccoli rilasci" con Symfony2Fabio Mora
 
ASP.NET 4.6 e ASP.NET 5...l'evoluzione del web
ASP.NET 4.6 e ASP.NET 5...l'evoluzione del webASP.NET 4.6 e ASP.NET 5...l'evoluzione del web
ASP.NET 4.6 e ASP.NET 5...l'evoluzione del webAndrea Dottor
 
DbUp - A real case of database migration
DbUp - A real case of database migrationDbUp - A real case of database migration
DbUp - A real case of database migrationAndrea Cirioni
 
Progetto SOD Davide Sito
Progetto SOD Davide SitoProgetto SOD Davide Sito
Progetto SOD Davide SitoDavide Sito
 
Maven: Convention over Configuration
Maven: Convention over ConfigurationMaven: Convention over Configuration
Maven: Convention over Configurationvschiavoni
 
Spring Framework
Spring FrameworkSpring Framework
Spring FrameworkNaLUG
 
Milano Meetup #8 - Testing & Salesforce Integration
Milano Meetup #8 - Testing & Salesforce IntegrationMilano Meetup #8 - Testing & Salesforce Integration
Milano Meetup #8 - Testing & Salesforce IntegrationGonzalo Marcos Ansoain
 

Similaire à m2eclipse: integrazione maven2 in eclipse IDE (20)

Maven from dummies
Maven from dummiesMaven from dummies
Maven from dummies
 
Apache Maven - Gestione di progetti Java e build automation
Apache Maven - Gestione di progetti Java e build automationApache Maven - Gestione di progetti Java e build automation
Apache Maven - Gestione di progetti Java e build automation
 
Java sul tuo Mac
Java sul tuo MacJava sul tuo Mac
Java sul tuo Mac
 
Infrastructure as code: Kubernetes on ACS
Infrastructure as code: Kubernetes on ACSInfrastructure as code: Kubernetes on ACS
Infrastructure as code: Kubernetes on ACS
 
SPRING - MAVEN - REST API (ITA - Luglio 2017)
SPRING - MAVEN - REST API (ITA - Luglio 2017)SPRING - MAVEN - REST API (ITA - Luglio 2017)
SPRING - MAVEN - REST API (ITA - Luglio 2017)
 
Maven - Aprile 2010
Maven - Aprile 2010Maven - Aprile 2010
Maven - Aprile 2010
 
Continous integration e jenkins
Continous integration e jenkinsContinous integration e jenkins
Continous integration e jenkins
 
Working between the clouds
Working between the cloudsWorking between the clouds
Working between the clouds
 
Tanti "piccoli rilasci" con Symfony2
Tanti "piccoli rilasci" con Symfony2Tanti "piccoli rilasci" con Symfony2
Tanti "piccoli rilasci" con Symfony2
 
Maven Eclipse
Maven EclipseMaven Eclipse
Maven Eclipse
 
ASP.NET 4.6 e ASP.NET 5...l'evoluzione del web
ASP.NET 4.6 e ASP.NET 5...l'evoluzione del webASP.NET 4.6 e ASP.NET 5...l'evoluzione del web
ASP.NET 4.6 e ASP.NET 5...l'evoluzione del web
 
DbUp - A real case of database migration
DbUp - A real case of database migrationDbUp - A real case of database migration
DbUp - A real case of database migration
 
Rich Internet Application
Rich Internet ApplicationRich Internet Application
Rich Internet Application
 
Progetto SOD Davide Sito
Progetto SOD Davide SitoProgetto SOD Davide Sito
Progetto SOD Davide Sito
 
Maven: Convention over Configuration
Maven: Convention over ConfigurationMaven: Convention over Configuration
Maven: Convention over Configuration
 
Infrastructure as Data
Infrastructure as DataInfrastructure as Data
Infrastructure as Data
 
Spring Framework
Spring FrameworkSpring Framework
Spring Framework
 
Docker & DevOps
Docker  & DevOpsDocker  & DevOps
Docker & DevOps
 
Milano Meetup #8 - Testing & Salesforce Integration
Milano Meetup #8 - Testing & Salesforce IntegrationMilano Meetup #8 - Testing & Salesforce Integration
Milano Meetup #8 - Testing & Salesforce Integration
 
Drush make vs composer
 Drush make vs composer Drush make vs composer
Drush make vs composer
 

Plus de Marcello Teodori

Anatomy of an APS 2 appication
Anatomy of an APS 2 appicationAnatomy of an APS 2 appication
Anatomy of an APS 2 appicationMarcello Teodori
 
JavaScript Power Tools 2015
JavaScript Power Tools 2015JavaScript Power Tools 2015
JavaScript Power Tools 2015Marcello Teodori
 
Wicket from Designer to Developer
Wicket from Designer to DeveloperWicket from Designer to Developer
Wicket from Designer to DeveloperMarcello Teodori
 
JBoss Seam, un framework per Java EE 5
JBoss Seam, un framework per Java EE 5JBoss Seam, un framework per Java EE 5
JBoss Seam, un framework per Java EE 5Marcello Teodori
 
Struttin' on, novità in casa Struts
Struttin' on, novità in casa StrutsStruttin' on, novità in casa Struts
Struttin' on, novità in casa StrutsMarcello Teodori
 
Sviluppare su OpenOffice.org con Java
Sviluppare su OpenOffice.org con JavaSviluppare su OpenOffice.org con Java
Sviluppare su OpenOffice.org con JavaMarcello Teodori
 
Un backend per tutte le stagioni con Spring
Un backend per tutte le stagioni con SpringUn backend per tutte le stagioni con Spring
Un backend per tutte le stagioni con SpringMarcello Teodori
 
Streaming in Java e Flex con Red5
Streaming in Java e Flex con Red5Streaming in Java e Flex con Red5
Streaming in Java e Flex con Red5Marcello Teodori
 

Plus de Marcello Teodori (12)

Anatomy of an APS 2 appication
Anatomy of an APS 2 appicationAnatomy of an APS 2 appication
Anatomy of an APS 2 appication
 
Refactoring to a SPA
Refactoring to a SPARefactoring to a SPA
Refactoring to a SPA
 
JavaScript Power Tools 2015
JavaScript Power Tools 2015JavaScript Power Tools 2015
JavaScript Power Tools 2015
 
Wicket from Designer to Developer
Wicket from Designer to DeveloperWicket from Designer to Developer
Wicket from Designer to Developer
 
Software Factory in a Box
Software Factory in a BoxSoftware Factory in a Box
Software Factory in a Box
 
Groovy & Grails
Groovy & GrailsGroovy & Grails
Groovy & Grails
 
JBoss Seam, un framework per Java EE 5
JBoss Seam, un framework per Java EE 5JBoss Seam, un framework per Java EE 5
JBoss Seam, un framework per Java EE 5
 
Struttin' on, novità in casa Struts
Struttin' on, novità in casa StrutsStruttin' on, novità in casa Struts
Struttin' on, novità in casa Struts
 
Sviluppare su OpenOffice.org con Java
Sviluppare su OpenOffice.org con JavaSviluppare su OpenOffice.org con Java
Sviluppare su OpenOffice.org con Java
 
Un backend per tutte le stagioni con Spring
Un backend per tutte le stagioni con SpringUn backend per tutte le stagioni con Spring
Un backend per tutte le stagioni con Spring
 
Streaming in Java e Flex con Red5
Streaming in Java e Flex con Red5Streaming in Java e Flex con Red5
Streaming in Java e Flex con Red5
 
Spring e Flex
Spring e FlexSpring e Flex
Spring e Flex
 

m2eclipse: integrazione maven2 in eclipse IDE

  • 1. m2eclipse: integrazione maven2 in eclipse IDE Marcello Teodori marcello.teodori@jugmilano.it
  • 2. Cos'è Maven? Da maven.apache.org: "Maven is a Java project management and project comprehension tool" JUG Milano - m2eclipse 2
  • 3. L'ecosistema Maven JUG Milano - m2eclipse 3
  • 4. maven-eclipse-plugin ● definizione variabile M2_REPO: mvn -Declipse.workspace=<path-to-eclipse-workspace> eclipse:add-maven-repo ● generazione file di progetto eclipse: mvn eclipse:eclipse JUG Milano - m2eclipse 4
  • 5. m2eclipse ● progetto di Sonatype ● web site: http://m2eclipse.sonatype.org ● proposto alla fondazione Eclipse ● plugin “storico” per Maven, nato già ai tempi di Maven1 e noto anche con il nome tycho ● ha un concorrente: q4e ● community attiva e release frequenti ● integra nell'help di Eclipse il libro “Maven: The Definitive Guide”!!! JUG Milano - m2eclipse 5
  • 6. installazione m2eclipse ● Eclipse 3.3 o 3.4 con editor XML editor ● update site “stable”: http://m2eclipse.sonatype.org/update/ ● update site “dev”: http://m2eclipse.sonatype.org/update-dev/ ● useremo la versione dev: 0.9.5.20080627 ● requisiti opzionali: – Subversive (o Subclipse) – Mylyn JUG Milano - m2eclipse 6
  • 7. Demo Time ● new project ● new project from archetype ● add dependency ● add plugin ● POM Editor ● dependency viewer ● WTP support ● SCM integration ● Mylyn integration JUG Milano - m2eclipse 7
  • 8. Qualche nota finale... ● i dati nel POM possono essere utili in Eclipse anche indipendentemente dall'uso di Maven nella build ● Maven POM vs. DOAP vs. semantic web? ● ancora nessuna soluzione per la configurazione dei plugin... JUG Milano - m2eclipse 8