[fedora-java] bsf maven questions

Guido Grazioli guido.grazioli at gmail.com
Thu May 27 00:14:41 UTC 2010


2010/5/27 Orion Poplawski <orion at cora.nwra.com>:
>
> I don't think that is quite correct.  The package builds just fine without bsf
> 3.0 because the javax.script API (that bsf 3.0 is/provides) is in Java 1.6.
>
> It seems to me that jexl should be requiring bsf-api 3.0 OR java 1.6 (don't
> know if a pom can express that), or maybe java-1.6.0-openjdk should provide
> bsf-api 3.0?
>


Afaik, bsf-api is a module built along apache-bsf-3.0 which is
intended to be used
with jdks prior to 1.6.0 (it provides the JSR-223 api defined in 1.6
with javax.script).

If your package only needs the api and you dont mind requiring java >= 1.6.0,
just strip away the dep from the pom. If you also need the
implementation, you need
to package bsf-3.0 and install its poms for maven (possible java
package names clash
if both javax.script from jdk *and* javax.script from bsf-api go into
classhpath?)
bsf 2.x wont do because it is based on a different api.

hope that helps

-- 
Guido Grazioli <guido.grazioli at gmail.com>
Via Parri 11 48011 - Alfonsine (RA)
Mobile: +39 347 1017202 (10-18)
Key FP = 7040 F398 0DED A737 7337  DAE1 12DC A698 5E81 2278
Linked in: http://www.linkedin.com/in/guidograzioli


More information about the java-devel mailing list