V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
iOS 开发实用技术导航
NSHipster 中文版
http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
http://www.cocos2d-iphone.org/
CocoaPods
http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
http://code.google.com/mobile/analytics/
WWDC
https://developer.apple.com/wwdc/
Design Guides and Resources
https://developer.apple.com/design/
Transcripts of WWDC sessions
http://asciiwwdc.com
Cocoa with Love
http://cocoawithlove.com/
Cocoa Dev Central
http://cocoadevcentral.com/
NSHipster
http://nshipster.com/
Style Guides
Google Objective-C Style Guide
NYTimes Objective-C Style Guide
Useful Tools and Services
Charles Web Debugging Proxy
Smore
qq2511296
V2EX  ›  iDev

eclipse maven install unmappable chacraters

  •  
  •   qq2511296 · 2014-04-23 10:28:34 +08:00 · 3734 次点击
    这是一个创建于 3865 天前的主题,其中的信息可能已经有所发展或是发生改变。
    [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
    1 条回复    1970-01-01 08:00:00 +08:00
    qq2511296
        1
    qq2511296  
    OP
       2014-04-23 10:29:24 +08:00
    额 发错版了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1188 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 18:24 · PVG 02:24 · LAX 10:24 · JFK 13:24
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.