国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

‘dependencies.dependency.systemPath‘ for *:*:jar must specify an absolute path but is

這篇具有很好參考價值的文章主要介紹了‘dependencies.dependency.systemPath‘ for *:*:jar must specify an absolute path but is。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點(diǎn)擊"舉報違法"按鈕提交疑問。

下面是一張模塊與子模塊的目錄圖

‘dependencies.dependency.systemPath‘ for *:*:jar must specify an absolute path but is

?kingdee\kingdee-biz\pom.xml依賴本地lib/k3cloud-webapi-sdk8.0.4.jar,配置如下:

        <!-- 金蝶云 api SDK包 -->
        <dependency>
            <groupId>com.kingdee</groupId>
            <artifactId>k3cloud-webapi</artifactId>
            <version>sdk8.0.4</version>
            <scope>system</scope>
            <systemPath>${project.parent.basedir}/lib/k3cloud-webapi-sdk8.0.4.jar</systemPath>
        </dependency>

pom.xml報錯提示:

'dependencies.dependency.systemPath' for kingdee:kingdee:jar must specify an absolute path but is ${project.parent.basedir}/lib/k3cloud-webapi-sdk8.0.4.jar

意思是說:systemPath?只認(rèn)識絕對路徑,不認(rèn)識相對路徑。project.parent.basedir相對的是當(dāng)前pom.xml上級。

現(xiàn)在如果把${project.parent.basedir}?換成${project.basedir},且/lib移到與當(dāng)前pom.xml同一級的目錄。錯誤不見了。

為什么會這樣,如果我們打開kingdee-biz.iml就會發(fā)現(xiàn)兩種變量在配置上的差別

1、使用${project.parent.basedir}變量時,有兩種情況發(fā)生。

?情況一、如下圖變量沒有被轉(zhuǎn)換,路徑是無法識別的路徑。會出現(xiàn)文中標(biāo)題提示的錯誤

‘dependencies.dependency.systemPath‘ for *:*:jar must specify an absolute path but is

?情況二、變量已經(jīng)轉(zhuǎn)換為"$MODULE_DIR$/.."。相對當(dāng)前目錄通過../找上一級目錄,也就是用的是相對路徑。雖然pom.xml不會提示文中標(biāo)題的錯誤,但當(dāng)執(zhí)行mvn命令時會出現(xiàn)“Process terminated”錯誤。

‘dependencies.dependency.systemPath‘ for *:*:jar must specify an absolute path but is

?2、使用${project.basedir}時,url是使用的是絕對目錄。pom.xml不但不會提示文中標(biāo)題的錯誤,且執(zhí)行mvn命令時也不會出現(xiàn)“Process terminated”錯誤。‘dependencies.dependency.systemPath‘ for *:*:jar must specify an absolute path but is

?總結(jié):如果要使用systemPath?引用本地jar包,有三種方法:

1、寫死絕對路徑,如D://lib/k3cloud-webapi-sdk8.0.4.jar。

2、在settings.xml中配置變量,配置好絕對路徑,然后使用這個變量。

3、如文中把lib/k3cloud-webapi-sdk8.0.4.jar與當(dāng)前pom.xml放在同一級,然后用${project.basedir}/lib/k3cloud-webapi-sdk8.0.4.jar。

方法1、2的好處是jar包可以集中存放,不好的是換個環(huán)境可能需要換路徑。

方法3的好處是可以用相對路徑,不受環(huán)境變化影響。不好的是jar包不能集中存放。文章來源地址http://www.zghlxwxcb.cn/news/detail-480614.html

