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版本?