[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/PluginExecutionExceptionpom.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