参考:https://mp.weixin.qq.com/s/v0ihaPsuyGufdc_ImEqX8A给mybatis3源码加注释并编译源代码

编译命令:

mvn clean

mvn install -DskipTests=true -Dmaven.test.skip=true -Dlicense.skip=true

自己编译Mybatis3源码的时候报错如下:

[INFO] --- maven-pdf-plugin:1.4:pdf (pdf) @ mybatis ---
[INFO] Skipped report generation.
[warn] No document root specified, local links will not be resolved correctly!
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 32.131 s
[INFO] Finished at: 2020-05-11T00:37:02+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-pdf-plugin:1.4:pdf (pdf) on project mybatis: Error during document generation: Error parsing I:\myWork\mybatis\mybatis-3\target\pdf\site.tmp\xdoc\getting-started.xml: Error parsing the model: only whitespace content allowed before start tag and not \ufeff (position: COMMENT seen ...g permissions and\r\n limitations under the License.\r\n\r\n-->\r\n\ufeff... @18:2) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

解决办法:

将mybatis/pom.xml中以下依赖注释掉

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pdf-plugin</artifactId>
</plugin>

将mybatis-parent/pom.xml中以下依赖注释掉

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pdf-plugin</artifactId>
<version>${pdf.version}</version>
<executions>
<execution>
<id>pdf</id>
<phase>prepare-package</phase>
<goals>
<goal>pdf</goal>
</goals>
<configuration>
<includeReports>false</includeReports>
</configuration>
</execution>
</executions>
</plugin>

注释掉上面依赖,重新编译即可。

最新文章

  1. APP接口自动化测试JAVA+TestNG(一)之框架环境搭建
  2. 十分钟让你的javascript登峰造极
  3. Python&gt;&gt;&gt;The Very First Step
  4. xmlns=&quot;http://schemas.xmlsoap.org/wsdl/&quot;,这是什么意思,我只知道:xmlns:xx=....,
  5. 常用 NHibernate.Criterion
  6. Angular - - ngInclude、ngTransclude
  7. php curl 的几个实例
  8. python 内存数据库与远程服务
  9. SparkCore | Rdd| 广播变量和累加器
  10. Oracle中number(5,-2)数据类型
  11. Numpy 线性代数
  12. Java中线程的同步问题
  13. 不可变对象和Biulder模式(面试问题)
  14. 关于QT Graphics View开启OpenGL渲染后复选框、微调框等无法正常显示的问题
  15. Java工程师学习指南 完结篇
  16. tkinter中frame布局控件
  17. mysqlbinlog命令介绍及实战
  18. invalid conversion from &#39;void* (*)()&#39; to &#39;void* (*)(void*)&#39;
  19. Dsyy的第一篇博文~
  20. 如何从svn下载以前的项目版本

热门文章

  1. whistle安装
  2. nginx 配置文件(支持thnkphp3.2~5)
  3. 解除你学习Python自动化测试框架的所有疑惑,开启学习直通车
  4. MFC读写.txt文件时进度条显示实时进度
  5. 电商管理后台 API 接口文档
  6. Vite插件开发纪实:vite-plugin-monitor(下)
  7. Zookeeper原理系列-Paxos协议的原理和Zookeeper中的应用分析
  8. 重新整理 .net core 周边阅读篇————AspNetCoreRateLimit 之规则[二]
  9. Java中的原子操作
  10. Ubuntu20.04安装 maven并配置阿里源