Hi,
I find it much more convenient to simply replace the dependencies on
sun's jars with their equivalents from geronimo, as mentioned at
http://mavenbook.xwiki.com/xwiki/bin/view/Main/J2eeDependencies
Here's how my hibernate dependency looks like:
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate</artifactId>
<version>3.0.5</version>
<exclusions>
<exclusion>
<artifactId>jta</artifactId>
<groupId>javax.transaction</groupId>
</exclusion>
<exclusion>
<groupId>javax.security</groupId>
<artifactId>jacc</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- open source replacements for jta, jacc -->
<dependency>
<artifactId>geronimo-spec-jta</artifactId>
<groupId>geronimo-spec</groupId>
<version>1.0.1B-rc4</version>
</dependency>
<dependency>
<groupId>geronimo-spec</groupId>
<artifactId>geronimo-spec-j2ee-jacc</artifactId>
<version>1.0-rc3</version>
</dependency>
Cheers,
-Ralph.
On 20.01.2006, at 09:26, Bengt-Erik Fröberg wrote:
Hi
You're facing the SUN jarmaggeddon.
http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html
1) go to http://java.sun.com/products/jta/ and download class files
2) check out
http://maven.apache.org/guides/mini/guide-installing-3rd-party-
jars.html
3) Replace <path-to-file> with the path to your download
4) <group-id> with javax.transaction
5) <artifact-id> with jta
6) <version> with 1.0.1B
7) <packaging> with jar
8) watch your desired transaction package get installed....
hopefully...
Yes, I know, there should be a tool for this, feels like the 80's
entering
shitloads of command line arguments..
HTH
/B-E
-----Ursprungligt meddelande-----
Från: Guenther Schroettner [mailto:[EMAIL PROTECTED]
Skickat: den 19 januari 2006 21:30
Till: Maven Users List
Ämne: Dependency on hibernate
Hello!
I added a dependency on hibernate in my pom.xml:
<dependency>
<groupId>hibernate</groupId>
<artifactId>hibernate</artifactId>
<version>3.1rc2</version>
<scope>compile</scope>
</dependency>
If I try to compile I get an error:
[INFO]
---------------------------------------------------------------------
-------
[ERROR] BUILD ERROR
[INFO]
---------------------------------------------------------------------
-------
[INFO] Failed to resolve artifact.
required artifacts missing:
javax.transaction:jta:jar:1.0.1B
Hiberante needs JTA. I was at http://www.ibiblio.org/maven2/ and
search for
the jar-file. There is no JAR on this server. How can I resolve this
dependency?
Thanks in advance!
- Guenther
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]