Gas3 should be used only to generate POJO (DTO, VO, Beans or whatever you call it) code.
And a bean shouldn't have a Criterion on it, Criterion are used on DAO classes, right? So you should to the proper filtering to only generate the bean code... <includeJavaClasses> <includeClass>com.example.MyClass</includeClass> <!-- Don't include this <includeClass>com.example.MyClassDao</includeClass> --> <!-- and really, *really *don't include this! <includeClass>org.hibernate.*</includeClass> --> </includeJavaClasses> VELO On Sun, Mar 29, 2009 at 12:10 AM, Davis Ford <davisf...@gmail.com> wrote: > > Hi, so I have this: > > project-a (jar) > > project-b (swc) > > where b depends on a (b --> a), and a uses hibernate and a bunch of other > stuff. > > project-b is primarily to be just code-generated AS via Gas3. > However, when I run: > > $ mvn flexmojos:generate > > I get CNF Caused by: java.lang.ClassNotFoundException: > org.hibernate.criterion.Criterion > > If I explicitly add hibernate as a <scope>provided</scope> dependency > on project B, that CNF goes away, but then another one is right behind > it. I'm confused why maven transitive dependencies don't take care of > this for me since project b depends on a which depends on all the > necessary jars that are needed. > > It appears that the Gas3 generator isn't smart enough to figure that > out? Do I have to explicitly go and add all these jars as > <scope>provided</scope> to project b pom.xml? > > Thanks in advance, > Davis > > -- > Zeno Consulting, Inc. > home: http://www.zenoconsulting.biz > blog: http://zenoconsulting.wikidot.com > p: 248.894.4922 > f: 313.884.2977 > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex Mojos" group. To post to this group, send email to flex-mojos@googlegroups.com To unsubscribe from this group, send email to flex-mojos+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/flex-mojos?hl=en?hl=en http://blog.flex-mojos.info/ -~----------~----~----~----~------~----~------~--~---