Just Changed the model class name from Alimento to Item and appfuse:gen worked. As I suspected something looks for the pattern "Alimento" and that was causing the error. In my opinion this is a bug and should be fixed, I don't know the framework to know exactly whats going on thought.
Hope somenone fix this for future versions. regards, Marcos Maia. mmaia wrote: > > Hi, > > I have a model class called Alimento. When I try to run appfuse gen with > command: > > mvn appfuse:gen -Dentity=Alimento > > I get the following error: > > [ERROR] FATAL ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] > C:\workspaces\projetos\controlepeso\target\appfuse\generated-sources\src\test\resources\Alimento-sample-data.xml > doesn't exist > [INFO] > ------------------------------------------------------------------------ > [INFO] Trace > C:\workspaces\projetos\controlepeso\target\appfuse\generated-sources\src\test\resources\Alimento-sample-data.xml > doesn't > exist > at > org.apache.tools.ant.taskdefs.LoadResource.execute(LoadResource.java:142) > at > org.appfuse.tool.ArtifactInstaller.installSampleData(ArtifactInstaller.java:135) > at > org.appfuse.tool.ArtifactInstaller.execute(ArtifactInstaller.java:47) > at > org.appfuse.mojo.exporter.AppFuseGeneratorMojo.doExecute(AppFuseGeneratorMojo.java:270) > at > org.appfuse.mojo.HibernateExporterMojo.execute(HibernateExporterMojo.java:138) > at > org.appfuse.mojo.exporter.AppFuseGeneratorMojo.execute(AppFuseGeneratorMojo.java:210) > at > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.jav > a:330) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) > 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) > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 22 seconds > [INFO] Finished at: Mon Oct 27 18:27:27 BRST 2008 > [INFO] Final Memory: 21M/43M > [INFO] > ------------------------------------------------------------------------ > > If i take a look at: target\appfuse\generated-sources\src\test\resources > > I find there a file for other Entity I have already generated files for > called CategoriaAlimento > > Taking a closer look at all generated files all I find is files for > CategoriaAlimento. > I have already genereted CRUD for CategoriaAlimento using appfuse gen and > even if I delete generated files and run command again for Alimento it > keeps generating for CategoriaAlimento. > > It looks for me that appfuse gen is using sime wildcard to find the model > and generate the files and is finding first CategoriaAlimento wich is > already generated. > > Any clues? > > tx in advance. > Marcos Maia. > -- View this message in context: http://www.nabble.com/Appfuse-gen-bug----tp20195835s2369p20209406.html Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
