zoukankan      html  css  js  c++  java
  • Mybatis3源码加注释后后编译问题

    参考: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:myWorkmybatismybatis-3 argetpdfsite.tmpxdocgetting-started.xml: Error parsing the model: only whitespace content allowed before start tag and not ufeff (position: COMMENT seen ...g permissions and limitations under the License. --> 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>
    

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

  • 相关阅读:
    PPT2010中插入页码并且改变页码的位置
    Axis2发布webservice(2)--利用eclipse的axis2插件打包为arr发布
    Axis2发布webservice(1)--0配置发布
    权限设计
    网易2016实习生前端笔试题部分总结
    浅谈HTML文档模式
    从原型链看DOM--Node类型
    JavaScript之Function函数深入总结
    javascript之面向对象程序设计(对象和继承)
    javascript之基本包装类型(Boolean,Number,String)基础篇
  • 原文地址:https://www.cnblogs.com/hbuuid/p/12866465.html
Copyright © 2011-2022 走看看