not sure if this has been suggested before..
Since this problem might exist not only for sun dependencies but for
other dependencies also, could one sollution be to in the maven
repository (on ibiblio,etc) create a pom for these dependencies but NOT
include the dependency itself, but in the pom for the dependency have
some sort of installation instruction so that when maven tries to
download the dependency it will fail presenting the installation
instructions, or if it even is possible, download the licens text for
the dependency, display it to the user and if the user accepts license
download the dependency from the real url (sjava.sun.com.... in this case)
the first part should not be that hard to implement I should think (I
have not looked in the source of maven, but I suppose that it would
require some changs in the code and perheps the pom also which might not
be wanted..
/Christian Andersson
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]