Summary of problems encountered during the use of Idea (updated at will)

Error: Maven failed to pull the package from the mirror, and an error was reported. ***.part.lock (系统找不到指定的路径。)
Problem: The local maven repository is set in a folder where the software does not have permission, such as C:\Program Files
Solution: Change the warehouse location or increase the folder authorization to everyone


Problem: Add the third-party dependency to the local maven
solution: mvn install:install-file -Dfile=C:\Users\sxhex\apache-maven-3.6.3\repository\org\javassist\jna.jar -DgroupId=com.dahua -DartifactId=jna -Dversion=1.0 -Dpackaging=jar -DgeneratePom=true
format:mvn install:install-file -Dfile=jar包所在路径 -DgroupId=pom.xml中的groupId-DartifactId=pom.xml中的artifactId -Dversion=pom.xml中的version -Dpackaging=jar -DgeneratePom=true


To Be Continued…

Guess you like

Origin blog.csdn.net/sxhexin/article/details/106608931