执行Maven Install打包的时候,出现以下错误信息:

[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project pro.test:pro-test:0.0.1-SNAPSHOT (F:\Workspaces\pro-test\pom.xml) has 1 error
[ERROR]     Malformed POM F:\Workspaces\pro-test\pom.xml: Unrecognised tag: 'encoding' (position: START_TAG seen ...</version>\r\n\t\t\t\t<encoding>... @12:15)  @ F:\Workspaces\pro-test\pom.xml, line 12, column 15 -> [Help 2]
[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/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/ModelParseException

经过检查才发现原来是<encoding>utf-8</encoding>标签放错位置了,应该放在<configuration>标签里面:

            <plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-compiler-plugin</artifactId><version>3.0</version><configuration><encoding>utf-8</encoding><source>1.8</source><target>1.8</target></configuration></plugin>

Unrecognised tag: #39;encoding#39; (position: START_TAG seen ...lt;/versiongt;\r\n\t\t\t\tlt;en...相关推荐

  1. mvnw命令启动spring boot项目时出现警告Unrecognised tag: ‘blocked’ (position: START_TAG seen …\r\n …

    文章目录 1.现象 2.解决办法 3.延伸知识(必看) 1.现象 在命令行使用如下命令启动一个spring boot项目时出现如下警告: [WARNING] Some problems were en ...

  2. 配置maven镜像不起作用 Unrecognised tag: ‘mirror‘ (position: START_TAG seen ...</mirror>

    遇到问题 在idea中更新maven依赖,看到下载地址是默认的中央仓库,不是自定义配置的阿里云镜像. 检查配置 idea配置 File -> Settings -> Build,Execu ...

  3. 【异常】Maven提示异常XmlPullParserException: Unrecognised tag: ‘exclusion‘ (position: START_TAG seen

    一.异常说明 Jenkins构建出错了,具体异常如下 Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException: Unre ...

  4. Duplicated tag: ‘properties‘ (position: START_TAG seen ...<!--\u7248\u672c\u53f7\u7edf\u4e00 -->\n

    Duplicated tag: 'properties' (position: START_TAG seen - \n - @17:17)

  5. Unrecognised tag: 'build'

    [ERROR] [ERROR] Some problems were encountered while processing the POMs: [ERROR] Malformed POM H:\e ...

  6. maven:only whitespace content allowed before start tag and not \u0 (position: START_DOCUMENT

    记录maven打包时,电脑断电后,再次打包失败,出现: only whitespace content allowed before start tag and not \u0 (position: ...

  7. only whitespace content allowed before start tag and not \u0 (position: START_DOCUMENT

    电脑蓝屏关机,重启idea报错only whitespace content allowed before start tag and not \u0 (position: START_DOCUMEN ...

  8. 盛派微信 The ‘hr‘ start tag on line 6 position 2 does not match the end tag of ‘body’ 错误解决方案

    .NET Core微信支付退款 Senparc.Weixin.TenPay V3接口 The 'hr' start tag on line 6 position 2 does not match th ...

  9. 报错:TEXT must be immediately followed by END_TAG and not START_TAG (position: START_TAG seen ...<depe

    学习spring中,添加spring依赖时,遇到报错 TEXT must be immediately followed by END_TAG and not START_TAG (position: ...

最新文章

  1. sqlserver 替换字符串中的数字_VBA实用小程序60: 替换图表SERIES公式中的字符串...
  2. css3动画之——动态的省略号
  3. mybatis高级(3)_延迟加载_深度延迟_一级缓存_二级缓存
  4. STM32F4 HAL库开发 -- NVIC 中断优先级管理
  5. 稀疏多项式的运算用链表_用漫画告诉你—什么是HashMap?
  6. 如何让你用 Python 年薪 40 万?答案早就写到 JD 上了
  7. inline内联的用法与作用
  8. Linux 从源码编译安装 OpenSSL
  9. 查找标题已知的窗口句柄,遍历窗口控件句柄
  10. 分布式队列编程:模型、实战
  11. app每秒并发数_性能测试连载 (38) jmeter 线程数与性能测试的负载模式
  12. java excel 兼容问题_java--POI解析excel兼容性问题
  13. Vmware 中Linux中NAT网络异常解决方法
  14. 西安外国语大学计算机基础,西安外国语大学教务处.PDF
  15. 无人机送货新方式?只为解决“最后一公里”
  16. 每月读书 2012-06
  17. httpclient 下载文件
  18. python把excel填充到网页_Python获取某网页数据并写入excel
  19. 双十一、不如买一本书吧
  20. 用了这么多年百度搜索, 今天才发现加上双引号搜索结果这么准

热门文章

  1. web.xml配置错误页面,及输出错误信息
  2. CEO换人、IPO延期,比特大陆艰难转型路漫漫
  3. 开源 java CMS - FreeCMS2.8 数据对象 question
  4. 麦司机博客项目技术选型-Java后端
  5. Microsoft宣布发布GA版Azure Event Grid
  6. Kafka 安装及快速入门
  7. 追查连接mysql的客户端
  8. mysql主从复制的简单配置
  9. WP8.1学习系列(第五章)——中心控件Hub或透视控件Pivot交互UX
  10. WINDOWS XP 开始→运行→命令 集锦