eclipse maven install unmappable chacraters

2014-04-23 10:28:34 +08:00
 qq2511296
[INFO] Scanning for projects...


[INFO]


[INFO] ------------------------------------------------------------------------


[INFO] Building xxxx 1.0


[INFO] ------------------------------------------------------------------------


[WARNING] The POM for com.alibaba:druid:jar:0.2.26 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details


[INFO]


[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ xxxx ---


[INFO] Using 'UTF-8' encoding to copy filtered resources.


[INFO] Copying 22 resources


[INFO] Copying 8 resources


[INFO]


[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ xxxx ---


[INFO] Nothing to compile - all classes are up to date


[INFO]


[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ xxxx ---


[INFO] Using 'UTF-8' encoding to copy filtered resources.


[INFO] Copying 0 resource


[INFO]


[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ xxxx ---


[INFO] Nothing to compile - all classes are up to date


[INFO]


[INFO] --- maven-surefire-plugin:2.16:test (default-test) @ xxxx ---


[INFO] Tests are skipped.


[INFO]


[INFO] --- maven-war-plugin:2.2:war (default-war) @ xxxx ---


[INFO] Packaging webapp


[INFO] Assembling web app [xxxx] in [/Users/Singer/work/workspace/eclipse-kepler/sun/xxxx/target/ROOT]


[INFO] Processing war project


[INFO] Copying webapp resources [/Users/Singer/work/workspace/eclipse-kepler/sun/xxxx/src/main/webapp]


[INFO] Webapp assembled in [485 msecs]


[INFO] ------------------------------------------------------------------------


[INFO] BUILD FAILURE


[INFO] ------------------------------------------------------------------------


[INFO] Total time: 1.718s


[INFO] Finished at: Wed Apr 23 09:55:39 CST 2014


[INFO] Final Memory: 11M/310M


[INFO] ------------------------------------------------------------------------


[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project xxxx: Execution default-war of goal org.apache.maven.plugins:maven-war-plugin:2.2:war
failed: java.lang.reflect.InvocationTargetException: Malformed input or input contains unmappable chacraters: /Users/Singer/work/workspace/eclipse-kepler/sun/xxxx/target/ROOT/resource/doc/??????????????CA??????.doc -> [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/PluginExecutionException



pom.xml

<!-- 设定maven的项目均已UTF-8编码 -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>



<!-- 设定maven的资源均已UTF-8编码 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.6</version>
<configuration>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>

直接用命令mvn install 就没问题

用eclipse的maven插件就不行 奇葩啊

系统是osx
3730 次点击
所在节点    iDev
1 条回复
qq2511296
2014-04-23 10:29:24 +08:00
额 发错版了

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/109646

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX