3.12 Maven Build Profiles
Build profiles are majorly of three types. Types of Build profiles : Per Project : Running the build using pom.xml profile Per User : –>
Build profiles are majorly of three types. Types of Build profiles : Per Project : Running the build using pom.xml profile Per User : –>
(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>