2
respostas

Build Failed na execução do comando ant jetty.run

Após execução comando ant jetty.run ocorre falha na build. Já estou utilizando o ivy-2.5.0.jar.

Log completo:

C:\Cursos\Selenium for java\leiloes>ant jetty.run
Buildfile: C:\Cursos\Selenium for java\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:/Apache%20Ant/lib/ivy-2.5.0.jar!/org/apache/ivy/core/settings/ivysettings.xml
[ivy:retrieve] :: resolving dependencies :: org.apache.ivy#ivy;2.5.0
[ivy:retrieve]  confs: [core, httpclient, oro, vfs, sftp, standalone, ant, default, test, source]
[ivy:retrieve]  found org.apache.httpcomponents#httpclient;4.5.9 in public
[ivy:retrieve]  found org.apache.httpcomponents#httpcore;4.4.11 in public
[ivy:retrieve]  found commons-logging#commons-logging;1.2 in public
[ivy:retrieve]  found commons-codec#commons-codec;1.11 in public
[ivy:retrieve]  found oro#oro;2.0.8 in public
[ivy:retrieve]  found org.apache.commons#commons-vfs2;2.2 in public
[ivy:retrieve]  found com.jcraft#jsch;0.1.55 in public
[ivy:retrieve]  found com.jcraft#jsch.agentproxy;0.0.9 in public
[ivy:retrieve]  found com.jcraft#jsch.agentproxy.connector-factory;0.0.9 in public
[ivy:retrieve]  found com.jcraft#jsch.agentproxy.core;0.0.9 in public
[ivy:retrieve]  found com.jcraft#jsch.agentproxy.usocket-jna;0.0.9 in public
[ivy:retrieve]  found net.java.dev.jna#jna;4.1.0 in public
[ivy:retrieve]  found net.java.dev.jna#jna-platform;4.1.0 in public
[ivy:retrieve]  found com.jcraft#jsch.agentproxy.usocket-nc;0.0.9 in public
[ivy:retrieve]  found com.jcraft#jsch.agentproxy.sshagent;0.0.9 in public
[ivy:retrieve]  found com.jcraft#jsch.agentproxy.pageant;0.0.9 in public
[ivy:retrieve]  found com.jcraft#jsch.agentproxy.jsch;0.0.9 in public
[ivy:retrieve]  found org.apache.ant#ant;1.9.14 in public
[ivy:retrieve]  found org.apache.ant#ant-launcher;1.9.14 in public
[ivy:retrieve]  found org.bouncycastle#bcpg-jdk15on;1.62 in public
[ivy:retrieve]  found org.bouncycastle#bcprov-jdk15on;1.62 in public
[ivy:retrieve]  found junit#junit;4.12 in public
[ivy:retrieve]  found org.hamcrest#hamcrest-core;1.3 in public
[ivy:retrieve]  found org.hamcrest#hamcrest-library;1.3 in public
[ivy:retrieve]  found org.apache.ant#ant-testutil;1.9.14 in public
[ivy:retrieve]  found org.apache.ant#ant-junit;1.9.14 in public
[ivy:retrieve]  found org.apache.ant#ant-junit4;1.9.14 in public
[ivy:retrieve]  found ant-contrib#ant-contrib;1.0b3 in public
[ivy:retrieve]  found xmlunit#xmlunit;1.6 in public
[ivy:retrieve] :: resolution report :: resolve 868ms :: artifacts dl 53ms
[ivy:retrieve]  :: evicted modules:
[ivy:retrieve]  com.jcraft#jsch;0.1.49 by [com.jcraft#jsch;0.1.55] in [default, sftp]
        ---------------------------------------------------------------------
        |                  |            modules            ||   artifacts   |
        |       conf       | number| search|dwnlded|evicted|| number|dwnlded|
        ---------------------------------------------------------------------
        |       core       |   0   |   0   |   0   |   0   ||   0   |   0   |
        |    httpclient    |   4   |   0   |   0   |   0   ||   4   |   0   |
        |        oro       |   1   |   0   |   0   |   0   ||   1   |   0   |
        |        vfs       |   2   |   0   |   0   |   0   ||   2   |   0   |
        |       sftp       |   12  |   0   |   0   |   1   ||   10  |   0   |
        |    standalone    |   0   |   0   |   0   |   0   ||   0   |   0   |
        |        ant       |   2   |   0   |   0   |   0   ||   2   |   0   |
        |      default     |   22  |   0   |   0   |   1   ||   20  |   0   |
        |       test       |   9   |   0   |   0   |   0   ||   9   |   0   |
        |      source      |   0   |   0   |   0   |   0   ||   0   |   0   |
        ---------------------------------------------------------------------
[ivy:retrieve] :: retrieving :: org.apache.ivy#ivy [sync]
[ivy:retrieve]  confs: [core, httpclient, oro, vfs, sftp, standalone, ant, default, test, source]
[ivy:retrieve]  0 artifacts copied, 48 already retrieved (0kB/71ms)
     [copy] Copying 20 files to C:\Cursos\Selenium for java\leiloes\src\main\webapp\WEB-INF\lib

compile:
    [javac] C:\Cursos\Selenium for java\leiloes\build.xml:41: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 15 source files to C:\Cursos\Selenium for java\leiloes\src\main\webapp\WEB-INF\classes

BUILD FAILED
C:\Cursos\Selenium for java\leiloes\build.xml:41: C:\Cursos\Selenium for java\leiloes\lib\provided does not exist.

Total time: 2 seconds
2 respostas

Resolvido: Refiz o download da aplicação leilões e um downgrade do Apache Ant para 1.9.15 release

Perfeito Thiago, bons estudos!

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software