Did you use useTransitiveDependencies along with the hiberante dependency in your pom?
Why not use granite-hibernate-swc and granite-hibernate (available at http://download.java.net/maven/2/) it contains all the hibernate externalizers (see http://www.graniteds.org/confluence/x/aIBW)? -----Original Message----- From: flex-mojos@googlegroups.com [mailto:flex-mo...@googlegroups.com] On Behalf Of Davis Ford Sent: Sunday, March 29, 2009 8:49 AM To: flex-mojos@googlegroups.com Subject: [flex-mojos] Re: Q on flexmojos:generate and transitive dependencies Hi Will -- I tried that, but same problem exists: [FATAL ERROR] Container realm = plexus.core urls[0] = file:/usr/share/maven/lib/maven-2.0.9-uber.jar urls[1] = file:/usr/share/maven/lib/maven-core-2.0.6-uber.jar [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] org/hibernate/criterion/Criterion org.hibernate.criterion.Criterion [INFO] ------------------------------------------------------------------------ [INFO] Trace java.lang.NoClassDefFoundError: org/hibernate/criterion/Criterion On Sun, Mar 29, 2009 at 4:18 AM, Will Hoover <java.whoo...@gmail.com> wrote: > > Try adding: > > <includeJavaClasses> > <includeClass>com.example.MyClass</includeClass> > <includeClass>com.example.MyClassDao</includeClass> > <includeClass>org.hibernate.*</includeClass> > </includeJavaClasses> > > -----Original Message----- > From: flex-mojos@googlegroups.com [mailto:flex-mo...@googlegroups.com] > On Behalf Of Davis Ford > Sent: Sunday, March 29, 2009 12:30 AM > To: flex-mojos@googlegroups.com > Subject: [flex-mojos] Re: Q on flexmojos:generate and transitive > dependencies > > > I see there is a useTransitiveDependencies property on the plugin > http://docs.flex-mojos.info/generator-mojo/generate-mojo.html#useTrans > itiveD > ependencies > -- I tried that, and I still continue to get CNF exceptions. I posted > the plugin config below. Anyone know if it is absolutely necessary to > pull in all the transitive deps just for the flex-mojos generator? > > <plugin><!-- Flex (SWC and SWF) compilation --> > > <groupId>org.sonatype.flexmojos</groupId> > > <artifactId>flexmojos-maven-plugin</artifactId> > <extensions>true</extensions> > <configuration> > > <contextRoot>elibrary-web</contextRoot> > <debug>true</debug> > </configuration> > <executions> > <execution> > <goals> > > <goal>optimize</goal> <!-- Optimized RSL generation --> > > <goal>generate</goal> <!-- ActionScript POJOs generation based on Java > POJOs > --> > </goals> > <configuration> > > <includeJavaClasses> > > <includeClass>com.example.MyClass</includeClass> > > <includeClass>com.example.MyClassDao</includeClass> > > </includeJavaClasses> > <beanTemplate> > > <template>${basedir}/src/main/template/beanBase.gsp</template> > > <template>${basedir}/src/main/template/bean.gsp</template> > </beanTemplate> > <entityTemplate> > > <template>${basedir}/src/main/template/entity.gsp</template> > > <template>${basedir}/src/main/template/entityBase.gsp</template> > > </entityTemplate> > > <interfaceTemplate> > > <template>${basedir}/src/main/template/interface.gsp</template> > > <template>${basedir}/src/main/template/interfaceBase.gsp</template> > > </interfaceTemplate> > > <useTransitiveDependencies>true</useTransitiveDependencies> > </configuration> > </execution> > </executions> > </plugin> > > On Sat, Mar 28, 2009 at 11:05 PM, Davis Ford > <davisf...@zenoconsulting.biz> > 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 >> > > > > -- > Zeno Consulting, Inc. > home: http://www.zenoconsulting.biz > blog: http://zenoconsulting.wikidot.com > p: 248.894.4922 > f: 313.884.2977 > > > > > > -- 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/ -~----------~----~----~----~------~----~------~--~---