第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

關(guān)于pom.xml內(nèi)容的疑問(wèn)

<build>
????<directory>${project.basedir}/target</directory>
????<outputDirectory>${project.build.directory}/classes</outputDirectory>
????<finalName>${project.artifactId}-${project.version}</finalName>
????<testOutputDirectory>${project.build.directory}/test-classes</testOutputDirectory>
????<sourceDirectory>${project.basedir}/src/main/java</sourceDirectory>
????<scriptSourceDirectory>${project.basedir}/src/main/scripts</scriptSourceDirectory>
????<testSourceDirectory>${project.basedir}/src/test/java</testSourceDirectory>
????<resources>
??????<resource>
????????<directory>${project.basedir}/src/main/resources</directory>
??????</resource>
????</resources>
????<testResources>
??????<testResource>
????????<directory>${project.basedir}/src/test/resources</directory>
??????</testResource>
????</testResources>

我注意到有個(gè)${project.basedir},等等,這個(gè)值是在哪定義的呢,整個(gè)pom.xml中并沒(méi)有<properties>的定義,請(qǐng)問(wèn)我如何知道project.basedir的值在哪個(gè)文件定義的

正在回答

2 回答

你好,這是pom的預(yù)定義的屬性, 對(duì)于超級(jí)pom中的這些屬性的出處要去研究maven的源碼了

0 回復(fù) 有任何疑惑可以回復(fù)我~

<project> 是 pom.xml 的根節(jié)點(diǎn), project.basedir 就是根節(jié)點(diǎn)的下級(jí)節(jié)點(diǎn), 缺少配置的話(huà)就要自己定義一個(gè). 這塊配置就是定義自己的項(xiàng)目目錄結(jié)構(gòu)

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消
項(xiàng)目管理利器——maven
  • 參與學(xué)習(xí)       173034    人
  • 解答問(wèn)題       779    個(gè)

使用maven來(lái)構(gòu)建和管理Java項(xiàng)目,從環(huán)境配置,到maven核心知識(shí)

進(jìn)入課程

關(guān)于pom.xml內(nèi)容的疑問(wèn)

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢(xún)優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)