<ul><li>Maven , a Yiddish word meaning accumulator of knowledge. </li></ul><ul><li>Maven is a tool that provides an unifor...
<ul><li>Maven essentially is Project Management and comprehension tool allows you to do, </li></ul><ul><ul><li>Continuous ...
<ul><li>It comes with default templates that are Widely adopted as the best practices </li></ul><ul><li>Convention over co...
<ul><li>The basic concept of Maven is a  project </li></ul><ul><li>A ny directory that has a  project.xml  in it is a proj...
<ul><li>Instead of each project having its own copies of third party libraries, the repository helps developers across pro...
 
<ul><li>The  project.xml  is divided into four main parts namely </li></ul><ul><ul><li>Project Management Section. </li></...
 
<ul><li>Has general information on the organization, its web site, project web site, location of SCM, deployment and issue...
<ul><li>Describes the location of source, test and resource files </li></ul>
<ul><li>The target audience of the reports can vary from other developers in the same project to sponsors, stakeholders or...
<ul><li>Key to every project </li></ul><ul><li>For eg. If you want your Junit Test cases to run you need a junit “jar” fil...
<ul><li>Let build a flex project which uses </li></ul><ul><ul><li>Cairngorm </li></ul></ul><ul><ul><li>BlazeDS </li></ul><...
<ul><li>Install Cairngorm SWC into our local repository (Optional). If it (Maven repository) does not find it in their rem...
<ul><li>mvn archetype:create -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-quicksta...
<ul><li>mvn archetype:create -DarchetypeArtifactId=maven-archetype-flex -DarchetypeVersion=1.0 -DarchetypeGroupId=dk.jacob...
<ul><li>This would generate the war and the contents would be copied from the flex application </li></ul><ul><li>mvn arche...
<ul><li>Copy the following  </li></ul><ul><li><project xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://m...
<ul><li><project xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd&quot;...
<ul><li>Go to your Parent module project  </li></ul><ul><li>Open cmd and go to the parent project folder </li></ul><ul><ul...
<ul><li>Hope you find this information helpful </li></ul><ul><li>Comment/Contact me on  [email_address] </li></ul><ul><li>...
Upcoming SlideShare
Loading in …5
×

Maven with Flex

8,438
-1

Published on

Automating the build process for a flex application. You swf,ie the target now is sent to the web application and a war is generated through the build process

Published in: Technology, Business
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
8,438
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
128
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

