I'm afraid so! Just open the relevant pom.xml files in your local maven repository and copy the dependencies accross.
Mike. On 6/25/07, climbingrose <[EMAIL PROTECTED]> wrote:
Because I have to heavily modify service layer that comes with AppFuse. So it's likely that I have to copy dependencies from pom.xml in service layer and DAO as well? On 6/25/07, Michael Horwitz <[EMAIL PROTECTED]> wrote: > > Is there any reason you are excluding the service layer in your > application? If you do it is likely that you will need to include the > transitive dependencies you were inheriting via the service layer. > > Mike. > > > On 6/25/07, climbingrose <[EMAIL PROTECTED] > wrote: > > > > Hi all, > > > > I'm trying to modify DAO and Service layer in AppFuse 2.0 M5 using > > instructions from http://appfuse.org/display/APF/AppFuse+Core+Classes. > > After importing the source, I modified pom.xml and add: > > <dependency> > > <groupId>org.appfuse</groupId> > > <artifactId>appfuse-${ web.framework}</artifactId> > > <version>${appfuse.version }</version> > > <type>warpath</type> > > <exclusions> > > <exclusion> > > <groupId>org.appfuse</groupId> > > <artifactId>appfuse-data-common</artifactId> > > </exclusion> > > <exclusion> > > <groupId>org.appfuse</groupId> > > <artifactId>appfuse-hibernate</artifactId> > > </exclusion> > > <exclusion> > > <groupId> org.appfuse</groupId> > > <artifactId>appfuse-jpa-hibernate</artifactId> > > </exclusion> > > <exclusion> > > <groupId> org.appfuse</groupId> > > <artifactId>appfuse-service</artifactId> > > </exclusion> > > </exclusions> > > </dependency> > > > > When I generate Eclipse project, appfuse-service and appfuse-hibernate > > jars are not included in the classpath but appfuse-jpa-hibernate and > > appfuse-data-common jars are. Now if I try to run "mvn jetty:run" I get this > > exception: > > > > Nested in > > org.springframework.beans.factory.BeanDefinitionStoreException: > > Unexpected exception parsing XML document from URL > > [file:/home/climbingrose/workspace/BMart/target/classes/applicationContext- > > service.xml]; nested exception is java.lang.NoClassDefFoundError: > > org/aspectj/weaver/reflect/ReflectionWorld$ReflectionWorldException: > > java.lang.NoClassDefFoundError: > > org/aspectj/weaver/reflect/ReflectionWorld$ReflectionWorldException > > > > > > I don't really understand how Maven dependency exclusion works but it > > looks when I exclude appfuse-service, dependencies of appfuse-service are > > also excluded and thus NoClassDefFoundError exception. > > > > Does any here have experience modifying Service and DAO layer? > > > > Thanks. > > > > > -- Regards, Cuong Hoang
