RESOLVIDO: Maven: um Goal é uma coleção de Phases?

1 resposta
pedroabs

Caros colegas, estou começando a estudar Maven pelo seguinte link:

http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html

Gostaria de saber: um Goal é uma coleção de Phases ?

[…] a plugin is a collection of goals with a general common purpose […]

[…] A phase is a step in the build lifecycle […]

Muito obrigado de sua atenção.

1 Resposta

pedroabs

Creio ter achado a resposta:

A Build Phase is Made Up of Goals

However, even though a build phase is responsible for a specific step in the build lifecycle, the manner in which it carries out those responsibilities may vary. And this is done by declaring the goals bound to those build phases.

A goal represents a specific task (finer than a build phase) which contributes to the building and managing of a project. It may be bound to zero or more build phases. A goal not bound to any build phase could be executed outside of the build lifecycle by direct invocation. The order of execution depends on the order in which the goal(s) and the build phase(s) are invoked. For example, consider the command below. The clean and package arguments are build phases while the dependency:copy-dependencies is a goal.

mvn clean dependency:copy-dependencies package

em:
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html

Obrigado.

Criado 27 de junho de 2013
Ultima resposta 27 de jun. de 2013
Respostas 1
Participantes 1