4.4 Maven Site Lifecycle
Phase Description pre-site execute processes needed prior to the actual project site generation site generate the project’s site documentation post-site execute processes needed to finalize
Phase Description pre-site execute processes needed prior to the actual project site generation site generate the project’s site documentation post-site execute processes needed to finalize
Phase Description pre-clean execute processes needed prior to the actual project cleaning clean remove all files generated by the previous build post-clean execute processes needed
Mostly Used Default or Buid Phases/stages : Sl. Stage/Command Information 1 validate This step validates if the project structure is correct. For example – It
(i) Default or build Life cycle : (ii) Clean Life cycle : (iii) Site Life cycle :
(i) Local Repository : <settings xmlns = “http://maven.apache.org/SETTINGS/1.0.0” xmlns:xsi = “http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation = “http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd”> <localRepository>C:/MyLocalRepository</localRepository></settings> (ii) Central Repository : (iii) Remote Repository : <repositories>
mvn [plugin-name]:[goal-name] mvn compiler:compile Maven Plugin Types : 1 Build plugins They execute during the build process and should be configured in the <build/> element
<build> <pluginManagement> <plugins> <plugin> <artifactId>maven-clean-plugin</artifactId> <version>3.1.0</version> </plugin>
<properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>1.7</maven.compiler.source> <maven.compiler.target>1.7</maven.compiler.target> </properties>