Diese Präsentation wurde erfolgreich gemeldet.
Wir verwenden Ihre LinkedIn Profilangaben und Informationen zu Ihren Aktivitäten, um Anzeigen zu personalisieren und Ihnen relevantere Inhalte anzuzeigen. Sie können Ihre Anzeigeneinstellungen jederzeit ändern.
Flex
      Continuous
     Quality Builds
Flex & (Ant || Maven)




                                                      ...
No troll beyond this point




                                 http://www.flickr.com/photos/43454909@N00/2706102/

      ...
Building


       Ant :
                 FlexAntTasks
                Ant : Antennae

•      Maven :
          •     Flex-...
Flex Mojos : http://flexmojos.sonatype.org




                                                                  ®




Cop...
Managing Dependencies


        Maven || (Ant + Ivy)




                 Demo : http://localhost:9999/hudson/job/cairngor...
Managing Dependencies




                                                                  ®




Copyright 2008 Adobe Sys...
(Unit)Test within your Build


        FlexUnit within your build




                          Maven




                ...
Automated documentation and reports




                                                                  ®




Copyright ...
Quality control within your build


        Quality Reports within your build
                 AS3NCSS
                 ht...
Detect code anti-patterns : Flex PMD




                                                                  ®




Copyright...
Continuous Integration


        CI : Continuous Quality Builds




                 Demo : http://localhost:9999/hudson/
...
Demo Maven




                                                                  ®




Copyright 2008 Adobe Systems Incorp...
A typical Java flex remoting web app

       Discover a « mavenized » Flex BlazeDS Spring project, and its modules :




 ...
Eclipse / m2eclipse / FlexBuilder

•      Note that once your project
       imported , you may still
          •     Use ...
http://www.flickr.com/photos/zzathras777/2401122079/



                                                                  ...
Appendix :
       By the way …

       What is Maven ?




                                                               ...
What is Maven anyway ? (very short definition)


        A build tool




                                                ...
What is Maven anyway ? (its architecture)




                                                                            ...
What is Maven anyway ? (its plug-ins, a few of them…)



 •        Antlr                                             •    ...
Flex Mojos : http://flexmojos.sonatype.org




                                                                  ®




Cop...
What is Maven anyway ? (a common project format and organization)


        Maven is really a process of applying patterns...
What is Maven anyway ? (a common project format and organization)


        A common directory organization
              ...
What is Maven anyway ? (a common way to build application)


                                                             ...
What is Maven anyway ? (it’s even much more)


    Artifact repository :
              Used to store all kind of artifacts...
http://farm3.static.flickr.com/2060/2401122079_9d45ae6252_o.jpg



                                                       ...
Nächste SlideShare
Wird geladen in …5
×

Flex Continuous Quality Builds Flex & (Ant || Maven)

2.727 Aufrufe

Veröffentlicht am

Flex Continuous Quality Builds Flex & (Ant || Maven)

Veröffentlicht in: Technologie
  • Als Erste(r) kommentieren

