It looks like jmock is missing from your dependencies.
Try adding:
<dependency>
<groupId>org.jmock</groupId>
<artifactId>jmock</artifactId>
<version>${jmock.version}</version>
<scope>test</scope>
</dependency>
<jmock.version> should be set to 2.5.1.
On Nov 8, 2010, at 3:46 PM, Ramzi MAALEJ wrote:
> Hi Matt,
>
> I installed it but I'm facing some probleme while generating code.
>
> I did run appfuse:gen and then mvn install, I got this errors;
>
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 15.954s
> [INFO] Finished at: Mon Nov 08 17:43:11 EST 2010
> [INFO] Final Memory: 12M/148M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:2.0.2:testCompile
> (default-testCompile) on project tma-core: Compilation failure: Compilation
> failure:
> /home/ramzi/Documents/appfuse/tma/core/src/test/java/tn/org/css/service/impl/SectionManagerImplTest.java:[9,16]
> cannot find symbol
> symbol : class Mock
> location: package org.jmock
>
> /home/ramzi/Documents/appfuse/tma/core/src/test/java/tn/org/css/service/impl/SectionManagerImplTest.java:[13,12]
> cannot find symbol
> symbol : class Mock
> location: class tn.org.css.service.impl.SectionManagerImplTest
>
> /home/ramzi/Documents/appfuse/tma/core/src/test/java/tn/org/css/service/impl/SectionManagerImplTest.java:[17,18]
> cannot find symbol
> symbol : class Mock
> location: class tn.org.css.service.impl.SectionManagerImplTest
>
> /home/ramzi/Documents/appfuse/tma/core/src/test/java/tn/org/css/service/impl/SectionManagerImplTest.java:[32,60]
> cannot find symbol
> symbol : method returnValue(tn.org.css.model.Section)
> location: class tn.org.css.service.impl.SectionManagerImplTest
>
> /home/ramzi/Documents/appfuse/tma/core/src/test/java/tn/org/css/service/impl/SectionManagerImplTest.java:[32,47]
> cannot find symbol
> symbol : method eq(java.lang.Long)
> location: class tn.org.css.service.impl.SectionManagerImplTest
>
> /home/ramzi/Documents/appfuse/tma/core/src/test/java/tn/org/css/service/impl/SectionManagerImplTest.java:[32,20]
> cannot find symbol
> symbol : method once()
> location: class tn.org.css.service.impl.SectionManagerImplTest
>
> /home/ramzi/Documents/appfuse/tma/core/src/test/java/tn/org/css/service/impl/SectionManagerImplTest.java:[35,8]
> cannot find symbol
> symbol : method assertSame(tn.org.css.model.Section,tn.org.css.model.Section)
> location: class tn.org.css.service.impl.SectionManagerImplTest
>
> /home/ramzi/Documents/appfuse/tma/core/src/test/java/tn/org/css/service/impl/SectionManagerImplTest.java:[44,50]
> cannot find symbol
> symbol : method returnValue(java.util.List)
> location: class tn.org.css.service.impl.SectionManagerImplTest
>
> /home/ramzi/Documents/appfuse/tma/core/src/test/java/tn/org/css/service/impl/SectionManagerImplTest.java:[44,20]
> cannot find symbol
> symbol : method once()
> location: class tn.org.css.service.impl.SectionManagerImplTest
>
> /home/ramzi/Documents/appfuse/tma/core/src/test/java/tn/org/css/service/impl/SectionManagerImplTest.java:[47,8]
> cannot find symbol
> symbol : method assertSame(java.util.List,java.util.List)
> location: class tn.org.css.service.impl.SectionManagerImplTest
>
> /home/ramzi/Documents/appfuse/tma/core/src/test/java/tn/org/css/service/impl/SectionManagerImplTest.java:[58,48]
> cannot find symbol
> symbol : method same(tn.org.css.model.Section)
> location: class tn.org.css.service.impl.SectionManagerImplTest
>
> /home/ramzi/Documents/appfuse/tma/core/src/test/java/tn/org/css/service/impl/SectionManagerImplTest.java:[58,20]
> cannot find symbol
> symbol : method once()
> location: class tn.org.css.service.impl.SectionManagerImplTest
>
> /home/ramzi/Documents/appfuse/tma/core/src/test/java/tn/org/css/service/impl/SectionManagerImplTest.java:[70,50]
> cannot find symbol
> symbol : method eq(java.lang.Long)
> location: class tn.org.css.service.impl.SectionManagerImplTest
>
> /home/ramzi/Documents/appfuse/tma/core/src/test/java/tn/org/css/service/impl/SectionManagerImplTest.java:[70,20]
> cannot find symbol
> symbol : method once()
> location: class tn.org.css.service.impl.SectionManagerImplTest
> -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:testCompile
> (default-testCompile) on project tma-core: Compilation failure
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:581)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:324)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:247)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:104)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:427)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:157)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:121)
> 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:597)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> 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.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:105)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:577)
> ... 14 more
> [ERROR]
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please
> read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
>
>
> On 2010-11-08 01:52, Matt Raible wrote:
>> Have you tried installing the m2eclipse plugin so you can run Maven from
>> w/in Eclipse?
>>
>> On Nov 6, 2010, at 1:02 PM, Ramzi MAALEJ wrote:
>>
>>
>>> Hi all,
>>>
>>> I would like to know how to use appfuse maven plugin from eclipse instead
>>> of using the command line.
>>>
>>> Best regards
>>>
>>> ---------------------------------------------------------------------
>>> 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]
>>
>>
>
>
> --
> Best regards, Ramzi MAALEJ
>
> ---------------------------------------------------------------------
> 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]