Hello,

I think this is where it is declared. The system has built on other Macs, so if it is just my system maybe I will have to reload OSX (but that is the last resort). This is my first time using maven (mainly used Ant before) so I have haven't got a great idea about what is going on.

<!-- Should be NONE except for test-scope -->
      <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>4.0</version>
        <scope>test</scope>
    </dependency>

On 31 Jul 2007, at 14:57, Michael Meyer wrote:

Hi,
how did you define the junit dependency in the pom? You're not using <scope>system</scope> or something like that, are you?

Cheers, michael

Ian Dunlop 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.executeGoalWithLi fecycle(DefaultLifecycleExecutor.java:480) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal (DefaultLifecycleExecutor.java:459) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(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]

--
Michael Meyer | [EMAIL PROTECTED]
phone +41-44-247 79 12 | fax +41-44-247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch


---------------------------------------------------------------------
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