I'm relatively new to Spring and maven, and I'm just reviewing both of them for the first time in a couple of months. I meet the following error in pom.xml when I try to run the code from this tutorial :
Missing artifact: org.hibernate:hibernate-entitymanager:jar:3.3.2.ga
Does this mean that I need to download and install an additional jar? I am sure that I downloaded hibernate using spring, and this is confirmed by the fact that the Spring Clinic application sample application works fine on my system when launched from eclipse on the tomcat server.
I did a Google search for this error message and tried many suggestions, but they did not fix the problem on my machine. How can I get through this error message?
EDIT / ANSWER?
I stuck into the project directory structure and found another copy of pom.xml that did not throw an error. It actually used the 3.3.2.ga syntax, so I don't think this case was a problem. The new pom.xml file was located deep in the target / m2e-wtp / web-resources / META-INF / Maven / MavenWeb / MavenWeb / subdirectory. When I moved this new pom.xml to the root directory, the error message disappeared, although the node syntax was still:
<dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-entitymanager</artifactId> <version>3.3.2.ga</version> </dependency>
At the moment, this question will be answered, at least until I try to start it later. Let me think about how to pay tribute to the work that people did on this, while still leaving the answer clear to the people who find it on the search engines.
source share