如何解决IDEA对使用了依赖包的非Maven项目打jar包的问题

直接说解决办法:

    <dependency>
            <groupId>cn.hsaf.common</groupId>
            <scope>system</scope>
            <artifactId>common</artifactId>
            <version>1.0.0</version>
            <systemPath>${pom.basedir}/src/main/resources/lib/hsaf-common-1.0.0-SNAPSHOT.jar</systemPath>
        </dependency>
        <dependency>
            <groupId>org.bouncycastle</groupId>
            <scope>system</scope>
            <artifactId>bouncycastle</artifactId>
            <version>1.0.0</version>
            <systemPath>${pom.basedir}/src/main/resources/lib/bcprov-jdk15on-1.60.jar</systemPath>
        </dependency>
    <configuration>
             <includeSystemScope>true</includeSystemScope>
    </configuration>

 

posted @ 2023-03-17 09:51  流氓大菠萝  阅读(242)  评论(0编辑  收藏  举报