Jose,

I found this in a blog somewhere (I didn't bookmark it, just copied it into
a "tips and tricks" email I sent myself at work).  I still ran into problems
with the hibernate3-maven-plugin complaining it couldn't resolve a
dependency somewhere down the line to maven-hibernate3-plugin.  It could
have been something I've been doing wrong, but your problem was fairly easy
to track down (after more than a few hours of google searching).  I did use
a different way of doing the jta installation.  I created a jar file and
installed that rather than the zip file.

/Paul

The below is quite shamefully included without attribution.  I take no claim
for its origination.

Special dependencies

Most of the dependencies you need will be automatically downloaded by Maven
from a remote repository, but two by Sun can't be held there. Go to this
page <http://java.sun.com/products/jta/> to get the JTA interfaces from the
Download link next to "Class Files 1.0.1B," then paste the following into a
shell in your download directory:

mvn install:install-file -DgroupId=javax.transaction \
 -DartifactId=jta -Dversion=1.0.1B -Dpackaging=jar \
 -Dfile=jta-1_0_1B-classes.zip

(Or use jta.jar from the Hibernate 3.1.1 distribution, if you have that
already — just change the -Dfile= parameter above.)

For the EJB 3.0 *public final draft* dependency, you'll need to
download Hibernate
Annotations<http://prdownloads.sourceforge.net/hibernate/hibernate-annotations-3.2.0.CR1.tar.gz?download>,
expand the archive, change to its lib directory, then:

mvn install:install-file -DgroupId=javax.persistence \
 -DartifactId=ejb -Dversion=3.0-public-draft-20060502
\
 -Dpackaging=jar -Dfile=ejb3-persistence.jar



On 7/5/06, Jose Gonzalez Gomez <[EMAIL PROTECTED]> wrote:

Paul,

I'm trying to do the same, and I'm facing some troubles, maybe you can
help
me... First of all, I haven't been able to find one of the dependencies of
the Hibernate Annotations packages:
javax.persistence:ejb:jar:3.0-public-draft-20060502. This seems to be an
implementation of a public draft that has been removed from ibiblio.
Anyway,
I'm using the javax.persistence:persistence-api:1.0 from the
java.netrepository. I guess this is the final implementation of the
missing
dependency, but I don't know how to override it or where to find it. How
have you solved this?

Best regards
Jose

[snip]

Reply via email to