[hibernate-issues] [Hibernate-JIRA] Created: (WEBSITE-4) Getting Started Tutorial not working

Bernard (JIRA) noreply at atlassian.com
Mon Nov 22 20:02:14 EST 2010


Getting Started Tutorial not working
------------------------------------

                 Key: WEBSITE-4
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/WEBSITE-4
             Project: Hibernate Website
          Issue Type: Bug
         Environment: n.a
            Reporter: Bernard
            Priority: Blocker


The first tutorial at
http://docs.jboss.org/hibernate/core/3.6/quickstart/en-US/html/hibernate-gsg-preface.html
with the code downloaded from a link
http://docs.jboss.org/hibernate/core/3.6/quickstart/en-US/html/files/hibernate-tutorials.zip
on that page is not working.

How to reproduce:

- Unzip the file
- open the root directory containing the parent POM with the latest version of NetBEans.

The project shows errors as follows (right click on project node) 

Your project has dependencies that are not resolved locally. Code completion in the IDE will not include classes from these dependencies or their transitive dependencies (unless they are among the open projects).
Please download the dependencies, or install them manually, if not available remotely.

The artifacts are:
 org.hibernate:hibernate-core:jar:3.6.0.CR2
javassist:javassist:jar:3.12.0.GA

When attempting to resolve the issues by downloading the libraries, this does not work.

The above is the core of the issue, and we don't actually need to say more about it. With Maven as the build environment, everything should just work for a beginner!

...

However, I figured out that the latest versions of Hibernate are not in the central repository, so I added the JBoss repository to NetBeans at the cost of downloading another 70MBytes index. Then I added to the POM:

    <repositories>
        <repository>
            <id>repository.jboss.org</id>
            <url>https://repository.jboss.org/nexus/</url>
        </repository>
    </repositories>

And it still does not work because:

[ERROR]Failed to execute goal on project hibernate-tutorial-hbm: Could not resolve dependencies for project org.hibernate.tutorials:hibernate-tutorial-hbm:jar:3.6.0.CR2: The following artifacts could not be resolved: org.hibernate:hibernate-core:jar:3.6.0.CR2, javassist:javassist:jar:3.12.0.GA: Could not find artifact org.hibernate:hibernate-core:jar:3.6.0.CR2 in repository.jboss.org (https://repository.jboss.org/nexus/) -> [Help 1]

In addition it appears that I cannot view the details of org.hibernate:hibernate-core:jar:3.6.0.CR2 in the repository browser because of a similar error.

But that are all details that I shouldn't have to get involved in, as I said, it should just work.

-- 
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