Solucionado (ver solução)
Solucionado
(ver solução)
9
respostas

Erro ao executar o comando ANT JETTY.RUN

C:\Users\rogerio.modesto\Desktop\Aula Java\AulaTeste\leiloes\leiloes>ant jetty.run
Buildfile: C:\Users\rogerio.modesto\Desktop\Aula Java\AulaTeste\leiloes\leiloes\build.xml

resolve:
[ivy:retrieve] :: Apache Ivy 2.5.0 - 20191020104435 :: https://ant.apache.org/ivy/ ::
[ivy:retrieve] :: loading settings :: url = jar:file:/C:/Users/rogerio.modesto/Desktop/Aula%20Java/AulaTeste/leiloes/leiloes/ivy-2.5.0.jar!/org/apache/ivy/core/settings/ivysettings.xml
[ivy:retrieve] :: resolving dependencies :: leiloes#leiloes;working@NBTITMA115271
[ivy:retrieve]  confs: [default, provided, test, jetty, minify]
[ivy:retrieve] :: resolution report :: resolve 1254ms :: artifacts dl 0ms
        ---------------------------------------------------------------------
        |                  |            modules            ||   artifacts   |
        |       conf       | number| search|dwnlded|evicted|| number|dwnlded|
        ---------------------------------------------------------------------
        |      default     |   9   |   0   |   0   |   0   ||   0   |   0   |
        |     provided     |   2   |   0   |   0   |   0   ||   0   |   0   |
        |       test       |   3   |   0   |   0   |   0   ||   0   |   0   |
        |       jetty      |   3   |   0   |   0   |   0   ||   0   |   0   |
        |      minify      |   1   |   0   |   0   |   0   ||   0   |   0   |
        ---------------------------------------------------------------------
[ivy:retrieve]
[ivy:retrieve] :: problems summary ::
[ivy:retrieve] :::: WARNINGS
[ivy:retrieve]          module not found: br.com.caelum#vraptor;3.4.0
[ivy:retrieve]  ==== local: tried
[ivy:retrieve]    C:\Users\rogerio.modesto\.ivy2\local\br.com.caelum\vraptor\3.4.0\ivys\ivy.xml
[ivy:retrieve]    -- artifact br.com.caelum#vraptor;3.4.0!vraptor.jar:
[ivy:retrieve]    C:\Users\rogerio.modesto\.ivy2\local\br.com.caelum\vraptor\3.4.0\jars\vraptor.jar
[ivy:retrieve]  ==== shared: tried






