That's curious - makes me think a transative dep of junit is not found?
Natrually skipping the test will work, since maven.test.skip also skips test
compilation, however, what version of junit are you using?

-- 
Eric Redmond
http://blog.propellors.net

On 7/31/07, Ian Dunlop <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> Here is some more info, with the stack trace:
>
> [INFO] Compiling 5 source files to /Users/Ian/scratch/taverna1.0/
> taverna-bootstrap/target/test-classes
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Compilation failure
>
> /Users/Ian/scratch/taverna1.0/taverna-bootstrap/src/test/java/net/sf/
> taverna/tools/RepositoriesTest.java:[9,7] cannot find symbol
> symbol  : constructor TestCase()
> location: class junit.framework.TestCase
>
> /Users/Ian/scratch/taverna1.0/taverna-bootstrap/src/test/java/net/sf/
> taverna/tools/ProfileSelectorTest.java:[14,7] cannot find symbol
> symbol  : constructor TestCase()
> location: class junit.framework.TestCase
>
> /Users/Ian/scratch/taverna1.0/taverna-bootstrap/src/test/java/net/sf/
> taverna/tools/BootstrapTest.java:[9,7] cannot find symbol
> symbol  : constructor TestCase()
> location: class junit.framework.TestCase
>
> /Users/Ian/scratch/taverna1.0/taverna-bootstrap/src/test/java/net/sf/
> taverna/tools/RavenPropertiesTest.java:[40,7] cannot find symbol
> symbol  : constructor TestCase()
> location: class junit.framework.TestCase
>
> /Users/Ian/scratch/taverna1.0/taverna-bootstrap/src/test/java/net/sf/
> taverna/tools/RavenPropertiesTest.java:[96,16] cannot find symbol
> symbol  : method assertFalse(java.lang.String,boolean)
> location: class net.sf.taverna.tools.RavenPropertiesTest
>
> /Users/Ian/scratch/taverna1.0/taverna-bootstrap/src/test/java/net/sf/
> taverna/tools/ProfileListSelectorTest.java:[9,7] cannot find symbol
> symbol  : constructor TestCase()
> location: class junit.framework.TestCase
>
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.BuildFailureException: Compilation failure
>          at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
> (DefaultLifecycleExecutor.java:560)
>          at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec
> ycle(DefaultLifecycleExecutor.java:480)
>          at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
> (DefaultLifecycleExecutor.java:459)
>          at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
> Failures(DefaultLifecycleExecutor.java:311)
>          at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
> DefaultLifecycleExecutor.java:278)
>          at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
> (DefaultLifecycleExecutor.java:143)
>          at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:
> 334)
>          at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
>          at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
>          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:585)
>          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)
> Caused by: org.apache.maven.plugin.CompilationFailureException:
> Compilation failure
>          at org.apache.maven.plugin.AbstractCompilerMojo.execute
> (AbstractCompilerMojo.java:516)
>          at org.apache.maven.plugin.TestCompilerMojo.execute
> (TestCompilerMojo.java:102)
>          at org.apache.maven.plugin.DefaultPluginManager.executeMojo
> (DefaultPluginManager.java:443)
>          at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
> (DefaultLifecycleExecutor.java:539)
>          ... 16 more
>
> On 31 Jul 2007, at 12:24, Ian Dunlop wrote:
>
> > Hello,
> >
> > I am trying to use Maven (2.0.7) to build an application on an
> > Intel Mac (OSX 10.4.10).  It keeps failing with 'cannot find
> > symbol' related to a Junit class.  The app builds perfectly on
> > Linux.   Building with the -Dmaven.test.skip=true flag on the Mac
> > is successful.  I have looked on the web and the only related post
> > was to do with using Maven with Java6 (http://mail-
> > archives.apache.org/mod_mbox/maven-users/200612.mbox/%
> > [EMAIL PROTECTED]).   I am using Java5 but have the
> > Java6 developer preview on my Mac - could this be the issue.  If
> > not then do you have any ideas.
> >
> > Cheers,
> >
> > Ian
> > ---------------------------------------------------------------------
> > 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]
>
>

Reply via email to