henryyan / kft-activiti-demo

Demo for workflow framework and BPM platform -- Activiti
http://www.kafeitu.me/activiti/2012/05/26/kft-activiti-demo.html
1.6k stars 1.38k forks source link

当前master上的代码,Maven编译时报缺少依赖 #48

Closed novawoo closed 8 years ago

novawoo commented 8 years ago

当前master上的代码,Maven编译时报缺少依赖,根据提示,分别缺: org.springframework.data.repository.CrudRepository; org.activiti.image.ProcessDiagramGenerator;

novawoo commented 8 years ago

补充依赖:

<dependency>
        <groupId>org.springframework.data</groupId>
        <artifactId>spring-data-commons</artifactId>
        <version>${spring-data-jpa.version}</version>
</dependency>
<dependency>
        <groupId>org.activiti</groupId>
        <artifactId>activiti-image-generator</artifactId>
        <version>${activiti.version}</version>
</dependency>

补充完依赖后,启动报:

org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from file [/Users/nova/Code/IdeaProjects/kft-activiti-demo/target/kft-activiti-demo/WEB-INF/classes/beans/beans-orm.xml]; nested exception is java.lang.NoSuchMethodError: org.springframework.data.jpa.repository.config.JpaRepositoryConfigExtension.registerIfNotAlreadyRegistered(Lorg/springframework/beans/factory/support/AbstractBeanDefinition;Lorg/springframework/beans/factory/support/BeanDefinitionRegistry;Ljava/lang/String;Ljava/lang/Object;)
novawoo commented 8 years ago

这个问题是项目中缺少依赖,需要修改的内容已向作者提交pull request ,可以关注版本更新。