December 2015
Beginner
184 pages
3h 55m
English
Let's see how POM overriding works. In the following example, we extend the repositories section to add one more repository than what is defined in the Maven super POM:
<project> <modelVersion>4.0.0</modelVersion> <groupId>com.packt</groupId> <artifactId>sample-one</artifactId> <version>1.0.0</version> <repositories> <repository> <id>wso2-nexus</id> <name>WSO2 internal Repository</name> <url>http://maven.wso2.org/nexus/content/ groups/wso2-public/ </url> <releases> <enabled>true</enabled> <updatePolicy>daily</updatePolicy> <checksumPolicy>ignore</checksumPolicy> </releases> </repository> </repositories> </project>
Execute the following command from the directory where the above POM file is located:
$ mvn ...Read now
Unlock full access