[hibernate-issues] [Hibernate-JIRA] Created: (WEBSITE-5) Unable to compile the Tutorial using Maven - The POM.xml file needs version numbers for the dependencies.

Gabriel Perry (JIRA) noreply at atlassian.com
Tue Mar 8 19:32:10 EST 2011


Unable to compile the Tutorial using Maven - The POM.xml file needs version numbers for the dependencies.
---------------------------------------------------------------------------------------------------------

                 Key: WEBSITE-5
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/WEBSITE-5
             Project: Hibernate Website
          Issue Type: Bug
         Environment: Windows XP
            Reporter: Gabriel Perry
            Priority: Blocker


Hi,

I'm trying to go through the tutorial located at: http://docs.jboss.org/hibernate/core/3.3/reference/en/html/tutorial.html#tutorial-firstapp

...however, after installing Maven version 3.0.3 as instructed by the tutorial... I'm getting some errors when trying to compile the Tutorial project.

Here's the output I'm getting:

C:\projects\04_internal_projects\hibernate-tutorial>mvn compile
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project org.hibernate.tutorials:hibernate-tutorial:1.0.0-SNAPSHOT (C:\projects\04_internal_projects\hibernate-t
utorial\pom.xml) has 4 errors
[ERROR]     'dependencies.dependency.version' for org.hibernate:hibernate-core:jar is missing. @ line 21, column 22
[ERROR]     'dependencies.dependency.version' for javax.servlet:servlet-api:jar is missing. @ line 25, column 21
[ERROR]     'dependencies.dependency.version' for org.slf4j:slf4j-simple:jar is missing. @ line 31, column 21
[ERROR]     'dependencies.dependency.version' for javassist:javassist:jar is missing. @ line 37, column 21
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException


As far as I can tell... Maven wants each dependency to specify a version number, but the tutorial page does not define this.  So... for all intents and purposes... I can't really run the tutorial code and I'd like to very much get started and learn Hibernate.

Thanks,

~Gabriel Perry
flupe at flupe.com

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list