These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: maven settings in order to get latest hibernate jar files
PostPosted: Sun Aug 22, 2010 6:39 am 
Newbie

Joined: Thu Apr 05, 2007 5:30 am
Posts: 5
Hello,
I use the following settings in order to get the latest builds of hibernate:
Code:
<repository>
  <id>jboss</id>
  <name>JBoss Repository</name>
  <url>http://repository.jboss.org/nexus/content/groups/public-jboss/</url>
  <snapshots>
<enabled>false</enabled>
  </snapshots>
  </repository>


Code:
<dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate</artifactId>
            <version>3.5.4-Final</version>
        </dependency>


and it is not working. Here is what netbeans tells me:

Code:
NetBeans: Executing 'mvn -Dnetbeans.execution=true clean install'
NetBeans:      JAVA_HOME=/usr/lib/jvm/java-6-sun
Scanning for projects...
------------------------------------------------------------------------
Building jeanbaptistemartin.com
   task-segment: [clean, install]
------------------------------------------------------------------------
[clean:clean]
Deleting file set: /home/julien/Documents/jeanbaptistemartin.com/site/jeanbaptistemartin/target (included: [**], excluded: [])
[resources:resources]
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
Copying 17 resources
[WARNING] POM for 'org.restfaces:restfaces:pom:1.3.1:compile' is invalid.