[ivy:retrieve]
[ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS

BUILD FAILED
C:\Users\rogerio.modesto\Desktop\Aula Java\AulaTeste\leiloes\leiloes\build.xml:26: impossible to resolve dependencies:
        resolve failed - see output for details

Total time: 2 seconds
9 respostas

Vi que você trocou para o Ivy 2.5.0, no build.properties está com ivy.jar.file=ivy-2.5.0.jar também?

Parece que o ivy continua não conseguindo baixar a lib do vraptor. Tem mais alguma informação na stack do log?

Sim eu troquei o "build.properties", veja:

ivy.jar.file=ivy-2.5.0.jar

Já o que eu tenho seria isso:

[ivy:retrieve] :: problems summary ::
[ivy:retrieve] :::: WARNINGS
[ivy:retrieve]          module not found: br.com.caelum#vraptor;3.4.0
[ivy:retrieve]  ==== local: tried
[ivy:retrieve]    C:\Users\rogerio.modesto\.ivy2\local\br.com.caelum\vraptor\3.4.0\ivys\ivy.xml
[ivy:retrieve]    -- artifact br.com.caelum#vraptor;3.4.0!vraptor.jar:
[ivy:retrieve]    C:\Users\rogerio.modesto\.ivy2\local\br.com.caelum\vraptor\3.4.0\jars\vraptor.jar
[ivy:retrieve]  ==== shared: tried
[ivy:retrieve]    C:\Users\rogerio.modesto\.ivy2\shared\br.com.caelum\vraptor\3.4.0\ivys\ivy.xml
[ivy:retrieve]    -- artifact br.com.caelum#vraptor;3.4.0!vraptor.jar:
[ivy:retrieve]    C:\Users\rogerio.modesto\.ivy2\shared\br.com.caelum\vraptor\3.4.0\jars\vraptor.jar
[ivy:retrieve]  ==== public: tried
[ivy:retrieve]    https://repo1.maven.org/maven2/br/com/caelum/vraptor/3.4.0/vraptor-3.4.0.pom
[ivy:retrieve]    -- artifact br.com.caelum#vraptor;3.4.0!vraptor.jar:
[ivy:retrieve]    https://repo1.maven.org/maven2/br/com/caelum/vraptor/3.4.0/vraptor-3.4.0.jar
[ivy:retrieve]          module not found: org.hsqldb#hsqldb;2.2.4
[ivy:retrieve]  ==== local: tried
[ivy:retrieve]    C:\Users\rogerio.modesto\.ivy2\local\org.hsqldb\hsqldb\2.2.4\ivys\ivy.xml
[ivy:retrieve]    -- artifact org.hsqldb#hsqldb;2.2.4!hsqldb.jar:
[ivy:retrieve]    C:\Users\rogerio.modesto\.ivy2\local\org.hsqldb\hsqldb\2.2.4\jars\hsqldb.jar
[ivy:retrieve]  ==== shared: tried
[ivy:retrieve]    C:\Users\rogerio.modesto\.ivy2\shared\org.hsqldb\hsqldb\2.2.4\ivys\ivy.xml
[ivy:retrieve]    -- artifact org.hsqldb#hsqldb;2.2.4!hsqldb.jar:
[ivy:retrieve]    C:\Users\rogerio.modesto\.ivy2\shared\org.hsqldb\hsqldb\2.2.4\jars\hsqldb.jar
[ivy:retrieve]  ==== public: tried
[ivy:retrieve]    https://repo1.maven.org/maven2/org/hsqldb/hsqldb/2.2.4/hsqldb-2.2.4.pom
[ivy:retrieve]    -- artifact org.hsqldb#hsqldb;2.2.4!hsqldb.jar:
[ivy:retrieve]    https://repo1.maven.org/maven2/org/hsqldb/hsqldb/2.2.4/hsqldb-2.2.4.jar
[ivy:retrieve]          module not found: opensymphony#sitemesh;2.4.2
[ivy:retrieve]  ==== local: tried
[ivy:retrieve]    C:\Users\rogerio.modesto\.ivy2\local\opensymphony\sitemesh\2.4.2\ivys\ivy.xml
[ivy:retrieve]    -- artifact opensymphony#sitemesh;2.4.2!sitemesh.jar:
[ivy:retrieve]    C:\Users\rogerio.modesto\.ivy2\local\opensymphony\sitemesh\2.4.2\jars\sitemesh.jar
[ivy:retrieve]  ==== public: tried
[ivy:retrieve]    https://repo1.maven.org/maven2/com/yahoo/platform/yui/yuicompressor/2.3.6/yuicompressor-2.3.6.pom
[ivy:retrieve]    -- artifact com.yahoo.platform.yui#yuicompressor;2.3.6!yuicompressor.jar:
[ivy:retrieve]    https://repo1.maven.org/maven2/com/yahoo/platform/yui/yuicompressor/2.3.6/yuicompressor-2.3.6.jar
[ivy:retrieve]          ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve]          ::          UNRESOLVED DEPENDENCIES         ::
[ivy:retrieve]          ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve]          :: br.com.caelum#vraptor;3.4.0: not found
[ivy:retrieve]          :: org.hsqldb#hsqldb;2.2.4: not found
[ivy:retrieve]          :: opensymphony#sitemesh;2.4.2: not found
[ivy:retrieve]          :: javax.servlet#jstl;1.2: not found
[ivy:retrieve]          :: org.hibernate#hibernate-entitymanager;3.6.7.Final: not found
[ivy:retrieve]          :: org.hibernate#hibernate-c3p0;3.6.7.Final: not found
[ivy:retrieve]          :: org.hibernate#hibernate-validator;4.2.0.Final: not found
[ivy:retrieve]          :: joda-time#joda-time;2.0: not found
[ivy:retrieve]          :: com.thoughtworks.xstream#xstream;1.4.1: not found
[ivy:retrieve]          :: javax.servlet#servlet-api;2.5: not found
[ivy:retrieve]          :: javax.servlet.jsp#jsp-api;2.1: not found
[ivy:retrieve]          :: junit#junit;4.10: not found
[ivy:retrieve]          :: org.hamcrest#hamcrest-all;1.1: not found
[ivy:retrieve]          :: org.mockito#mockito-all;1.8.5: not found
[ivy:retrieve]          :: org.mortbay.jetty#jsp-api-2.1;6.1.14: not found
[ivy:retrieve]          :: org.mortbay.jetty#jsp-2.1;6.1.14: not found
[ivy:retrieve]          :: org.mortbay.jetty#jetty-ant;6.1.14: not found
[ivy:retrieve]          :: com.yahoo.platform.yui#yuicompressor;2.3.6: not found
[ivy:retrieve]          ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve]
[ivy:retrieve] :::: ERRORS
[ivy:retrieve]  Server access error at url https://repo1.maven.org/maven2/br/com/caelum/vraptor/3.4.0/vraptor-3.4.0.pom (java.net.BindException: Cannot assign requested address: connect)
[ivy:retrieve]  Server access error at url https://repo1.maven.org/maven2/br/com/caelum/vraptor/3.4.0/vraptor-3.4.0.jar (java.net.BindException: Cannot assign requested address: connect)
[ivy:retrieve]  Server access error at url https://repo1.maven.org/maven2/org/hsqldb/hsqldb/2.2.4/hsqldb-2.2.4.pom (java.net.BindException: Cannot assign requested address: connect)
[ivy:retrieve]  Server access error at url https://repo1.maven.org/maven2/org/hsqldb/hsqldb/2.2.4/hsqldb-2.2.4.jar (java.net.BindException: Cannot assign requested address: connect)
[ivy:retrieve]  Server access error at url https://repo1.maven.org/maven2/opensymphony/sitemesh/2.4.2/sitemesh-2.4.2.pom (java.net.BindException: Cannot assign requested address: connect)
[ivy:retrieve]  Server access error at url https://repo1.maven.org/maven2/opensymphony/sitemesh/2.4.2/sitemesh-2.4.2.jar (java.net.BindException: Cannot assign requested address: connect)
[ivy:retrieve]  Server access error at url https://repo1.maven.org/maven2/javax/servlet/jstl/1.2/jstl-1.2.pom (java.net.BindException: Cannot assign requested address: connect)
[ivy:retrieve]  Server access error at url https://repo1.maven.org/maven2/javax/servlet/jstl/1.2/jstl-1.2.jar (java.net.BindException: Cannot assign requested address: connect)
[ivy:retrieve]  Server access error at url https://repo1.maven.org/maven2/org/hibernate/hibernate-entitymanager/3.6.7.Final/hibernate-entitymanager-3.6.7.Final.pom (java.net.BindException: Cannot assign requested address: connect)
[ivy:retrieve]  Server access error at url https://repo1.maven.org/maven2/org/hibernate/hibernate-entitymanager/3.6.7.Final/hibernate-entitymanager-3.6.7.Final.jar (java.net.BindException: Cannot assign requested address: connect)
[ivy:retrieve]  Server access error at url https://repo1.maven.org/maven2/org/hibernate/hibernate-c3p0/3.6.7.Final/hibernate-c3p0-3.6.7.Final.pom (java.net.BindException: Cannot assign requested address: connect)
[ivy:retrieve]  Server access error at url https://repo1.maven.org/maven2/org/hibernate/hibernate-c3p0/3.6.7.Final/hibernate-c3p0-3.6.7.Final.jar (java.net.BindException: Cannot assign requested address: connect)
[ivy:retrieve]  Server access error at url https://repo1.maven.org/maven2/org/hibernate/hibernate-validator/4.2.0.Final/hibernate-validator-4.2.0.Final.pom (java.net.BindException: Cannot assign requested address: connect)
[ivy:retrieve]  Server access error at url https://repo1.maven.org/maven2/org/hibernate/hibernate-validator/4.2.0.Final/hibernate-validator-4.2.0.Final.jar (java.net.BindException: Cannot assign requested address: connect)
[ivy:retrieve]  Server access error at url https://repo1.maven.org/maven2/joda-time/joda-time/2.0/joda-time-2.0.pom (java.net.BindException: Cannot assign requested address: connect)
[ivy:retrieve]  Server access error at url https://repo1.maven.org/maven2/org/mortbay/jetty/jetty-ant/6.1.14/jetty-ant-6.1.14.jar (java.net.BindException: Cannot assign requested address: connect)
[ivy:retrieve]  Server access error at url https://repo1.maven.org/maven2/com/yahoo/platform/yui/yuicompressor/2.3.6/yuicompressor-2.3.6.pom (java.net.BindException: Cannot assign requested address: connect)
[ivy:retrieve]  Server access error at url https://repo1.maven.org/maven2/com/yahoo/platform/yui/yuicompressor/2.3.6/yuicompressor-2.3.6.jar (java.net.BindException: Cannot assign requested address: connect)
[ivy:retrieve]
[ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS

BUILD FAILED
C:\Users\rogerio.modesto\Desktop\Aula Java\AulaTeste\leiloes\leiloes\build.xml:26: impossible to resolve dependencies:
        resolve failed - see output for details

Total time: 2 seconds

O que recebi no meu terminal seria todo este conteudo ai, eu não consigo entender o que estou fazendo de errado.

Dá uma olhada nesse trecho do log:

[ivy:retrieve] :::: ERRORS
[ivy:retrieve]  Server access error at url https://repo1.maven.org/maven2/br/com/caelum/vraptor/3.4.0/vraptor-3.4.0.pom (java.net.BindException: Cannot assign requested address: connect)
[ivy:retrieve]  Server access error at url https://repo1.maven.org/maven2/br/com/caelum/vraptor/3.4.0/vraptor-3.4.0.jar (java.net.BindException: Cannot assign requested address: connect)
[ivy:retrieve]  Server access error at url https://repo1.maven.org/maven2/org/hsqldb/hsqldb/2.2.4/hsqldb-2.2.4.pom (java.net.BindException: Cannot assign requested address: connect)
[ivy:retrieve]  Server access error at url https://repo1.maven.org/maven2/org/hsqldb/hsqldb/2.2.4/hsqldb-2.2.4.jar (java.net.BindException: Cannot assign requested address: connect)
[ivy:retrieve]  Server access error at url https://repo1.maven.org/maven2/opensymphony/sitemesh/2.4.2/sitemesh-2.4.2.pom (java.net.BindException: Cannot assign requested address: connect)
[ivy:retrieve]  Server access error at url https://repo1.maven.org/maven2/opensymphony/sitemesh/2.4.2/sitemesh-2.4.2.jar (java.net.BindException: Cannot assign requested address: connect)
[ivy:retrieve]  Server access error at url https://repo1.maven.org/maven2/javax/servlet/jstl/1.2/jstl-1.2.pom (java.net.BindException: Cannot assign requested address: connect)
[ivy:retrieve]  Server access error at url https://repo1.maven.org/maven2/javax/servlet/jstl/1.2/jstl-1.2.jar (java.net.BindException: Cannot assign requested address: connect)
[ivy:retrieve]  Server access error at url https://repo1.maven.org/maven2/org/hibernate/hibernate-entitymanager/3.6.7.Final/hibernate-entitymanager-3.6.7.Final.pom (java.net.BindException: Cannot assign requested address: connect)
[ivy:retrieve]  Server access error at url https://repo1.maven.org/maven2/org/hibernate/hibernate-entitymanager/3.6.7.Final/hibernate-entitymanager-3.6.7.Final.jar (java.net.BindException: Cannot assign requested address: connect)
[ivy:retrieve]  Server access error at url https://repo1.maven.org/maven2/org/hibernate/hibernate-c3p0/3.6.7.Final/hibernate-c3p0-3.6.7.Final.pom (java.net.BindException: Cannot assign requested address: connect)
[ivy:retrieve]  Server access error at url https://repo1.maven.org/maven2/org/hibernate/hibernate-c3p0/3.6.7.Final/hibernate-c3p0-3.6.7.Final.jar (java.net.BindException: Cannot assign requested address: connect)
[ivy:retrieve]  Server access error at url https://repo1.maven.org/maven2/org/hibernate/hibernate-validator/4.2.0.Final/hibernate-validator-4.2.0.Final.pom (java.net.BindException: Cannot assign requested address: connect)
[ivy:retrieve]  Server access error at url https://repo1.maven.org/maven2/org/hibernate/hibernate-validator/4.2.0.Final/hibernate-validator-4.2.0.Final.jar (java.net.BindException: Cannot assign requested address: connect)
[ivy:retrieve]  Server access error at url https://repo1.maven.org/maven2/joda-time/joda-time/2.0/joda-time-2.0.pom (java.net.BindException: Cannot assign requested address: connect)

O ivy não está conseguindo baixar as dependências do projeto, pode ser algum proxy na sua rede.

Se você colar essa URL no browser, é feito o download do JAR, certo? https://repo1.maven.org/maven2/org/hsqldb/hsqldb/2.2.4/hsqldb-2.2.4.jar

Você consegue conectar numa rede sem proxy para baixar essas dependências?

solução!

O problema com o proxy pode ser resolvido setando o proxy no build.xml, configura o "target: resolve" do ant assim:

<target name="resolve" description="--> Recupera as dependencias com ivy">
         <setproxy proxyhost="seu_host" proxyport="80" proxyuser="seu_usuario" proxypassword="sua_senha"/>

Otávio muito obrigado, deu tudo certo agora fiz do jeito que me orientou e funcionou corretamente.