Well the generator runs through all of your classes and tries to generate AS counterparts for them. I guess you want to only generate code for classes you explicitly define to be generated, right? Have a look at the pom here ... there I explicitly tell flexmojos for what classes I like my AS code to be generated: http://dev.c-ware.de/confluence/display/PUBLIC/Flexmojos+generated+AS3+model+with+Enum+support+using+BlazeDS
But I guess you will have to clean-up your src/main/flex directory because it will be full of nonsense classes now. Chris 2011/4/29 Eric B <[email protected]>: > On Fri, Apr 29, 2011 at 12:03 AM, Bryan Turner <[email protected]> > wrote: >> >> You're not proxying the right repository. You need to proxy >> http://repository.sonatype.org/content/groups/flexgroup, not public. Try >> that and see if it helps. >> >> Hope this helps, >> Bryan Turner > > Thanks. Changed the proxy site and it seems to download all dependencies, > and attempts to do the generation. However I now run into other problems. > Unfortunately, I don't understand what they mean at all. It seems to relate > to an oracle class (oracle.toplink.sessions.ObjectCopyingPolicy), but don't > know what, nor where that class should be found. Is that something in the > flexmojo configuration? > > > [INFO] > ------------------------------------------------------------------------ > [ERROR] FATAL ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] oracle/toplink/sessions/ObjectCopyingPolicy > oracle.toplink.sessions.ObjectCopyingPolicy > [INFO] > ------------------------------------------------------------------------ > [INFO] Trace > java.lang.NoClassDefFoundError: oracle/toplink/sessions/ObjectCopyingPolicy > at java.lang.Class.getDeclaredMethods0(Native Method) > at java.lang.Class.privateGetDeclaredMethods(Class.java:2444) > at java.lang.Class.getDeclaredMethods(Class.java:1808) > at java.beans.Introspector$1.run(Introspector.java:1324) > at java.security.AccessController.doPrivileged(Native Method) > at > java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:1322) > at java.beans.Introspector.getTargetMethodInfo(Introspector.java:1188) > at java.beans.Introspector.getBeanInfo(Introspector.java:423) > at java.beans.Introspector.getBeanInfo(Introspector.java:189) > at org.granite.util.ClassUtil.getProperties(ClassUtil.java:174) > at > org.granite.generator.as3.reflect.JavaAbstractType.getPropertyDescriptors(JavaAbstractType.java:171) > at > org.granite.generator.as3.reflect.JavaInterface.initProperties(JavaInterface.java:85) > at > org.granite.generator.as3.reflect.JavaInterface.<init>(JavaInterface.java:56) > at > org.granite.generator.as3.JavaAs3GroovyTransformer.getJavaType(JavaAs3GroovyTransformer.java:234) > at > org.granite.generator.as3.JavaAs3GroovyTransformer.getOutputs(JavaAs3GroovyTransformer.java:82) > at > org.granite.generator.as3.JavaAs3GroovyTransformer.getOutputs(JavaAs3GroovyTransformer.java:1) > at org.granite.generator.Transformer.generate(Transformer.java:66) > at org.granite.generator.Generator.generate(Generator.java:83) > at > org.sonatype.flexmojos.generator.granitedsv2d1d0.GraniteDsGenerator.generateClass(GraniteDsGenerator.java:381) > at > org.sonatype.flexmojos.generator.granitedsv2d1d0.GraniteDsGenerator.generate(GraniteDsGenerator.java:333) > at > org.sonatype.flexmojos.generator.SimpleGeneratorMojo.execute(SimpleGeneratorMojo.java:217) > at > org.sonatype.flexmojos.generator.GeneratorMojo.execute(GeneratorMojo.java:49) > at > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) > at > org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:616) > 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: java.lang.ClassNotFoundException: > oracle.toplink.sessions.ObjectCopyingPolicy > at java.net.URLClassLoader$1.run(URLClassLoader.java:217) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:205) > at java.lang.ClassLoader.loadClass(ClassLoader.java:321) > at java.lang.ClassLoader.loadClass(ClassLoader.java:266) > ... 41 more > > > Thanks! > > Eric > > -- > You received this message because you are subscribed to the Google > Groups "Flex Mojos" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/flex-mojos > > http://flexmojos.sonatype.org/ > -- You received this message because you are subscribed to the Google Groups "Flex Mojos" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex-mojos http://flexmojos.sonatype.org/
