Failed to collect dependencies at com.microsoft.sqlserver:sqljdbc4:jar:4.0: Failed to read artifact descriptor for com.micrsoft.sqlserver:sqljdbc4:jar
師兄建議參照解決方案︰
- 在項目右鍵︰Run As -> Run Configurations
- 新增一個新的Maven build
- Goals內填『install:install-file』
- 然後切換到JRE填參數,注意的是JDK1.7選sqljdbc41.jar,JDK1.8選sqljdbc42.jar
- -Dfile=sqljdbc41.jar -DgroupId=com.microsoft.sqlserver -DartifactId=sqljdbc4 -Dversion=4.0 -Dpackaging=jar
- 然後Build就可以了
No comments:
Post a Comment