【问题标题】:installing microsoft sqljdbc driver with maven使用 maven 安装 microsoft sqljdbc 驱动程序
【发布时间】:2015-02-18 04:27:25
【问题描述】:

我有一个 maven 项目,我需要向 Microsoft sqljdbc 驱动程序添加依赖项。

我已按照本文here中显示的步骤进行操作

但是当我尝试做第一步时,我得到以下错误

[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (C:\soft\sqljdbc_4.1\
enu). Please verify you invoked Maven from the correct directory. ->   [Help 1]

【问题讨论】:

  • 检查是否有pom.xml

标签: java maven


【解决方案1】:

我找到了问题的解决方案。我们需要像这样将所有参数都包裹在双重配额""

mvn install:install-file "-DgroupId=com.microsoft.sqlserver" "-DartifactId=sqljdbc41"  "-Dversion=4.1"  "-Dpackaging=jar" "-Dfile=sqljdbc41.jar" 

那么只有maven会安装没有pom文件的文件

this question的回答对我有帮助

【讨论】:

    猜你喜欢
    • 2015-06-17
    • 1970-01-01
    • 2022-09-24
    • 2011-01-28
    • 2014-12-30
    • 1970-01-01
    • 2015-11-21
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多