You need to add this to your pom.xml for your project:
<dependency>
<groupId>jaxen</groupId>
<artifactId>jaxen</artifactId>
<version>1.1-beta-8</version>
<scope>compile</scope>
</dependency>
Scope test is quite literally:
<scope>test</scope>
Boris is simply saying, you can use test scope instead of compile
scope since you are using this dependency in your tests.
Wayne
On 4/6/06, Pierre Jacquot <[EMAIL PROTECTED]> wrote:
> what's scope test is ?
>
> 2006/4/6, Boris Lenzinger <[EMAIL PROTECTED]>:
> >
> > You are probably missing a dependency (with scope test I guess) in your
> > pom file. This dependency should be related to jaxen.
> >
> > Pierre Jacquot a écrit :
> > > When i use this javacode in a maven project :
> > > setXPathClass(Class.forName(className));
> > >
> > > where className=org.jdom.xpath.JaxenXPath
> > >
> > > i have this error :
> > > java.lang.NoClassDefFoundError: org/jaxen/NamespaceContext
> > > at java.lang.Class.forName0(Native Method)
> > > at java.lang.Class.forName(Class.java:141)
> > > at org.jdom.xpath.XPath.newInstance(XPath.java:128)
> > > at org.jdom.xpath.XPath.selectNodes(XPath.java:349)
> > > at
> > org.jtestcase.core.digester.XQueryParserImpl_Jaxen.getElements
> > (XQueryParserImpl_Jaxen.java:79)
> > >
> > > at
> > > org.jtestcase.core.digester.JTestCaseDigester.getTestCaseGlobalParams(
> > > JTestCaseDigester.java:828)
> > > at org.jtestcase.JTestCase.getGlobalParams(JTestCase.java:240)
> > > at org.jtestcase.JTestCase.getGlobalParamLocale(JTestCase.java
> > :278)
> > > at org.jtestcase.JTestCase.<init>(JTestCase.java:155)
> > > at com.test_junit.app.CalculatorTest.<init>(CalculatorTest.java
> > :53)
> > > at com.test_junit.app.CalculatorTest.suite(CalculatorTest.java
> > :76)
> > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > at sun.reflect.NativeMethodAccessorImpl.invoke(
> > > NativeMethodAccessorImpl.java:39)
> > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> > > DelegatingMethodAccessorImpl.java:25)
> > > at java.lang.reflect.Method.invoke(Method.java:324)
> > > at
> > org.apache.maven.surefire.battery.JUnitBattery.processTestClass(
> > > JUnitBattery.java:130)
> > > at org.apache.maven.surefire.battery.JUnitBattery.<init>(
> > > JUnitBattery.java:81)
> > > at org.apache.maven.surefire.SurefireUtils.instantiateBattery(
> > > SurefireUtils.java:63)
> > > at org.apache.maven.surefire.Surefire.instantiateBatteries(
> > > Surefire.java:262)
> > > at org.apache.maven.surefire.Surefire.run(Surefire.java:140)
> > > at org.apache.maven.surefire.Surefire.run(Surefire.java:87)
> > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > at sun.reflect.NativeMethodAccessorImpl.invoke(
> > > NativeMethodAccessorImpl.java:39)
> > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> > > DelegatingMethodAccessorImpl.java:25)
> > > at java.lang.reflect.Method.invoke(Method.java:324)
> > > at org.apache.maven.surefire.SurefireBooter.runTestsInProcess(
> > > SurefireBooter.java:313)
> > > at org.apache.maven.surefire.SurefireBooter.run(
> > SurefireBooter.java:221)
> > >
> > > at org.apache.maven.test.SurefirePlugin.execute(
> > SurefirePlugin.java:371)
> > >
> > > at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
> > > DefaultPluginManager.java:412)
> > > at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> > > DefaultLifecycleExecutor.java:534)
> > > at
> > >
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
> > > (DefaultLifecycleExecutor.java:475
> > > at
> > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle
> > (
> > > DefaultLifecycleExecutor.java:891)
> > > at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle
> > > (DefaultLifecycleExecutor.java:734)
> > > at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> > > DefaultLifecycleExecutor.java:525)
> > > at
> > >
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
> > > (DefaultLifecycleExecutor.java:475
> > > at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
> > > DefaultLifecycleExecutor.java:454)
> > > at
> > >
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
> > > (DefaultLifecycleExecutor.java
> > > at
> > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
> > > DefaultLifecycleExecutor.java:273)
> > > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
> > > DefaultLifecycleExecutor.java:140)
> > > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java
> > :322)
> > > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
> > > at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
> > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > at sun.reflect.NativeMethodAccessorImpl.invoke(
> > > NativeMethodAccessorImpl.java:39)
> > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> > > DelegatingMethodAccessorImpl.java:25)
> > > at java.lang.reflect.Method.invoke(Method.java:324)
> > > at org.codehaus.classworlds.Launcher.launchEnhanced(
> > Launcher.java:315)
> > >
> > > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> > > at org.codehaus.classworlds.Launcher.mainWithExitCode(
> > Launcher.java:430)
> > >
> > > at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> > >
> > >
> > > Where the error come from? Why the JDOM package works in Eclipse but
> > doesn't
> > > in Maven? How resolve the problem ?
> > > Thaks for anyone who reads me.
> > > Pierre
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>