plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-site-plugin 命令时出现 java.lang.NoClassDefFoundError: org/apache/maven/doxia/siterenderer/DocumentContent 的问题, 这是由于 maven-site-plugin
生命周期阶段 插件目标 pre-clean clean maven-clean-plugin:clean post-clean site如下: 生命周期阶段 插件目标 pre-site site maven-site-plugin :site post-site site-deploy maven-site-plugin:deploy 最麻烦的就是最核心的default 生命周期阶段 插件目标 process-resources
clean maven-clean-plugin:clean post-clean site如下: 生命周期阶段 插件目标 pre-site site maven-site-plugin :site post-site site-deploy maven-site-plugin:deploy 最麻烦的就是最核心的default 生命周期阶段 插件目标 process-resources
org.apache.maven.plugins:maven-deploy-plugin:jar:2.5 Downloading: [http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-site-plugin /2.0.1/maven-site-plugin-2.0.1.pom](http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-site-plugin maven-site-plugin-2.0.1.pom) [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-site-plugin :2.0.1: Plugin org.apache.maven.plugins:maven-site-plugin:2.0.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-site-plugin:jar:2.0.1
org.apache.maven.plugins:maven-deploy-plugin:jar:2.5 Downloading: [http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-site-plugin /2.0.1/maven-site-plugin-2.0.1.pom](http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-site-plugin maven-site-plugin-2.0.1.pom) [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-site-plugin :2.0.1: Plugin org.apache.maven.plugins:maven-site-plugin:2.0.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-site-plugin:jar:2.0.1
artifactId> <version>3.1.0</version> </plugin> <plugin> <artifactId>maven-site-plugin <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-site-plugin
org.apache.maven.plugins:maven-deploy-plugin:2.7 Cannot resolve plugin org.apache.maven.plugins:maven-site-plugin
/ref/current/maven-core/lifecycles.html#site_Lifecycle --> <plugin> <artifactId>maven-site-plugin
phase> <phase>site-deploy</phase> </phases> <default-phases> <site> org.apache.maven.plugins:maven-site-plugin :3.3:site </site> <site-deploy> org.apache.maven.plugins:maven-site-plugin:3.3:deploy </site-deploy
site 生命周期 site 生命周期的阶段 插件的目标 pre-site site maven-site-plugin:site post-site site-deploy maven-site-plugin:deploy 第八章 聚合与继承 约定 一般来说,一个项目的子模块都应该使用相同的groupId,如果他们一起开发和发布,还应该使用同样的version
artifactId> <version>2.3</version> </plugin> <plugin> <artifactId>maven-site-plugin
Bindings、Plugin Bindings for default Lifecycle Reference. site生命周期阶段绑定 生命周期阶段 插件目标 pre-site - site maven-site-plugin :site post-site - site-deploy maven-site-plugin:deploy 自定义绑定 除了内置绑定以外, 用户还能够自定义将某个插件目标绑定到生命周期的某个阶段上.
test | | install | maven-install-plugin | install | | deploy | maven-deploy-plugin | deploy | | site | maven-site-plugin | site | | site-deploy | maven-site-plugin | deploy | 这里出现了maven内部运行原理解析中没有提到的几个parse:[clean/site/site-deploy
maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle --> <plugin> <artifactId>maven-site-plugin
maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle --> <plugin> <artifactId>maven-site-plugin
>2.8.2</version> </plugin> <plugin> <artifactId>maven-site-plugin
>2.8.2</version> </plugin> <plugin> <artifactId>maven-site-plugin
maven-site-plugin:生成项目站点。maven-source-plugin:生成源代码的 JAR 包。maven-javadoc-plugin:生成 Javadoc 文档。
maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle --> <plugin> <artifactId>maven-site-plugin
maven-deploy-plugin/ Site Plugin Apache Maven Site Plugin – Introduction http://maven.apache.org/plugins/maven-site-plugin