Issue
I'm just starting out with Maven, in NetBeans. And I'm trying to figure out why I'm getting the following error message upon building the project (a Java Web Application):
The POM for unknown.binary:hibernate-jpamodelgen-4.3.1.Final:jar:SNAPSHOT is missing, no dependency information available
In the following screen print, you can see the error message, but you can also see that this dependency IS in fact present in pom.xml, and that the relevant .jar-file IS in fact present in the Dependencies folder (all relevant parts marked with a thin red line in the screen print, and you can click on the image to enlarge it):
EDIT: In the screen print, I marked the wrong .jar-file in the Dependencies folder red, it should be the one immediately below the one I wrongly marked.
So I'm wondering what I'm missing here...
EDIT: In the screen print, I marked the wrong .jar-file in the Dependencies folder red, it should be the one immediately below the one I wrongly marked.
Solution
That dependency looks wrong
Are you compiling that jar in the project?
Change it to:
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-jpamodelgen</artifactId>
<version>5.2.6.Final</version>
<scope>provided</scope>
</dependency>
Or whatever version you want to use (that is the version running in your container, e.g. tomcat)
Answered By - D-unit
Answer Checked By - Timothy Miller (JavaFixing Admin)