Just add pom.xml inside project folder.
Add the following:
<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>CrunchifyTutorial</groupId><artifactId>CrunchifyTutorial</artifactId><version>0.0.1–SNAPSHOT</version><packaging>war</packaging><build><sourceDirectory>src</sourceDirectory><plugins><plugin><artifactId>maven–compiler–plugin</artifactId><version>3.1</version><configuration><source>1.7</source><target>1.7</target></configuration></plugin><plugin><artifactId>maven–war–plugin</artifactId><version>2.4</version><configuration><warSourceDirectory>WebContent</warSourceDirectory><failOnMissingWebXml>false</failOnMissingWebXml></configuration></plugin></plugins></build><dependencies><dependency><groupId>javax.servlet</groupId><artifactId>servlet–api</artifactId><version>2.5</version></dependency></dependencies></project>
Configuration is done.
just run on the pom.xml
use maven standard goals that will create.
mvn clean compile install.

Leave a comment