1. Maven is not just about java (though very java focused I admit) endorsed
does not make sense outside of java
2. Whether a dependency needs to be endorsed or not depends on the jvm
version it targets... A dep can be fine until it gets added to the jvm spec.
3. It should probably more correctly be <scope>endorsed</scope>
4. Where would you package an endorsed dependency within a .war or .ear
file?

And don't get me started on the fact that to change this requires changing
the Pom format (which potentially could break ivy, gradle, leinengen, sbt,
etc)

Not an easy problem to solve, but I feel your pain

On Friday, 21 September 2012, Markus KARG wrote:

> Thank you for pointing me to this excellent blog entry, but in fact I
> wonder
> why such a great tool like Maven doesn't have built-in support for endorsed
> dependencies? I mean, in the end a different compiler might break the
> solution, so it would be a good idea if a dependency could simply marked as
> <endorsed>true</endorsed>.
>
> > -----Original Message-----
> > From: Claves Do Amaral [mailto:claves.doama...@igmarkets.com<javascript:;>
> ]
> > Sent: Donnerstag, 20. September 2012 10:30
> > To: Maven Users List
> > Subject: RE: How to put a dependency in the classpath BEFORE jre.jar?
> >
> > If I understand the problem well, this is equivalent to provide
> > endorsed libraries at runtime.
> > I have found this resource, that looks a bit dated, but it may work.
> > Not sure if Maven 3 offers a better solution
> >
> > http://www.mindbug.org/2009/02/adding-endorsements-to-mavens-
> > plugins.html
> >
> > Claves
> >
> > -----Original Message-----
> > From: Markus Karg [mailto:k...@quipsy.de <javascript:;>]
> > Sent: 20 September 2012 09:22
> > To: users@maven.apache.org <javascript:;>
> > Subject: How to put a dependency in the classpath BEFORE jre.jar?
> >
> > I have a dependency on javaee.jar, which provides newer versions for
> > classes found in JRE's jre.jar (particularly the @Resource annotation).
> > But javaee.jar is always appended to the classpath, while to be able to
> > load the newer version, I need to PREFIX it before jre.jar instead. How
> > can I configure this in the POM?
> >
> >
> > The information contained in this email is strictly confidential and
> > for the use of the addressee only, unless otherwise indicated. If you
> > are not the intended recipient, please do not read, copy, use or
> > disclose to others this message or any attachment. Please also notify
> > the sender by replying to this email or by telephone (+44 (0)20 7896
> > 0011) and then delete the email and any copies of it. Opinions,
> > conclusions (etc.) that do not relate to the official business of this
> > company shall be understood as neither given nor endorsed by it. IG is
> > a trading name of IG Markets Limited, a company registered in England
> > and Wales under number 04008957. VAT registration number 761 2978 07.
> > Registered Office: Cannon Bridge House, 25 Dowgate Hill, London EC4R
> > 2YA. Authorised and regulated by the Financial Services Authority. FSA
> > Register number 195355.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org<javascript:;>
> > For additional commands, e-mail: users-h...@maven.apache.org<javascript:;>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org <javascript:;>
> For additional commands, e-mail: users-h...@maven.apache.org<javascript:;>
>
>

Reply via email to