SlideShare a Scribd company logo
 
Maven , a Yiddish word meaning accumulator of knowledge. Maven is a tool that provides an uniform and easy build process for your projects you describe your project in one xml file and Maven reads this information to compile and package your project.
Maven essentially is Project Management and comprehension tool allows you to do, Continuous Integration Builds Testing Dependencies Documentation Distribution  Reporting etc..
It comes with default templates that are Widely adopted as the best practices Convention over configuration Get everything on-demand from their repositories All the plugins required for your build are taken from a common repository and put into your local repository
The basic concept of Maven is a  project A ny directory that has a  project.xml  in it is a project. Another concept in Maven is that of a  repository The repository holds the artifacts (a jar, swf, swc, war, pom etc) on which your project depends. There are two kinds of repository: local and remote The local repository is created in a special directory called  &quot;.maven/repository&quot; . In Windows, this directory is created in  C:\Documents And Settings\<username>\.m2
Instead of each project having its own copies of third party libraries, the repository helps developers across projects to share the libraries. Each project can also in turn generate its artifacts and publish it into the remote repository. The process of publishing a jar into the repository is called  &quot;install&quot;  in Maven lingo.
 
The  project.xml  is divided into four main parts namely Project Management Section. Project Dependency Section. Project Build Section Project Reports Section.
 
Has general information on the organization, its web site, project web site, location of SCM, deployment and issue tracking site, developer list, mailing lists to name a few.
Describes the location of source, test and resource files
The target audience of the reports can vary from other developers in the same project to sponsors, stakeholders or users from other projects
Key to every project For eg. If you want your Junit Test cases to run you need a junit “jar” file. For this you need to specify a <dependency> tag, that describes your artifact.
Let build a flex project which uses Cairngorm BlazeDS Locale for Internationalization
Install Cairngorm SWC into our local repository (Optional). If it (Maven repository) does not find it in their remote repository mvn install:install-file –Dfile=Cairngorm.swc –Dpackaging=swc –Dversion=2.2.1 –DgroupId=com.adobe.cairngorm  -DartifactId=cairngorm
mvn archetype:create -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-quickstart -DgroupId=com.companyname.module -DartifactId=modulename-DpackageName=com.companyname.module -Dversion=1.0
mvn archetype:create -DarchetypeArtifactId=maven-archetype-flex -DarchetypeVersion=1.0 -DarchetypeGroupId=dk.jacobve.maven.archetypes -DgroupId=com.companyname.module -DartifactId=moduleFlex -DpackageName=com.companyname.module –Dversion=1.0
This would generate the war and the contents would be copied from the flex application mvn archetype:create -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-webapp -DgroupId=com.companyname.module -DartifactId=moduleWeb -DpackageName=com.companyname.module -Dversion=1.0
Copy the following  <project xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd&quot;> <modelVersion>4.0.0</modelVersion> <groupId>com.companyname.module</groupId> <artifactId>module</artifactId> <packaging>pom</packaging> <version>1.0</version> <name>module</name> <url>http://maven.apache.org</url> <modules> <module>../moduleFlex</module> <module>../moduleWeb</module> </module>
<project xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd&quot;> <modelVersion>4.0.0</modelVersion> <groupId>com.companyname.module</groupId> <artifactId>moduleFlex</artifactId> <packaging>swf</packaging> <version>1.0-SNAPSHOT</version> <name>multiModuleProjectArtifactIdFlex Maven Flex</name> <url>http://maven.apache.org</url> − <properties> − <flex.home>${env.FLEX_HOME} </flex.home> </properties> − <build> <sourceDirectory>src/main/flex</sourceDirectory> − <plugins> − <plugin> <groupId>net.israfil.mojo</groupId> <artifactId>maven-flex2-plugin</artifactId> <extensions>true</extensions> − <configuration> <flexHome>${flex.home}</flexHome> <useNetwork>true</useNetwork> <main>Main.mxml</main> <!-- For including the locale folder into our application --> <extraParameters> <parameter> <name>compiler.source-path</name> <values> <value>${basedir}/locale</value> </values> </parameter> </extraParameters> </configuration> </plugin> </plugins> <defaultGoal>install</defaultGoal> </build> </project>
Go to your Parent module project  Open cmd and go to the parent project folder Mvn install Should copy the details and you should have your first flex application build with
Hope you find this information helpful Comment/Contact me on  [email_address] Download Maven 2 from  http://maven.apache.org/download.html For basics on Maven read http://www.theserverside.com/tt/articles/article.tss?l=MavenMagic

More Related Content

PPTX
PDF
Introduction to Apache Maven
PPTX
Apache Maven
PPT
Demystifying Maven
PPT
Gerência de Configuração com Maven
PPTX
An Introduction to Maven
PDF
Note - Apache Maven Intro
PPTX
Apache maven 2 overview
Introduction to Apache Maven
Apache Maven
Demystifying Maven
Gerência de Configuração com Maven
An Introduction to Maven
Note - Apache Maven Intro
Apache maven 2 overview