Maven with Flex

  1. 2. <ul><li>Maven , a Yiddish word meaning accumulator of knowledge. </li></ul><ul><li>Maven is a tool that provides an uniform and easy build process for your projects </li></ul><ul><ul><li>you describe your project in one xml file and Maven reads this information to compile and package your project. </li></ul></ul>
  2. 3. <ul><li>Maven essentially is Project Management and comprehension tool allows you to do, </li></ul><ul><ul><li>Continuous Integration </li></ul></ul><ul><ul><li>Builds </li></ul></ul><ul><ul><li>Testing </li></ul></ul><ul><ul><li>Dependencies </li></ul></ul><ul><ul><li>Documentation </li></ul></ul><ul><ul><li>Distribution </li></ul></ul><ul><ul><li>Reporting etc.. </li></ul></ul>
  3. 4. <ul><li>It comes with default templates that are Widely adopted as the best practices </li></ul><ul><li>Convention over configuration </li></ul><ul><li>Get everything on-demand from their repositories </li></ul><ul><ul><li>All the plugins required for your build are taken from a common repository and put into your local repository </li></ul></ul>
  4. 5. <ul><li>The basic concept of Maven is a project </li></ul><ul><li>A ny directory that has a project.xml in it is a project. </li></ul><ul><li>Another concept in Maven is that of a repository </li></ul><ul><li>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 </li></ul><ul><li>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 </li></ul>
  5. 6. <ul><li>Instead of each project having its own copies of third party libraries, the repository helps developers across projects to share the libraries. </li></ul><ul><li>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. </li></ul>
  6. 8. <ul><li>The project.xml is divided into four main parts namely </li></ul><ul><ul><li>Project Management Section. </li></ul></ul><ul><ul><li>Project Dependency Section. </li></ul></ul><ul><ul><li>Project Build Section </li></ul></ul><ul><ul><li>Project Reports Section. </li></ul></ul>
  7. 10. <ul><li>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. </li></ul>
  8. 11. <ul><li>Describes the location of source, test and resource files </li></ul>
  9. 12. <ul><li>The target audience of the reports can vary from other developers in the same project to sponsors, stakeholders or users from other projects </li></ul>
  10. 13. <ul><li>Key to every project </li></ul><ul><li>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. </li></ul>
  11. 14. <ul><li>Let build a flex project which uses </li></ul><ul><ul><li>Cairngorm </li></ul></ul><ul><ul><li>BlazeDS </li></ul></ul><ul><ul><li>Locale for Internationalization </li></ul></ul>
  12. 15. <ul><li>Install Cairngorm SWC into our local repository (Optional). If it (Maven repository) does not find it in their remote repository </li></ul><ul><li>mvn install:install-file –Dfile=Cairngorm.swc –Dpackaging=swc –Dversion=2.2.1 –DgroupId=com.adobe.cairngorm -DartifactId=cairngorm </li></ul>
  13. 16. <ul><li>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 </li></ul>
  14. 17. <ul><li>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 </li></ul>
  15. 18. <ul><li>This would generate the war and the contents would be copied from the flex application </li></ul><ul><li>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 </li></ul>
  16. 19. <ul><li>Copy the following </li></ul><ul><li><project xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd&quot;> </li></ul><ul><li><modelVersion>4.0.0</modelVersion> </li></ul><ul><li><groupId>com.companyname.module</groupId> </li></ul><ul><li><artifactId>module</artifactId> </li></ul><ul><li><packaging>pom</packaging> </li></ul><ul><li><version>1.0</version> </li></ul><ul><li><name>module</name> </li></ul><ul><li><url>http://maven.apache.org</url> </li></ul><ul><li><modules> </li></ul><ul><li><module>../moduleFlex</module> </li></ul><ul><li><module>../moduleWeb</module> </li></ul><ul><li></module> </li></ul>
  17. 20. <ul><li><project xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd&quot;> </li></ul><ul><li><modelVersion>4.0.0</modelVersion> </li></ul><ul><li><groupId>com.companyname.module</groupId> </li></ul><ul><li><artifactId>moduleFlex</artifactId> </li></ul><ul><li><packaging>swf</packaging> </li></ul><ul><li><version>1.0-SNAPSHOT</version> </li></ul><ul><li><name>multiModuleProjectArtifactIdFlex Maven Flex</name> </li></ul><ul><li><url>http://maven.apache.org</url> </li></ul><ul><li>− </li></ul><ul><li><properties> </li></ul><ul><li>− </li></ul><ul><li><flex.home>${env.FLEX_HOME} </li></ul><ul><li></flex.home> </li></ul><ul><li></properties> </li></ul><ul><li>− </li></ul><ul><li><build> </li></ul><ul><li><sourceDirectory>src/main/flex</sourceDirectory> </li></ul><ul><li>− </li></ul><ul><li><plugins> </li></ul><ul><li>− </li></ul><ul><li><plugin> </li></ul><ul><li><groupId>net.israfil.mojo</groupId> </li></ul><ul><li><artifactId>maven-flex2-plugin</artifactId> </li></ul><ul><li><extensions>true</extensions> </li></ul><ul><li>− </li></ul><ul><li><configuration> </li></ul><ul><li><flexHome>${flex.home}</flexHome> </li></ul><ul><li><useNetwork>true</useNetwork> </li></ul><ul><li><main>Main.mxml</main> </li></ul><ul><li><!-- For including the locale folder into our application --> </li></ul><ul><li><extraParameters> </li></ul><ul><li><parameter> </li></ul><ul><li><name>compiler.source-path</name> </li></ul><ul><li><values> </li></ul><ul><li><value>${basedir}/locale</value> </li></ul><ul><li></values> </li></ul><ul><li></parameter> </li></ul><ul><li></extraParameters> </li></ul><ul><li></configuration> </li></ul><ul><li></plugin> </li></ul><ul><li></plugins> </li></ul><ul><li><defaultGoal>install</defaultGoal> </li></ul><ul><li></build> </li></ul><ul><li></project> </li></ul>
  18. 21. <ul><li>Go to your Parent module project </li></ul><ul><li>Open cmd and go to the parent project folder </li></ul><ul><ul><li>Mvn install </li></ul></ul><ul><ul><li>Should copy the details and you should have your first flex application build with </li></ul></ul>
  19. 22. <ul><li>Hope you find this information helpful </li></ul><ul><li>Comment/Contact me on [email_address] </li></ul><ul><li>Download Maven 2 from </li></ul><ul><ul><li>http://maven.apache.org/download.html </li></ul></ul><ul><li>For basics on Maven read </li></ul><ul><ul><li>http://www.theserverside.com/tt/articles/article.tss?l=MavenMagic </li></ul></ul>
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×