<project xmlns=”http://maven.apache.org/POM/4.0.0″ xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=”http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd”>
Sample POM.xml : <project xmlns=”http://maven.apache.org/POM/4.0.0″ xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=”http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd”> <modelVersion>4.0.0</modelVersion> <groupId>kms-api-examples</groupId> <artifactId>kms-api-examples</artifactId> <version>0.0.1-SNAPSHOT</version> <dependencies> <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> <version>4.3.2</version> <type>jar</type> <scope>compile</scope> </dependency> <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient-cache</artifactId> <version>4.3.2</version> <type>jar</type>
Example: If We want to create a sample maven application using maven? mvn archetype:generate Here we can see the 2049 is sample Maven Project
As Maven follows convention over configuration. Therefore it defines some defaults (can be overridden): (i). Src files should be in src/main/java (ii). Test files should
(i) Run the command in cmd(i have installed on c drive , so I opened cmd as run as administrator) mvn archetype:generate Here ask for
OS Supports all major RAM No minimum requirement Storage/Disk space Approximately expect at least 500MB. RunTime Environments Maven 3.9+ requires JDK 8 or above to