Intellij maven imports have broken classpath

后端 未结 7 2219
情话喂你
情话喂你 2021-02-14 01:50

I\'m using Intellij 13, I\'ve been using Maven quite happily for awhile now to manage the JAR dependencies.

But the last few I\'ve imported are causing a broken classpat

相关标签:
7条回答
  • 2021-02-14 02:23

    In my case I was having this exact problem because I was trying to import a local jar-with-dependencies without classifier. To solve this I just needed to add <classifier>jar-with-dependencies</classifier> to the maven dependency, e.g.:

        <dependency>
            <groupId>com.my.group</groupId>
            <artifactId>myartifact</artifactId>
            <version>1.0</version>
            <classifier>jar-with-dependencies</classifier>
        </dependency>
    

    Hope this helps someone.

    0 讨论(0)
提交回复
热议问题