Sometimes maven install won't work. Check below cases:
- Invalid Java is set as first occurance in "Path" variable
- 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