What's hot (20)

ODP
An Introduction to Maven Part 1
PPT
Maven 2.0 - Project management and comprehension tool
PDF
Advanced Git - Functionality and Features
PDF
Using Docker Containers to Improve Reproducibility in Software and Web Engine...
PDF
Drone Continuous Integration
PPTX
PDF
Dockers & kubernetes detailed - Beginners to Geek
PPTX
Develop and deploy Kubernetes applications with Docker - IBM Index 2018
PPTX
Jenkins advance topic
PPTX
PDF
DevOpsDaysRiga 2018: Andrew Martin - Continuous Kubernetes Security
PPTX
Faster java ee builds with gradle [con4921]
ODP
Practical Container Security by Mrunal Patel and Thomas Cameron, Red Hat
PDF
Pragmatic software development in kdb+
PPTX
An introduction to Maven
PPTX
Devoxx 2016 - Docker Nuts and Bolts
PDF
Introduction to gradle
PPTX
Csa container-security-in-aws-dw
PPTX
Building Distributed Systems without Docker, Using Docker Plumbing Projects -...
An Introduction to Maven Part 1
Maven 2.0 - Project management and comprehension tool
Advanced Git - Functionality and Features
Using Docker Containers to Improve Reproducibility in Software and Web Engine...
Drone Continuous Integration
Dockers & kubernetes detailed - Beginners to Geek
Develop and deploy Kubernetes applications with Docker - IBM Index 2018
Jenkins advance topic
DevOpsDaysRiga 2018: Andrew Martin - Continuous Kubernetes Security
Faster java ee builds with gradle [con4921]
Practical Container Security by Mrunal Patel and Thomas Cameron, Red Hat
Pragmatic software development in kdb+
An introduction to Maven
Devoxx 2016 - Docker Nuts and Bolts
Introduction to gradle
Csa container-security-in-aws-dw
Building Distributed Systems without Docker, Using Docker Plumbing Projects -...
Ad

Viewers also liked (7)

PPT
Sessió 7 pile 2n any voc 14-15 (1)
PPT
Hibernate(H8) In Action
PPT
BlazeDS
PPTX
Presentaciónsessió 8 voc
PDF
Principis bàsics d'ecologia
PPTX
Avaluació del projecte
PPTX
Seminari de coordinació pil esessio 4
Sessió 7 pile 2n any voc 14-15 (1)
Hibernate(H8) In Action
BlazeDS
Presentaciónsessió 8 voc
Principis bàsics d'ecologia
Avaluació del projecte
Seminari de coordinació pil esessio 4
Ad

Similar to Maven with Flex (20)

PPT
Maven 2 features
PDF
Apache maven, a software project management tool
PPTX
Introduction to maven
PPSX
Maven Presentation - SureFire vs FailSafe
PDF
Exploring Maven SVN GIT
KEY
Wonderful World of Maven
PPTX
Maven Basics - Explained
PPT
Mavenppt
PPTX
Maven
PPTX
Maven in mulesoft
PDF
Liferay maven sdk
PDF
Introduction to maven, its configuration, lifecycle and relationship to JS world
PDF
A-Z_Maven.pdf
PDF
Mavennotes.pdf
PPT
maven-for-maine-jug-090226091601-phpapp02.ppt
PPT
Maven Introduction
PPTX
Introduction to the Nexus tool for DevOps
PDF
PDF
Maven 2 features
Apache maven, a software project management tool
Introduction to maven
Maven Presentation - SureFire vs FailSafe
Exploring Maven SVN GIT
Wonderful World of Maven
Maven Basics - Explained
Mavenppt
Maven
Maven in mulesoft
Liferay maven sdk
Introduction to maven, its configuration, lifecycle and relationship to JS world
A-Z_Maven.pdf
Mavennotes.pdf
maven-for-maine-jug-090226091601-phpapp02.ppt
Maven Introduction
Introduction to the Nexus tool for DevOps

Recently uploaded (20)

PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Big Data Technologies - Introduction.pptx
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
Cloud computing and distributed systems.
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPT
Teaching material agriculture food technology
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
KodekX | Application Modernization Development
Unlocking AI with Model Context Protocol (MCP)
Big Data Technologies - Introduction.pptx
Network Security Unit 5.pdf for BCA BBA.
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Cloud computing and distributed systems.
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
NewMind AI Weekly Chronicles - August'25 Week I
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Teaching material agriculture food technology
The Rise and Fall of 3GPP – Time for a Sabbatical?
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Understanding_Digital_Forensics_Presentation.pptx
MYSQL Presentation for SQL database connectivity
Spectral efficient network and resource selection model in 5G networks
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
KodekX | Application Modernization Development

