V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
cs4814751
V2EX  ›  Java

求教用 ANT BUILD Spring3 时报错

  •  
  •   cs4814751 · May 25, 2016 · 2265 views
    This topic created in 3629 days ago, the information mentioned may be changed or developed.
    用 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 replies    2016-05-26 10:13:34 +08:00
    crytis
        1
    crytis  
       May 25, 2016 via iPhone
    用 maven 吧
    crayhuang
        2
    crayhuang  
       May 25, 2016
    用 maven + 1
    tidezyc
        3
    tidezyc  
       May 26, 2016
    人家好好的 gradle 的项目,楼上推荐 maven 的是什么逻辑
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2434 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 15:32 · PVG 23:32 · LAX 08:32 · JFK 11:32
    ♥ Do have faith in what you're doing.