Thursday, February 1, 2018

Maven Issues


Sometimes maven install won't work. Check below cases:
  1. Invalid Java is set as first occurance in "Path" variable
  2. Ensure below <project> tag representation in the 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/maven-v4_0_0.xsd">
  • In Eclipse, right click on pom.xml -> Run as -> maven install