mongock失败:noclassdeffounderror org/springframework/data/mongodb/mongodatabasefactory

xurqigkl  于 2021-07-26  发布在  Java
关注(0)|答案(0)|浏览(334)

我在spring boot应用程序中使用以下pom:

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.2.13.RELEASE</version>
    <relativePath /><!-- resolve parent from repository, refer to http://www.tomitribe.com/blog/2016/06/i-do-not-hate-apache-maven/ -->
  </parent>

<dependencies>
        <dependency>
            <groupId>com.github.cloudyrock.mongock</groupId>
            <artifactId>mongock-bom</artifactId>
            <version>4.3.8</version>
            <type>pom</type>
        </dependency>
        <dependency>
            <groupId>com.github.cloudyrock.mongock</groupId>
            <artifactId>mongock-spring-v5</artifactId>
            <version>4.3.8</version>
        </dependency>
        <dependency>
            <groupId>com.github.cloudyrock.mongock</groupId>
            <artifactId>mongodb-springdata-v3-driver</artifactId>
            <version>4.3.8</version>
        </dependency>
</dependencies>

我运行应用程序的地方 java -jar my-app.jar 我得到以下错误:

NoClassDefFoundError org/springframework/data/mongodb/MongoDatabaseFactory

但是当我用 -noverify 似乎一切都好
拜托,有人能帮我吗?

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题