Maven with Flex

  • 1.  
  • 2. Maven , a Yiddish word meaning accumulator of knowledge. Maven is a tool that provides an uniform and easy build process for your projects you describe your project in one xml file and Maven reads this information to compile and package your project.
  • 3. Maven essentially is Project Management and comprehension tool allows you to do, Continuous Integration Builds Testing Dependencies Documentation Distribution Reporting etc..
  • 4. It comes with default templates that are Widely adopted as the best practices Convention over configuration Get everything on-demand from their repositories All the plugins required for your build are taken from a common repository and put into your local repository
  • 5. The basic concept of Maven is a project A ny directory that has a project.xml in it is a project. Another concept in Maven is that of a repository The repository holds the artifacts (a jar, swf, swc, war, pom etc) on which your project depends. There are two kinds of repository: local and remote The local repository is created in a special directory called &quot;.maven/repository&quot; . In Windows, this directory is created in C:\Documents And Settings\<username>\.m2
  • 6. Instead of each project having its own copies of third party libraries, the repository helps developers across projects to share the libraries. Each project can also in turn generate its artifacts and publish it into the remote repository. The process of publishing a jar into the repository is called &quot;install&quot; in Maven lingo.
  • 7.  
  • 8. The project.xml is divided into four main parts namely Project Management Section. Project Dependency Section. Project Build Section Project Reports Section.
  • 9.  
  • 10. Has general information on the organization, its web site, project web site, location of SCM, deployment and issue tracking site, developer list, mailing lists to name a few.
  • 11. Describes the location of source, test and resource files
  • 12. The target audience of the reports can vary from other developers in the same project to sponsors, stakeholders or users from other projects
  • 13. Key to every project For eg. If you want your Junit Test cases to run you need a junit “jar” file. For this you need to specify a <dependency> tag, that describes your artifact.
  • 14. Let build a flex project which uses Cairngorm BlazeDS Locale for Internationalization
  • 15. Install Cairngorm SWC into our local repository (Optional). If it (Maven repository) does not find it in their remote repository mvn install:install-file –Dfile=Cairngorm.swc –Dpackaging=swc –Dversion=2.2.1 –DgroupId=com.adobe.cairngorm -DartifactId=cairngorm
  • 16. mvn archetype:create -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-quickstart -DgroupId=com.companyname.module -DartifactId=modulename-DpackageName=com.companyname.module -Dversion=1.0
  • 17. mvn archetype:create -DarchetypeArtifactId=maven-archetype-flex -DarchetypeVersion=1.0 -DarchetypeGroupId=dk.jacobve.maven.archetypes -DgroupId=com.companyname.module -DartifactId=moduleFlex -DpackageName=com.companyname.module –Dversion=1.0
  • 18. This would generate the war and the contents would be copied from the flex application mvn archetype:create -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-webapp -DgroupId=com.companyname.module -DartifactId=moduleWeb -DpackageName=com.companyname.module -Dversion=1.0
  • 19. Copy the following <project xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd&quot;> <modelVersion>4.0.0</modelVersion> <groupId>com.companyname.module</groupId> <artifactId>module</artifactId> <packaging>pom</packaging> <version>1.0</version> <name>module</name> <url>http://maven.apache.org</url> <modules> <module>../moduleFlex</module> <module>../moduleWeb</module> </module>
  • 20. <project xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd&quot;> <modelVersion>4.0.0</modelVersion> <groupId>com.companyname.module</groupId> <artifactId>moduleFlex</artifactId> <packaging>swf</packaging> <version>1.0-SNAPSHOT</version> <name>multiModuleProjectArtifactIdFlex Maven Flex</name> <url>http://maven.apache.org</url> − <properties> − <flex.home>${env.FLEX_HOME} </flex.home> </properties> − <build> <sourceDirectory>src/main/flex</sourceDirectory> − <plugins> − <plugin> <groupId>net.israfil.mojo</groupId> <artifactId>maven-flex2-plugin</artifactId> <extensions>true</extensions> − <configuration> <flexHome>${flex.home}</flexHome> <useNetwork>true</useNetwork> <main>Main.mxml</main> <!-- For including the locale folder into our application --> <extraParameters> <parameter> <name>compiler.source-path</name> <values> <value>${basedir}/locale</value> </values> </parameter> </extraParameters> </configuration> </plugin> </plugins> <defaultGoal>install</defaultGoal> </build> </project>
  • 21. Go to your Parent module project Open cmd and go to the parent project folder Mvn install Should copy the details and you should have your first flex application build with
  • 22. Hope you find this information helpful Comment/Contact me on [email_address] Download Maven 2 from http://maven.apache.org/download.html For basics on Maven read http://www.theserverside.com/tt/articles/article.tss?l=MavenMagic