12.07.2015 Views

Beginning Java EE 6 with GlassFish 3, Second Edition

Beginning Java EE 6 with GlassFish 3, Second Edition

Beginning Java EE 6 with GlassFish 3, Second Edition

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CHAPTER 1 ■ JAVA <strong>EE</strong> 6 AT A GLANCEFigure 1-11. A project and its modulesPlug-ins and Life CycleMaven uses a life cycle made of several phases (see Figure 1-12): it cleans the resources, validates theproject, generates any needed sources, compiles <strong>Java</strong> classes, runs test classes, packages the project, andinstalls it to the local repository. This life cycle is the vertebral column on which Maven plug-ins (a.k.a.mojos) hang. Depending on the type of project you build, the associated mojos can be different (a mojoto compile, another to test, another to build, etc.). In the project description, you can link new plug-insto a life-cycle phase, change the configuration of a plug-in, and so on. For example, when you build aweb service client, you might add a mojo that generates web service artifacts during the generatesourcesphase.Figure 1-12. Project life cycle25

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!