You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ryan Cuprak <rc...@me.com> on 2011/01/18 17:25:13 UTC

Hibernate 3.6.0 and Maven

Does anyone have a working pom file for Hibernate 3.5.x or 3.6.x?

This is what I have now:
        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate</artifactId>
            <version>3.5.3-Final</version>
        </dependency>
        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-entitymanager</artifactId>
            <version>3.5.3-Final</version>
        </dependency>
[ERROR] Failed to execute goal on project ctjava: Could not resolve dependencies for project net.cuprak.web:ctjava:war:1.0-SNAPSHOT: Could not find artifact org.hibernate:hibernate:jar:3.5.3-Final in jboss-public-repository-group (https://repository.jboss.org/nexus/content/groups/public-jboss/) -> [Help 1]

I look at the repository and it looks to me like that dependency exists. I am trying to get off of Hibernate 3.2.5. 

Thanks,
-Ryan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Hibernate 3.6.0 and Maven

Posted by Johann Reyes <jr...@vaporwarecorp.com>.
Hello Ryan


You just need this:

        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-entitymanager</artifactId>
            <version>3.6.0.Final</version>
        </dependency>



Johann

On Tue, Jan 18, 2011 at 11:25 AM, Ryan Cuprak <rc...@me.com> wrote:

>
> Does anyone have a working pom file for Hibernate 3.5.x or 3.6.x?
>
> This is what I have now:
>        <dependency>
>            <groupId>org.hibernate</groupId>
>            <artifactId>hibernate</artifactId>
>            <version>3.5.3-Final</version>
>        </dependency>
>        <dependency>
>            <groupId>org.hibernate</groupId>
>            <artifactId>hibernate-entitymanager</artifactId>
>            <version>3.5.3-Final</version>
>        </dependency>
> [ERROR] Failed to execute goal on project ctjava: Could not resolve
> dependencies for project net.cuprak.web:ctjava:war:1.0-SNAPSHOT: Could not
> find artifact org.hibernate:hibernate:jar:3.5.3-Final in
> jboss-public-repository-group (
> https://repository.jboss.org/nexus/content/groups/public-jboss/) -> [Help
> 1]
>
> I look at the repository and it looks to me like that dependency exists. I
> am trying to get off of Hibernate 3.2.5.
>
> Thanks,
> -Ryan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Hibernate 3.6.0 and Maven

Posted by Wayne Fay <wa...@gmail.com>.
>            <version>3.5.3-Final</version>

3.5.3-Final is really terrible name for a version.

> [ERROR] Failed to execute goal on project ctjava: Could not resolve dependencies for project net.cuprak.web:ctjava:war:1.0-SNAPSHOT: Could not find artifact org.hibernate:hibernate:jar:3.5.3-Final in jboss-public-repository-group (https://repository.jboss.org/nexus/content/groups/public-jboss/) -> [Help 1]

Pay special attention to the error -- "could not find find artifact
...:jar:..." And sure enough, the jar file for this version does not
exist in that repo -- they just have a pom and signature files. Look
for yourself:
https://repository.jboss.org/nexus/content/groups/public-jboss/org/hibernate/hibernate/3.5.3-Final/

That appears to simply be an aggregator pom used for the build. I
think you probably want to have a dependency on
org.hibernate/hibernate-core or something. That has a jar for version
3.5.3-Final, and a pom with proper dependencies etc. But I'm not an
expert on Hibernate so I can't be certain.

PS- Probably these questions should be directed to the Hibernate Users
list in the future. They ARE experts on Hibernate, and I bet a bunch
of them are also using Maven.

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org