Its dependencies (if any) will NOT be available to the current build.
Downloading: http://download.java.net/maven/1/org.hibernate/poms/hibernate-3.5.4-Final.pom
Unable to find resource 'org.hibernate:hibernate:pom:3.5.4-Final' in repository java.net (http://download.java.net/maven/1)
Downloading: http://download.java.net/maven/2/org/hibernate/hibernate/3.5.4-Final/hibernate-3.5.4-Final.pom
Unable to find resource 'org.hibernate:hibernate:pom:3.5.4-Final' in repository maven2-repository.dev.java.net (http://download.java.net/maven/2)
Downloading: http://repository.jboss.com/maven2//org/hibernate/hibernate/3.5.4-Final/hibernate-3.5.4-Final.pom
Unable to find resource 'org.hibernate:hibernate:pom:3.5.4-Final' in repository jboss (http://repository.jboss.com/maven2/)
Downloading: http://s3.amazonaws.com/maven.springframework.org/milestone/org/hibernate/hibernate/3.5.4-Final/hibernate-3.5.4-Final.pom
Unable to find resource 'org.hibernate:hibernate:pom:3.5.4-Final' in repository spring-milestone (http://s3.amazonaws.com/maven.springframework.org/milestone)
Downloading: http://oss.sonatype.org/content/repositories/snapshots/org/hibernate/hibernate/3.5.4-Final/hibernate-3.5.4-Final.pom
Unable to find resource 'org.hibernate:hibernate:pom:3.5.4-Final' in repository sonatype (http://oss.sonatype.org/content/repositories/snapshots)
Downloading: http://ocpsoft.com/repository//org/hibernate/hibernate/3.5.4-Final/hibernate-3.5.4-Final.pom
       
[WARNING] *** CHECKSUM FAILED - Error retrieving checksum file for org/hibernate/hibernate/3.5.4-Final/hibernate-3.5.4-Final.pom - IGNORING
[WARNING] POM for 'org.hibernate:hibernate:pom:3.5.4-Final:compile' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'net.sf.ehcache:ehcache-terracotta:pom:2.2.0:compile' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'org.terracotta:terracotta-toolkit-1.0-runtime:pom:1.0.0:compile' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'com.jhlabs:imaging:pom:01012005:compile' is invalid.

Its dependencies (if any) will NOT be available to the current build.
Downloading: http://download.java.net/maven/1/org.hibernate/jars/hibernate-3.5.4-Final.jar
Unable to find resource 'org.hibernate:hibernate:jar:3.5.4-Final' in repository java.net (http://download.java.net/maven/1)
Downloading: http://download.java.net/maven/2/org/hibernate/hibernate/3.5.4-Final/hibernate-3.5.4-Final.jar
Unable to find resource 'org.hibernate:hibernate:jar:3.5.4-Final' in repository maven2-repository.dev.java.net (http://download.java.net/maven/2)
Downloading: http://repository.jboss.com/maven2//org/hibernate/hibernate/3.5.4-Final/hibernate-3.5.4-Final.jar
Unable to find resource 'org.hibernate:hibernate:jar:3.5.4-Final' in repository jboss (http://repository.jboss.com/maven2/)
Downloading: http://s3.amazonaws.com/maven.springframework.org/milestone/org/hibernate/hibernate/3.5.4-Final/hibernate-3.5.4-Final.jar
Unable to find resource 'org.hibernate:hibernate:jar:3.5.4-Final' in repository spring-milestone (http://s3.amazonaws.com/maven.springframework.org/milestone)
Downloading: http://oss.sonatype.org/content/repositories/snapshots/org/hibernate/hibernate/3.5.4-Final/hibernate-3.5.4-Final.jar
Unable to find resource 'org.hibernate:hibernate:jar:3.5.4-Final' in repository sonatype (http://oss.sonatype.org/content/repositories/snapshots)
Downloading: http://ocpsoft.com/repository//org/hibernate/hibernate/3.5.4-Final/hibernate-3.5.4-Final.jar
       
[WARNING] *** CHECKSUM FAILED - Error retrieving checksum file for org/hibernate/hibernate/3.5.4-Final/hibernate-3.5.4-Final.jar - IGNORING
[compiler:compile]
Compiling 47 source files to /home/julien/Documents/jeanbaptistemartin.com/site/jeanbaptistemartin/target/classes
------------------------------------------------------------------------
[ERROR]BUILD FAILURE
------------------------------------------------------------------------
Compilation failure

error: error reading /home/julien/.m2/org/hibernate/hibernate/3.5.4-Final/hibernate-3.5.4-Final.jar; error in opening zip file
error: error reading /home/julien/.m2/net/sf/ehcache/ehcache/2.2.0/ehcache-2.2.0.jar; error in opening zip file

------------------------------------------------------------------------
For more information, run Maven with the -e switch
------------------------------------------------------------------------
Total time: 11 seconds
Finished at: Sun Aug 22 12:38:25 CEST 2010
Final Memory: 17M/142M
------------------------------------------------------------------------


Can anyone please help. I don't know which repository to use...

Thanks in advance,

Julien.


Top
 Profile  
 
 Post subject: Re: maven settings in order to get latest hibernate jar files
PostPosted: Sun Aug 22, 2010 5:11 pm 
Regular
Regular

Joined: Sun Feb 14, 2010 3:29 pm
Posts: 58
Location: USA
Your repo url seems to be wrong. Try

http://repository.jboss.org/nexus/content/groups/public

See viewtopic.php?f=1&t=1005998, which is on top of this forum!

_________________
Zemian Deng
------------
Need a Java Scheduler? Try
http://bitbucket.org/timemachine/scheduler


Top
 Profile  
 
 Post subject: Re: maven settings in order to get latest hibernate jar files
PostPosted: Mon Aug 23, 2010 12:01 pm 
Newbie

Joined: Thu Apr 05, 2007 5:30 am
Posts: 5
Hello and thanks,
I am still experiencing the same issues as before even after having updated my settings.xml file...

Here are my maven settings:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<settings>
    <profiles>
        <profile>
            <id>main</id>
            <repositories>
                <repository>
                    <id>java.net</id>
                    <url>http://download.java.net/maven/1</url>
                    <layout>legacy</layout>
                </repository>
                <repository>
                    <id>maven2-repository.dev.java.net</id>
                    <name>Java.net Repository for Maven</name>
                    <url>http://download.java.net/maven/2</url>
                </repository>
                <repository>
                    <id>jboss</id>
                    <name>jboss</name>
                    <url>http://repository.jboss.com/maven2/</url>
                </repository>
                <repository>
                    <id>jboss2</id>
                    <name>JBoss Repository2</name>
                    <url>https://repository.jboss.org/nexus/content/groups/public/</url>
                    <snapshots>
                        <enabled>false</enabled>
                    </snapshots>
                </repository>
                <repository>
                    <id>sonatype</id>
                    <name>sonatype</name>
                    <url>http://oss.sonatype.org/content/repositories/snapshots</url>
                </repository>
                <repository>
                    <id>ocpsoft</id>
                    <name>OcpSoft</name>
                    <url>http://ocpsoft.com/repository/</url>
                    <releases>
                        <enabled>true</enabled>
                    </releases>
                    <snapshots>
                        <enabled>true</enabled>
                    </snapshots>
                </repository>
            </repositories>
        </profile>
    </profiles>
    <localRepository>/home/julien/.m2</localRepository>
    <activeProfiles>
        <activeProfile>main</activeProfile>
    </activeProfiles>
</settings>


Here is the same error message:

Code:
NetBeans: Executing 'mvn -Dnetbeans.execution=true install'
NetBeans:      JAVA_HOME=/usr/lib/jvm/java-6-sun
Scanning for projects...
------------------------------------------------------------------------
Building jeanbaptistemartin.com
   task-segment: [install]
------------------------------------------------------------------------
[resources:resources]
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
Copying 17 resources
[WARNING] POM for 'org.restfaces:restfaces:pom:1.3.1:compile' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'org.hibernate:hibernate:pom:3.5.4-Final:compile' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'net.sf.ehcache:ehcache-terracotta:pom:2.2.0:compile' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'org.terracotta:terracotta-toolkit-1.0-runtime:pom:1.0.0:compile' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[WARNING] POM for 'com.jhlabs:imaging:pom:01012005:compile' is invalid.

Its dependencies (if any) will NOT be available to the current build.
[compiler:compile]
Compiling 47 source files to /home/julien/Documents/jeanbaptistemartin.com/site/jeanbaptistemartin/target/classes
------------------------------------------------------------------------
[ERROR]BUILD FAILURE
------------------------------------------------------------------------
Compilation failure

error: error reading /home/julien/.m2/org/hibernate/hibernate/3.5.4-Final/hibernate-3.5.4-Final.jar; error in opening zip file
error: error reading /home/julien/.m2/net/sf/ehcache/ehcache/2.2.0/ehcache-2.2.0.jar; error in opening zip file

------------------------------------------------------------------------
For more information, run Maven with the -e switch
------------------------------------------------------------------------
Total time: 1 second
Finished at: Mon Aug 23 17:57:57 CEST 2010
Final Memory: 16M/143M
------------------------------------------------------------------------


Anyone can help please?

Thanks in advance,

J.


Top
 Profile  
 
 Post subject: Re: maven settings in order to get latest hibernate jar files
PostPosted: Mon Aug 23, 2010 1:10 pm 
Regular
Regular

Joined: Sun Feb 14, 2010 3:29 pm
Posts: 58
Location: USA
I think you might have the wrong artifact name (you're missing '-core'). Try:

Code:
      <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-core</artifactId>
            <version>3.5.4-Final</version>
        </dependency>


Also, as of this morning, your original repo url seems to be working, rather than the one I suggested earlier. Just past it to browser to ensure you can browse to it!

_________________
Zemian Deng
------------
Need a Java Scheduler? Try
http://bitbucket.org/timemachine/scheduler


Top
 Profile  
 
 Post subject: Re: maven settings in order to get latest hibernate jar files
PostPosted: Mon Aug 23, 2010 5:20 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
saltnlight5 is right about the artifact id,
furthermore you might want to erase your local m2 cache, as these corruption messages make me think that it downloaded and got some HTML error pages, which it stored in your cache (try opening them and see).

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.