Flex Continuous Quality Builds Flex & (Ant || Maven)

  1. 1. Flex Continuous Quality Builds Flex & (Ant || Maven) ® Copyright 2008 Adobe Systems Incorporated. All rights reserved.
  2. 2. No troll beyond this point http://www.flickr.com/photos/43454909@N00/2706102/ ® Copyright 2008 Adobe Systems Incorporated. All rights reserved.
  3. 3. Building Ant : FlexAntTasks Ant : Antennae • Maven : • Flex-mojos (conseillé par la Flex Team) • Alternatives : • ServeBox (Projet Français) • and Israfil FlexMojos V3 est un projet sonatype Sonatype et Adobe travaillent ensemble pour le support FB dans m2eclipse ® Copyright 2008 Adobe Systems Incorporated. All rights reserved.
  4. 4. Flex Mojos : http://flexmojos.sonatype.org ® Copyright 2008 Adobe Systems Incorporated. All rights reserved.
  5. 5. Managing Dependencies Maven || (Ant + Ivy) Demo : http://localhost:9999/hudson/job/cairngormenterprise/site/dependencies.html ® Copyright 2008 Adobe Systems Incorporated. All rights reserved.
  6. 6. Managing Dependencies ® Copyright 2008 Adobe Systems Incorporated. All rights reserved.
  7. 7. (Unit)Test within your Build FlexUnit within your build Maven ® Copyright 2008 Adobe Systems Incorporated. All rights reserved.
  8. 8. Automated documentation and reports ® Copyright 2008 Adobe Systems Incorporated. All rights reserved.
  9. 9. Quality control within your build Quality Reports within your build AS3NCSS http://localhost:9999/hudson/job/cairngorm/site/javancss.html FlexPMD http://localhost:9999/hudson/job/cairngorm/12/pmdResult/ ® Copyright 2008 Adobe Systems Incorporated. All rights reserved.
  10. 10. Detect code anti-patterns : Flex PMD ® Copyright 2008 Adobe Systems Incorporated. All rights reserved.
  11. 11. Continuous Integration CI : Continuous Quality Builds Demo : http://localhost:9999/hudson/ ® Copyright 2008 Adobe Systems Incorporated. All rights reserved.
  12. 12. Demo Maven ® Copyright 2008 Adobe Systems Incorporated. All rights reserved.
  13. 13. A typical Java flex remoting web app Discover a « mavenized » Flex BlazeDS Spring project, and its modules : java_* are plain old maven java projects flex_* are flex-mojos project blazeds _service_config is a shared resource handled through maven assembly ® Copyright 2008 Adobe Systems Incorporated. All rights reserved.
  14. 14. Eclipse / m2eclipse / FlexBuilder • Note that once your project imported , you may still • Use your favorite servers and eclipse plugins wtp facilities • Debug your application • On the server side • On the client side • Manage your dependencies and maven build through m2eclipse plugin. ® Copyright 2008 Adobe Systems Incorporated. All rights reserved.
  15. 15. http://www.flickr.com/photos/zzathras777/2401122079/ ® Copyright 2008 Adobe Systems Incorporated. All rights reserved.
  16. 16. Appendix : By the way … What is Maven ? ® Copyright 2008 Adobe Systems Incorporated. All rights reserved.
  17. 17. What is Maven anyway ? (very short definition) A build tool • A dependency management tool • A documentation and quality reporting tool ® Copyright 2008 Adobe Systems Incorporated. All rights reserved.
  18. 18. What is Maven anyway ? (its architecture) Plugin jar Projects Plugin Maven Core to build flex-mojos Plugin war Local machine Remote repository or local install ® Copyright 2008 Adobe Systems Incorporated. All rights reserved.
  19. 19. What is Maven anyway ? (its plug-ins, a few of them…) • Antlr • Ear • Javancss • Release • Ant • Eclipse • Jboss • Repository • AntRun • Ejb • Jcoverage Jdepend • Resources • AspectJ • Ejb3 • Jdiff • Repository • Assembly • Exec • Jelly • Sablecc • Assembly-report • Flex-mojos • Jetty • Site • Cargo • Flex-annotations • Jpox • Slimdog • Castor • Groovy • Jspc • Source • Changelog • Help • Jxr • Surefire • Changes • Hibernate2 • MAnt • Surefire-report • Commons-attributes • Idea • Native • Taglist • Checkstyle • Install • One • Tomcat • Clean • Issue • Par • Verifier • Clover • It • Plugin • Xslt • Csharp • Jalopy • Pmd • War • Cobertura • Jar • Project-info-reports • Wsdl2java • Compiler • Javacc • Rar • Xdoclet • Deploy • Javadoc • Xmlbeans • XRadar ® Copyright 2008 Adobe Systems Incorporated. All rights reserved.
  20. 20. Flex Mojos : http://flexmojos.sonatype.org ® Copyright 2008 Adobe Systems Incorporated. All rights reserved.
  21. 21. What is Maven anyway ? (a common project format and organization) Maven is really a process of applying patterns to a build infrastructure in order to provide a coherent view of software projects. A Common project metadata format POM = Project Object Model = pom.xml Contains metadata about the project Location of directories, Developers/Contributors, Issue tracking system, Dependencies, Repositories to use, etc ® Copyright 2008 Adobe Systems Incorporated. All rights reserved.
  22. 22. What is Maven anyway ? (a common project format and organization) A common directory organization Our sample of 6 nested projects : • src/ – main/ • java/ • flex/ • resources/ • webapp/ – test/ • java/ • flex/ • resources/ – site/ ® Copyright 2008 Adobe Systems Incorporated. All rights reserved.
  23. 23. What is Maven anyway ? (a common way to build application) generate- sources mojo compile mojo test mojo package plug-ins integration- test user mojo install mojo e.g. mvn install deploy bindings Well-known phases The lifecycle depends on the project type (packaging) Defined in pom.xml (pom, jar, ear, war, etc) Ex: <packaging>swc</packaging> ® Copyright 2008 Adobe Systems Incorporated. All rights reserved.
  24. 24. What is Maven anyway ? (it’s even much more) Artifact repository : Used to store all kind of artifacts SWCs, SWFs, JARs, EARs, WARs, EJBs, ZIPs, plugins, … All project interactions go through the repository No more relative paths! Easy to share between teams Dependency management A Transitive dependency management Snapshot handling B C Multi-module built D Environment dependent builds based on profile Project documentation site and report Project templating through archetype ® Copyright 2008 Adobe Systems Incorporated. All rights reserved.
  25. 25. http://farm3.static.flickr.com/2060/2401122079_9d45ae6252_o.jpg ® Copyright 2008 Adobe Systems Incorporated. All rights reserved.

×