-->
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.  [ 4 posts ] 
Author Message
 Post subject: Error Building 3.3.2 GA via maven (missing javassist.jar)
PostPosted: Wed Jun 23, 2010 3:56 pm 
Newbie

Joined: Tue May 06, 2008 2:32 am
Posts: 4
I am trying to build hibernate from source, and get a maven dependency error. Can anyone point me to directions that will really work for building hibernate?

Here is the page from which I am following the directions

http://www.hibernate.org/sourcecode.html

I've cut and paste'd the maven repository and plugins settings into my .m2/settings.xml. Then while running mvn clean install a jar file can not be found from the nexus.



[INFO] Installing C:\java\hibernateCore\332ga\Branch_3_3_2_GA_CP\parent\pom.xml to C:\Documents and
Settings\Administrator\.m2\repository\org\hibernate\hibernate-parent\3.3.2.GA_CP02\hibernate-parent-
3.3.2.GA_CP02.pom
[INFO] ------------------------------------------------------------------------
[INFO] Building Hibernate Core
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
Downloading: http://repository.jboss.com/maven2/java ... 12.0.GA.po
m
[INFO] Unable to find resource 'javassist:javassist:pom:3.12.0.GA' in repository jboss (http://repos
itory.jboss.com/maven2)
Downloading: http://repo1.maven.org/maven2/javassist ... 2.0.GA.pom
[INFO] Unable to find resource 'javassist:javassist:pom:3.12.0.GA' in repository central (http://rep
o1.maven.org/maven2)
Downloading: http://repository.jboss.com/maven2/java ... 12.0.GA.ja
r
[INFO] Unable to find resource 'javassist:javassist:jar:3.12.0.GA' in repository jboss (http://repos
itory.jboss.com/maven2)
Downloading: http://repo1.maven.org/maven2/javassist ... 2.0.GA.jar
[INFO] Unable to find resource 'javassist:javassist:jar:3.12.0.GA' in repository central (http://rep
o1.maven.org/maven2)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) javassist:javassist:jar:3.12.0.GA

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=javassist -DartifactId=javassist -Dversion=3.12.0.GA -Dpack
aging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=javassist -DartifactId=javassist -Dversion=3.12.0.GA -Dpackag
ing=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:
1) org.hibernate:hibernate-core:jar:3.3.2.GA_CP02
2) javassist:javassist:jar:3.12.0.GA

----------
1 required artifact is missing.

for artifact:
org.hibernate:hibernate-core:jar:3.3.2.GA_CP02

from the specified remote repositories:
jboss-snapshot (http://snapshots.jboss.org/maven2),
central (http://repo1.maven.org/maven2),
jboss (http://repository.jboss.com/maven2)


Top
 Profile  
 
 Post subject: Re: Error Building 3.3.2 GA via maven (missing javassist.jar)
PostPosted: Wed Jun 23, 2010 5:13 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
hello, JBoss's repositories where recently updated to use Nexus; you can now use the web interface to find artifacts; in particular for javassist:
https://repository.jboss.org/nexus/index.html#nexus-search;gav~javassist~javassist~3.12.0.GA~jar~

So the repositories changed url, I'll update the hibernate docs; thanks for spotting that.

announcement with more instructions and pointers: http://relation.to/Bloggers/JBossMavenRepositoryChanges

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


Top
 Profile  
 
 Post subject: Re: Error Building 3.3.2 GA via maven (missing javassist.jar)
PostPosted: Wed Jun 23, 2010 6:12 pm 
Newbie

Joined: Tue May 06, 2008 2:32 am
Posts: 4
Hi Sanne,
thanks for the reply. How can the maven build be fixed - should I add the new jboss nexus to repositories section of my maven settings.xml? If so, can you provide the url to use?

thanks!


Top
 Profile  
 
 Post subject: Re: Error Building 3.3.2 GA via maven (missing javassist.jar)
PostPosted: Wed Jun 23, 2010 8:46 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
yes you should update your settings.xml, please follow the instructions at http://community.jboss.org/wiki/MavenGettingStarted-Users

_________________
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.  [ 4 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.