下载文物后Groovy葡萄冻结 [英] Groovy grapes freeze after downloading artifacts

查看:117
本文介绍了下载文物后Groovy葡萄冻结的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更新我的ubuntu系统后,我遇到了运行groovy葡萄脚本的问题。所有的依赖关系都下载了,但进程依然在100%左右运行。

我有ubuntu:

  lsb_release -a 
没有LSB模块可用。
经销商编号:Ubuntu
描述:Ubuntu 12.10
发布:12.10
代号:quantal

groovy版本:

  Groovy版本:1.8.6 JVM:1.7.0_25供应商:Oracle公司操作系统:Linux 

我的简单脚本如下所示:

  @Grab(group ='org.codehaus.groovy.modules.http-builder',module ='http-builder',version ='0.6')
@GrabExclude('asm:*')

导入groovyx.net.http。*
导入groovy.util.CliBuilder
导入groovy.xml.XmlUtil

import java.util.regex.Matcher;
import java.util.regex.Pattern;


class MyGroovyScript {

static main(args){
println?????
}

}

并输出:

  groovy -Dgroovy.grape.report.downloads = true my-groovy-script.groovy 
解析依赖关系:org.codehaus。 groovy.modules.http-builder#http-builder; 0.6 {default = [default]}
准备下载神器org.codehaus.groovy.modules.http-builder#http-builder; 0.6!http-builder。 jar
准备下载工件org.apache.httpcomponents#httpclient; 4.2.1!httpclient.jar
准备下载工件net.sf.json-lib#json-lib; 2.3!json-lib。 jar
准备下载神器org.codehaus.groovy#groovy; 1.8.8!groovy.jar
准备下载神器net.sourceforge.nekohtml#nekohtml; 1.9.16!nekohtml.jar
准备下载工件xml-resolver#xml-resolver; 1.2!xml-resolver.jar
准备下载工件org.apache.httpcomponents#httpcore; 4.2.1!httpcore.jar
准备下载artifact commons-logging#commons-logging; 1.1.1!commons-logging.jar
准备环下载工件commons-codec#commons-codec; 1.6!commons-codec.jar
准备下载工件commons-beanutils#commons-beanutils; 1.8.0!commons-beanutils.jar
准备下载下载工件commons-collections#commons-collections; 3.2.1!commons-collections.jar
准备下载工件commons-lang#commons-lang; 2.4!commons-lang.jar
准备下载工件net.sf.ezmorph#ezmorph; 1.0.6!ezmorph.jar
准备下载工件antlr#antlr; 2.7.7!antlr.jar
准备下载工件xerces#xercesImpl; 2.9.1! xercesImpl.jar
准备下载神器xml-apis#xml-apis; 1.3.04!xml-apis.jar
在134ms中下载9854字节:
[SUCCESSFUL] org.codehaus.groovy .modules.http-builder#http-builder; 0.6!http-builder.jar(5ms)
[SUCCESSFUL] org.apache.httpcomponents#httpclient; 4.2.1!httpclient.jar(7ms)
[成功] org.apache.httpcomponents#httpcore; 4.2.1!httpcore.jar(2ms)
[SUCCESSFUL] commons-logging#co mmons-logging; 1.1.1!commons-logging.jar(1ms)
[SUCCESSFUL] commons-codec#commons-codec; 1.6!commons-codec.jar(2ms)
[SUCCESSFUL] net。 sf.json-lib#json-lib; 2.3!json-lib.jar(2ms)
[SUCCESSFUL] commons-beanutils#commons-beanutils; 1.8.0!commons-beanutils.jar(3ms)
[SUCCESSFUL] commons-collections#commons-collections; 3.2.1!commons-collections.jar(5ms)
[SUCCESSFUL] commons-lang#commons-lang; 2.4!commons-lang.jar(2ms)
[SUCCESSFUL] net.sf.ezmorph#ezmorph; 1.0.6!ezmorph.jar(24ms)
[SUCCESSFUL] org.codehaus.groovy#groovy; 1.8.8!groovy.jar(34ms)
[SUCCESSFUL] antlr#antlr; 2.7.7!antlr.jar(5ms)
[SUCCESSFUL] net.sourceforge.nekohtml#nekohtml; 1.9.16!nekohtml.jar(2ms)
[ SUCCESSFUL] xerces#xercesImpl; 2.9.1!xercesImpl.jar(14ms)
[SUCCESSFUL] xml-apis#xml-apis; 1.3.04!xml-apis.jar(3ms)
[SUCCESSFUL] xml-resolver#xml-resolver; 1.2!xml-resolver.jar(2ms)


解决方案

