pom.xml配置好依赖后maven没有下载jar包的解决方法

</dependency>
        <dependency>
            <groupId>com.google.zxing</groupId>
            <artifactId>javase</artifactId>
            <version>3.3.0</version>
        </dependency>
    </dependencies>

使用工具:idea

如图,在pom.xml配置好依赖后maven没有下载jar包,最后原因是pom.xml没有添加至maven工程。

解决方法:在pom.xml中右键,add as maven project,解决。


版权声明:本文为weixin_45818887原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。