maven配置詳解(純配置)

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://maven.apache.org/POM/4.0.0http://maven.apache.org/maven-v4_0_0.xsd">







4.0.0


cn.erhuowang


erhuowang-maven2


war


1.0-SNAPSHOT


erhuo-maven


http://erhuowang.cn


A maven project to studymaven.





erhuowang


http://erhuowang.cn

















Demo


chaibozhou@163.com


chaibozhou@163.com


chaibozhou@163.com


chaibozhou@163.com




HELLO WORLD


chaimm


chaibozhou@163.com



ProjectManager

Architect


demo


http://erhuowang.cn


No


-5






Apache 2


http://www.baidu.com/erhuwoang/LICENSE-2.0.txt


repo,可以從Maven庫下載

manual, 用戶必須手動下載和安裝依賴-->

repo


A business-friendly OSS license



scm:svn:http://svn.baidu.com/banseon/maven/banseon/banseon-maven2-trunk(dao-trunk)


scm:svn:http://svn.baidu.com/banseon/maven/banseon/dao-trunk



http://svn.baidu.com/banseon



demo


http://www.erhuowang.cn
















/messages。然而,如果你只是想把資源放到源碼目錄結(jié)構(gòu)里,就不需要該配置。-->


























......






......





能夠在某些特定的環(huán)境中自動使用某些特定的值;這些環(huán)境通過activation元素指定。activation元素并不是激活profile的唯一方式。-->





Windows XP


Windows


x86


5.1.2600


字段是空的,那么存在屬性名稱字段就會激活profile,否則按區(qū)分大小寫方式匹配屬性值字段-->


mavenVersion


2.0.3


profile。另一方面,exists則會檢查文件是否存在,如果存在則激活profile。-->


/usr/local/hudson/hudson-home/jobs/maven-guide-zh-to-production/workspace/


/usr/local/hudson/hudson-home/jobs/maven-guide-zh-to-production/workspace/




......



......








......



......



......


......











banseon-repository-proxy


banseon-repository-proxy


http://192.168.1.169:9999/repository/


default



......



org.apache.maven


maven-artifact


3.8.1


jar



- compile:默認范圍,用于編譯

- provided:類似于編譯,但支持你期待jdk或者容器提供,類似于classpath

- runtime:在執(zhí)行時需要使用

- test:用于test任務(wù)時使用

- system:需要外在提供相應(yīng)的元素。通過systemPath來取得

- systemPath:僅用于范圍為system。提供相應(yīng)的路徑

- optional:當項目自身被依賴時,標注依賴是否傳遞。用于連續(xù)依賴時使用-->

test



spring-core

org.springframework


true




















......




banseon-maven2

banseon maven2

file://${basedir}/target/deploy


banseon-maven2

Banseon-maven2 Snapshot Repository

scp://svn.baidu.com/banseon:/usr/local/maven-snapshot



banseon-site


business api website


scp://svn.baidu.com/banseon:/var/www/localhost/banseon-web



ID(構(gòu)件移到了新的位置),這里列出構(gòu)件的重定位信息。-->







????]?E

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容