You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Rollo, Dan" <DR...@ETS.ORG> on 2006/02/14 19:39:14 UTC

[m2] AntTasks with Rhino js.jar missing Context.getDebuggableEngine()

I'm using the Ant Dependency Tasks of Maven 2.0.2.
I have the following dependencies defined in my pom:

        <dependency>
            <groupId>bsf</groupId>
            <artifactId>bsf</artifactId>
            <version>2.3.0</version>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>rhino</groupId>
            <artifactId>js</artifactId>
            <version>1.6R2</version>
            <scope>test</scope>
        </dependency>

My ant file includes the deps via:
        <artifact:pom file="java/pom.xml" id="maven.project"/>
        <artifact:dependencies pathId="cp.dependencies.utest"
verbose="true" useScope="test">
            <pom refid="maven.project"/>
        </artifact:dependencies>


I've included the ".m2/repository/..." directories on Ant's classpath
via:
ARGS=-lib "%USERPROFILE%\.m2\repository\bsf...."

Ant gives the following error when it tries to do any javascript:
BUILD FAILED
C:\ibtDev\ibt\java\build.xml:1321: The following error occurred while
executing this line:
java.lang.NoSuchMethodError:
org.mozilla.javascript.Context.getDebuggableEngine()Lorg/mozilla/javasc
ript/debug/DebuggableEngine;

If I simply use my old js.jar (version from Rhino 1.5R3 - as far as I
can tell) instead of the .m2/repo...js-1.6R2.jar, everything works. I've
also tried using all other versions of js.jar from ibiblio (listed
below), and still get the same "DebuggableEngine" error:
js/1.5R4-RC3
js/1.5R4.1
js/1.6R1
js/1.6R2
rhino/1.5R4.1

Any ideas? Is there a js/1.6R3 or newer around? Is there an old js/1.5R3
available on Ibiblio?

Thanks,
Dan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org