因为还没有发布答案..这是因为OpenJDK7u25发生的,并且它与u40一起工作


After updating my ubuntu system I have problem to run groovy grapes scripts. All dependecies are download but process is still running in about 100 %

I have ubuntu :

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 12.10
Release:    12.10
Codename:   quantal

groovy version:

Groovy Version: 1.8.6 JVM: 1.7.0_25 Vendor: Oracle Corporation OS: Linux

My simple script look like:

@Grab(group='org.codehaus.groovy.modules.http-builder', module='http-builder', version='0.6')
@GrabExclude('asm:*')

import groovyx.net.http.*
import groovy.util.CliBuilder
import groovy.xml.XmlUtil

import java.util.regex.Matcher;
import java.util.regex.Pattern;


class MyGroovyScript {

static main(args) {
    println "?????"
} 

}

and output is:

groovy -Dgroovy.grape.report.downloads=true my-groovy-script.groovy
Resolving dependency: org.codehaus.groovy.modules.http-builder#http-builder;0.6 {default=[default]}
Preparing to download artifact org.codehaus.groovy.modules.http-builder#http-builder;0.6!http-builder.jar
Preparing to download artifact org.apache.httpcomponents#httpclient;4.2.1!httpclient.jar
Preparing to download artifact net.sf.json-lib#json-lib;2.3!json-lib.jar
Preparing to download artifact org.codehaus.groovy#groovy;1.8.8!groovy.jar
Preparing to download artifact net.sourceforge.nekohtml#nekohtml;1.9.16!nekohtml.jar
Preparing to download artifact xml-resolver#xml-resolver;1.2!xml-resolver.jar
Preparing to download artifact org.apache.httpcomponents#httpcore;4.2.1!httpcore.jar
Preparing to download artifact commons-logging#commons-logging;1.1.1!commons-logging.jar
Preparing to download artifact commons-codec#commons-codec;1.6!commons-codec.jar
Preparing to download artifact commons-beanutils#commons-beanutils;1.8.0!commons-beanutils.jar
Preparing to download artifact commons-collections#commons-collections;3.2.1!commons-collections.jar
Preparing to download artifact commons-lang#commons-lang;2.4!commons-lang.jar
Preparing to download artifact net.sf.ezmorph#ezmorph;1.0.6!ezmorph.jar
Preparing to download artifact antlr#antlr;2.7.7!antlr.jar
Preparing to download artifact xerces#xercesImpl;2.9.1!xercesImpl.jar
Preparing to download artifact xml-apis#xml-apis;1.3.04!xml-apis.jar
Downloaded 9854 Kbytes in 134ms:
  [SUCCESSFUL ] org.codehaus.groovy.modules.http-builder#http-builder;0.6!http-builder.jar (5ms)
  [SUCCESSFUL ] org.apache.httpcomponents#httpclient;4.2.1!httpclient.jar (7ms)
  [SUCCESSFUL ] org.apache.httpcomponents#httpcore;4.2.1!httpcore.jar (2ms)
  [SUCCESSFUL ] commons-logging#commons-logging;1.1.1!commons-logging.jar (1ms)
  [SUCCESSFUL ] commons-codec#commons-codec;1.6!commons-codec.jar (2ms)
  [SUCCESSFUL ] net.sf.json-lib#json-lib;2.3!json-lib.jar (2ms)
  [SUCCESSFUL ] commons-beanutils#commons-beanutils;1.8.0!commons-beanutils.jar (3ms)
  [SUCCESSFUL ] commons-collections#commons-collections;3.2.1!commons-collections.jar (5ms)
  [SUCCESSFUL ] commons-lang#commons-lang;2.4!commons-lang.jar (2ms)
  [SUCCESSFUL ] net.sf.ezmorph#ezmorph;1.0.6!ezmorph.jar (24ms)
  [SUCCESSFUL ] org.codehaus.groovy#groovy;1.8.8!groovy.jar (34ms)
  [SUCCESSFUL ] antlr#antlr;2.7.7!antlr.jar (5ms)
  [SUCCESSFUL ] net.sourceforge.nekohtml#nekohtml;1.9.16!nekohtml.jar (2ms)
  [SUCCESSFUL ] xerces#xercesImpl;2.9.1!xercesImpl.jar (14ms)
  [SUCCESSFUL ] xml-apis#xml-apis;1.3.04!xml-apis.jar (3ms)
  [SUCCESSFUL ] xml-resolver#xml-resolver;1.2!xml-resolver.jar (2ms)

解决方案

Since there is no answer posted yet.. This happens because of OpenJDK7u25 and it works again with u40

这篇关于下载文物后Groovy葡萄冻结的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