maven配置详解(纯配置)

2017-11-06  本文已影响0人  与我常在1053

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。然而,如果你只是想把资源放到源码目录结构里,就不需要该配置。-->

......

......

能够在某些特定的环境中自动使用某些特定的值;这些环境通过activation元素指定。activation元素并不是激活profile的唯一方式。-->

Windows XP

Windows

x86

5.1.2600

字段是空的,那么存在属性名称字段就会激活profile,否则按区分大小写方式匹配属性值字段-->

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:在执行时需要使用

- test:用于test任务时使用

- system:需要外在提供相应的元素。通过systemPath来取得

- systemPath:仅用于范围为system。提供相应的路径

- optional:当项目自身被依赖时,标注依赖是否传递。用于连续依赖时使用-->

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(构件移到了新的位置),这里列出构件的重定位信息。-->

����]�E

上一篇下一篇

猜你喜欢

热点阅读