Pascal,
I'm using m2. I ended up putting jacc from hibernate in my local
repository. I'm pretty new to maven, but learning fast.
I debated using the trade-offs of using m1 with jelly and the plethora
of plugins (like cruisecontrol, scm, etc.) vs. going with m2 and the
simpler pom.xml spec (w/o property files and maven.xml, etc. -- but the
jury is still out) and transitive dependencies.
I was *expecting* the build to fail and to display where I should obtain
the jar (if there was in fact a POM for it). If there was no parm, an
error to this effect and then an indication of where to obtain the jar
and a msg about where to look to install the jar in my local repository
(good) or a shared repository (better).
I wonder how other folks expect this to work.
Brian
Pascal Thivent wrote:
I should have ask wich version of maven you're using... The <url>
element doesn't seem to be supported in m2. I guess it would brake the
transitive dependency mechanism because this feature relies on remote
repositories, even for licenced jars. You need perhaps to add your
jaac jar in your own repository manually. I don't know exactly what
the maven team did plan for this use case.
On 10/10/05, Brian Bonner <[EMAIL PROTECTED]> wrote:
Pascal, thanks. That's good to know. I don't believe the URL was in
the POM as it was being downloaded. It certainly didn't display it when
m2 complained.
Again for new folks, maybe this should be included in the ibiblio
pom.xml files.
In the case for jacc where hibernate is optionally dependent upon this
file at runtime, would it go in the hibernate pom.xml, or the jacc
pom.xml? I suspect the hibernate pom.xml since it would be able to
display the msg if the jacc's pom.xml was not available.
Brian
Pascal Thivent wrote:
Hi,
the <url> element of a dependency should be used for this. According
to the documentation, "this url will be provided to the user if the
jar file cannot be downloaded from the central repository" (see
http://maven.apache.org/reference/project-descriptor.html#class_Dependency).
Cheers,
On 10/10/05, Brian Bonner <[EMAIL PROTECTED]> wrote:
Hi, I'm fairly new to maven.
Is there a facility within maven that would suggest to a user where to
download a dependency from if it's not included in ibiblio repository?
I'm looking for javax.security jaac which hibernate 3.0.5 apparently has
a dependency on. I believe it's buried in the J2EE 1.4 download, but
this would really be nice to point someone in the right direction for this.
Maybe this could be a new feature?
--
Brian
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Pascal
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Pascal
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]