Author: Sagar

4.7 Maven Goal

mvn help:describe -Dcmd=PHASENAME mvn help:describe -Dcmd=compile Example : build in pom.xml <build> <plugins> <plugin> <artifactId>maven-failsafe-plugin</artifactId> <version>${maven.failsafe.version}</version> <executions> <execution> <goals> <goal>integration-test</goal> <goal>verify</goal> </goals> </execution> </executions> </plugin>

Read More »

4.5 What is SNAPSHOT?

Snapshot vs Version : In case of Version, if Maven once downloaded the mentioned version, say data-service:1.0, it will never try to download a newer

Read More »

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

Read More »

4.3 Maven Clean Lifecycle

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

Read More »

3.11 Maven Repository & Types

(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> 

Read More »

3.10 Plugins

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

Read More »

3.9 Build

<build>    <pluginManagement>      <plugins>        <plugin>          <artifactId>maven-clean-plugin</artifactId>          <version>3.1.0</version>        </plugin>   

Read More »