maven(二):学习笔记

Maven is about the application of patterns in order to achieve an infrastructure which displays the characteristics of visibility, reusability, maintainability, and comprehensibility


multiple individuals will work productively together on a project

On a very high level all projects need to be built, tested, packaged, documented and deployed. Of course there is infinite variation in each of the above mentioned steps, but this variation still occurs within the confines of a well defined path

provide people with a set of patterns

为什么使用maven?

build工具, 无论语言或工具

多人合作项目,shared remote repository,


mvn site报错:与部分插件版本兼容问题

https://cwiki.apache.org/confluence/display/MAVEN/AetherClassNotFound 

如何更新maven plugin

maven工作原理-使用时下载,指定版本号

mvn org.apache.maven.plugins:maven-site-plugin:3.3: site

如何查找对应插件

名字:Resolving groupId and artifactId for a Plugin           
 repository metadata           C:\Documents and Settings\Administrator\.m2\repository\org\apache\maven\plugins\maven-metadata-central.xml
版本号: project's pom或plugin-registry.xml(不再存在

如何设置命令默认版本号

project's pom中添加如下代码:

<build>
	<plugins>
		<plugin>
			<artifactId>maven-site-plugin</artifactId>
			<version>3.3</version>
		</plugin>
	</plugins>
 </build>
注意:格式对齐,否则可能会导致元素不识别

总是自动下载3.2版本?


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值