到了這里,關(guān)于‘dependencies.dependency.systemPath‘ for *:*:jar must specify an absolute path but is的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請點(diǎn)擊違法舉報進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • 已解決ValueError: Excel file format cannot be determined, you must specify an engine manually.

    已解決ValueError: Excel file format cannot be determined, you must specify an engine manually.

    已解決ValueError: Excel file format cannot be determined, you must specify an engine manually. 粉絲群里面的一個小伙伴遇到問題跑來私信我,想用Pandas讀取Excel,但是發(fā)生了報錯(當(dāng)時他心里瞬間涼了一大截,跑來找我求助,然后順利幫助他解決了,順便記錄一下希望可以幫助到更多遇到這個

    2024年02月02日
    瀏覽(25)
  • Understanding Dependency Injection for angular

    Understanding Dependency Injection for angular

    Angular https://angular.io/guide/dependency-injection Denpendency Injection,? or DI, is one of fundamental concepts for angular, DI is writed by angular framework and allows classes with? Angular decorators,? such as Components, directives, Piples and Injectables , to configure dependencies that they need. ?Two main roles exists in DI system: dependency

    2024年02月10日
    瀏覽(43)
  • The minCompileSdk (33) specified in a dependency‘s AAR metadata (META-INF/com/android/build/gradle/a

    The minCompileSdk (33) specified in a dependency‘s AAR metadata (META-INF/com/android/build/gradle/a

    android studio 編譯的報錯提示: 報錯信息中很關(guān)鍵的三個: 先看一下第一個報錯信息: 意思是 CompileSdk 最小必須是 33 ,并且 recyclerview版本1.3.0-beta02 ,為什么和我的 CompileSdk 29 和 recyclerview版本1.1.0 不一樣呢? 我的 recyclerview版本1.1.0 怎么查看:打開看看布局中 androidx.recycler

    2024年02月16日
    瀏覽(29)
  • Could not resolve dependencies for project

    Could not resolve dependencies for project

    maven 打包Could not resolve dependencies for project和無效的目標(biāo)發(fā)行版: 1.8 1.maven 打包Could not resolve dependencies for project 最近項(xiàng)目上使用的是idea ide的多模塊話,需要模塊之間的依賴,比如說系統(tǒng)管理模塊依賴授權(quán)模塊進(jìn)行認(rèn)證和授權(quán),而認(rèn)證授權(quán)模塊需要依賴系統(tǒng)管理模塊進(jìn)行,然后

    2024年02月08日
    瀏覽(32)
  • 解決:Unresolved dependency: ‘org.springframework:spring-context:jar:6.0.0-M2‘

    解決:Unresolved dependency: ‘org.springframework:spring-context:jar:6.0.0-M2‘

    首先檢查IDEA的Maven設(shè)置,無問題發(fā)現(xiàn) 網(wǎng)上查找方法,未果。 后查看pom.xml文件,發(fā)現(xiàn)此依賴寫了兩次,兩次不同版本,且第二個版本的version較低(被自己蠢到),后注釋掉第一個,更新第二個版本,解決。 報錯如下: 更新:點(diǎn)擊藍(lán)色字體 \\\"Upgrade \\\'org.springframework:spring-context

    2024年02月16日
    瀏覽(24)
  • 【Python】Pandas Excel file format cannot be determined, you must specify an engine manually.報錯【已解決】

    【Python】Pandas Excel file format cannot be determined, you must specify an engine manually.報錯【已解決】

    根據(jù)Python官網(wǎng),Python3.7還支持WIN7。 項(xiàng)目對應(yīng)的requirements.txt為: 項(xiàng)目對應(yīng)的nuitka命令為: 報錯主要是PySide6與matplotlib之間接口兼容性的問題。報錯位置代碼 根據(jù)gpt, 根據(jù)matplotlib官方issues,解決方案是, mpl 升級到 =3.6.2 或?qū)?pyside 降級到 6.4.0 Python3.7下matplotlib,最高支持3.5,

    2024年02月12日
    瀏覽(22)
  • UNITY報錯:An error occurred while resolving packages: Project has invalid dependencies: com.unit

    UNITY報錯:An error occurred while resolving packages: Project has invalid dependencies: com.unit

    打開unity出現(xiàn)了這樣的報錯: An error occurred while resolving packages: ? Project has invalid dependencies: ? ? com.unity.render-pipelines.universal: Package [com.unity.render-pipelines.universal@12.1.2] cannot be found 這里在同站其他博主提供的方法中得到靈感,現(xiàn)已解決。原博主給出的解決思路是項(xiàng)目具有無效的

    2024年02月03日
    瀏覽(23)
  • Angular(二) Understanding Dependency Injection for angular

    Angular(二) Understanding Dependency Injection for angular

    Angular https://angular.io/guide/dependency-injection Denpendency Injection,? or DI, is one of fundamental concepts for angular, DI is writed by angular framework and allows classes with? Angular decorators,? such as Components, directives, Piples and Injectables , to configure dependencies that they need. ?Two main roles exists in DI system: dependency

    2024年02月09日
    瀏覽(46)
  • 打開項(xiàng)目出現(xiàn)報錯:An error occurred while resolving packages: Project has invalid dependencies: com.unity.

    打開項(xiàng)目出現(xiàn)報錯:An error occurred while resolving packages: Project has invalid dependencies: com.unity.

    最近做unity項(xiàng)目,git pull別人的項(xiàng)目,打開后出現(xiàn)這樣的報錯: An error occurred while resolving packages: Project has invalid dependencies: com.unity.visualeffectgraph: Package [com.unity.visualeffectgraph@12.1.10] cannot be found A re-import of the project may be required to fix the issue or a manual modification of ... 翻譯是: 解析

    2024年02月12日
    瀏覽(100)
  • Unresolved dependency: ‘org.mybatis.spring.boot:mybatis-spring-boot-starter:jar:xxx‘

    Unresolved dependency: ‘org.mybatis.spring.boot:mybatis-spring-boot-starter:jar:xxx‘

    pom.xml文件的依賴直接爆紅的原因時, 本地Maven倉庫中沒有 或者 maven倉庫中存在的版本與導(dǎo)入的版本號不相符 找到本地maven倉庫,刪除你要導(dǎo)入的依賴包,重新下載 找到本地maven倉庫,對應(yīng)的版本號添加 maven倉庫的地址 導(dǎo)入本地倉庫已經(jīng)存在的版本號

    2024年01月25日
    瀏覽(17)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包