2
回答
maven install unmappable chacraters
华为云实践训练营,热门技术免费实践!>>>   

[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



<!-- 设定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>






举报
大喵哥
发帖于4年前 2回/354阅
顶部