java - Maven Dependency Nightmare -


i new programming , working way through tutorial hibernate includes using maven. seemed going until try mvn compile or spin hsqldb server using recommended command in tutorial:

mvn exec:java -dexec.mainclass="org.hsqldb.server" -dexec.args="-database.0 file:target/data/tutorial"

at point build failure include below, along pom. seems telling me poms missing dependencies have no idea how correct problem. appreciated can move forward learning experience. enter image description here

<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>org.hibernate.tutorials</groupid> <artifactid>hibernate-tutorial</artifactid> <version>1.0.0-snapshot</version> <name>first hibernate tutorial</name>  <build>      <!-- dont want version part of generated war file name -->      <finalname>${project.artifactid}</finalname> </build>  <dependencies>     <dependency>         <groupid>org.hibernate</groupid>         <artifactid>hibernate-core</artifactid>         <version>5.0.7.final</version>     </dependency>      <!-- because web app, have dependency on servlet api. -->     <dependency>         <groupid>javax.servlet</groupid>         <artifactid>servlet-api</artifactid>         <version>3.1.0</version>     </dependency>      <!-- hibernate uses slf4j logging, our purposes here use simple backend -->     <dependency>         <groupid>org.slf4j</groupid>         <artifactid>slf4j-simple</artifactid>         <version>1.7.14</version>     </dependency>      <!-- hibernate gives choice of bytecode providers between cglib , javassist -->     <dependency>         <groupid>javassist</groupid>         <artifactid>javassist</artifactid>         <version>3.18.1-ga</version>     </dependency> </dependencies> 

using search.maven.com, appears hibernate dependency name hibernate-core-5.0.7.final. is, capital f in final. try

<dependency>     <groupid>org.hibernate</groupid>     <artifactid>hibernate-core</artifactid>     <version>5.0.7.final</version> </dependency> 

instead


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -