V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
cs4814751
V2EX  ›  Java

求教用 ANT BUILD Spring3 时报错

  •  
  •   cs4814751 · 2016-05-25 15:19:08 +08:00 · 1809 次点击
    这是一个创建于 3139 天前的主题,其中的信息可能已经有所发展或是发生改变。
    用 ant build 的时候四五分钟之后,就报这个错,实在摸不到头脑哪里的毛病,求大大赐教。

    compile.init:

    jar.init:

    jar:
    [mkdir] Created dir: C:\Users\cs481\Desktop\spring-framework-3.0.5.RELEASE\projects\org.springframework.instrument.tomcat\target\artifacts
    [mkdir] Created dir: C:\Users\cs481\Desktop\spring-framework-3.0.5.RELEASE\projects\org.springframework.instrument.tomcat\target\classes
    [s:javac] Compiling 3 source files to C:\Users\cs481\Desktop\spring-framework-3.0.5.RELEASE\projects\org.springframework.instrument.tomcat\target\classes
    [s:javac] ----------
    [s:javac] 1. ERROR in C:\Users\cs481\Desktop\spring-framework-3.0.5.RELEASE\projects\org.springframework.instrument.tomcat\src\main\java\org\springframework\instrument\classloading\WeavingTransformer.java (at line 77)
    [s:javac] String internalName = className.replace(".", "/");
    [s:javac] ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [s:javac] The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files
    [s:javac] ----------
    [s:javac] 2. ERROR in C:\Users\cs481\Desktop\spring-framework-3.0.5.RELEASE\projects\org.springframework.instrument.tomcat\src\main\java\org\springframework\instrument\classloading\WeavingTransformer.java (at line 77)
    [s:javac] String internalName = className.replace(".", "/");
    [s:javac] ^^^^^^^
    [s:javac] The method replace(char, char) in the type String is not applicable for the arguments (String, String)
    [s:javac] ----------
    [s:javac] 2 problems (2 errors)
    [subant] Leaving directory: C:\Users\cs481\Desktop\spring-framework-3.0.5.RELEASE\projects\org.springframework.instrument.tomcat

    BUILD FAILED
    C:\Users\cs481\Desktop\spring-framework-3.0.5.RELEASE\projects\spring-build\multi-bundle\artifact.xml:60: The following error occurred while executing this line:
    C:\Users\cs481\Desktop\spring-framework-3.0.5.RELEASE\projects\spring-build\multi-bundle\common.xml:86: The following error occurred while executing this line:
    C:\Users\cs481\Desktop\spring-framework-3.0.5.RELEASE\projects\spring-build\common\artifact.xml:43: The following error occurred while executing this line:
    C:\Users\cs481\Desktop\spring-framework-3.0.5.RELEASE\projects\spring-build\common\common.xml:161: The following error occurred while executing this line:
    C:\Users\cs481\Desktop\spring-framework-3.0.5.RELEASE\projects\spring-build\standard\common.xml:29: Compile failed; see the compiler error output for details.

    Total time: 4 minutes 23 seconds
    3 条回复    2016-05-26 10:13:34 +08:00
    crytis
        1
    crytis  
       2016-05-25 17:56:03 +08:00 via iPhone
    用 maven 吧
    crayhuang
        2
    crayhuang  
       2016-05-25 18:11:19 +08:00
    用 maven + 1
    tidezyc
        3
    tidezyc  
       2016-05-26 10:13:34 +08:00
    人家好好的 gradle 的项目,楼上推荐 maven 的是什么逻辑
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   917 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 21:30 · PVG 05:30 · LAX 13:30 · JFK 16:30
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.