Lifecycle, phases and goals
- Phases:
-
clean, compile, test, package, deploy, ...
- Lifecycle
-
Sequence of named phases
- Example: mvn
clean
(Lifecycle) -
-
pre-clean
-
clean
(Phase) -
post-clean
-
See Default Lifecycle.
<plugin>
<groupId>com.mysema.maven</groupId>
<artifactId>apt-maven-plugin</artifactId>
<version>1.1.3</version>
<executions>
<execution>
<id>process</id>
<goals>
<goal>process</goal>
</goals>
<phase>generate-sources</phase>
<configuration>
<outputDirectory>${project.build.directory}/metamodel</outputDirectory>
<processor>com.mysema.query.apt.jpa.JPAAnnotationProcessor</processor>
</configuration>
...