1
resposta

Erro ao executar o WebService

Quando executo o comando "ant jetty.run" está dando os seguintes erros:

[ivy:retrieve]          ::          UNRESOLVED DEPENDENCIES         ::
[ivy:retrieve]          ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve]          :: br.com.caelum#vraptor;3.4.0: 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] :::: ERRORS
[ivy:retrieve]  SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/br/com/caelum/vraptor/3.4.0/vraptor-3.4.0.pom
[ivy:retrieve]  SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/br/com/caelum/vraptor/3.4.0/vraptor-3.4.0.jar
[ivy:retrieve]  SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/opensymphony/sitemesh/2.4.2/sitemesh-2.4.2.pom
[ivy:retrieve]  SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/opensymphony/sitemesh/2.4.2/sitemesh-2.4.2.jar
[ivy:retrieve]  SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/javax/servlet/jstl/1.2/jstl-1.2.pom
[ivy:retrieve]  SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/javax/servlet/jstl/1.2/jstl-1.2.jar
[ivy:retrieve]  SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/org/hibernate/hibernate-entitymanager/3.6.7.Final/hibernate-entitymanager-3.6.7.Final.pom
[ivy:retrieve]  SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/org/hibernate/hibernate-entitymanager/3.6.7.Final/hibernate-entitymanager-3.6.7.Final.jar
[ivy:retrieve]  SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/org/hibernate/hibernate-c3p0/3.6.7.Final/hibernate-c3p0-3.6.7.Final.pom
[ivy:retrieve]  SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/org/hibernate/hibernate-c3p0/3.6.7.Final/hibernate-c3p0-3.6.7.Final.jar
[ivy:retrieve]  SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/org/hibernate/hibernate-validator/4.2.0.Final/hibernate-validator-4.2.0.Final.pom
[ivy:retrieve]  SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/org/hibernate/hibernate-validator/4.2.0.Final/hibernate-validator-4.2.0.Final.jar
[ivy:retrieve]  SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/joda-time/joda-time/2.0/joda-time-2.0.pom
[ivy:retrieve]  SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/joda-time/joda-time/2.0/joda-time-2.0.jar
[ivy:retrieve]  SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/com/thoughtworks/xstream/xstream/1.4.1/xstream-1.4.1.pom
[ivy:retrieve]  SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/com/thoughtworks/xstream/xstream/1.4.1/xstream-1.4.1.jar
[ivy:retrieve]  SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/javax/servlet/servlet-api/2.5/servlet-api-2.5.pom
[ivy:retrieve]  SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar
[ivy:retrieve]  SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/javax/servlet/jsp/jsp-api/2.1/jsp-api-2.1.pom
[ivy:retrieve]  SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/javax/servlet/jsp/jsp-api/2.1/jsp-api-2.1.jar
[ivy:retrieve]  SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/junit/junit/4.10/junit-4.10.pom
[ivy:retrieve]  SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/junit/junit/4.10/junit-4.10.jar
[ivy:retrieve]  SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/org/hamcrest/hamcrest-all/1.1/hamcrest-all-1.1.pom
[ivy:retrieve]  SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/org/hamcrest/hamcrest-all/1.1/hamcrest-all-1.1.jar
[ivy:retrieve]  SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/org/mockito/mockito-all/1.8.5/mockito-all-1.8.5.pom
[ivy:retrieve]  SERVER ERROR: HTTPS Required url=http
1 resposta

Olá Henrique, tudo bem?

O erro "HTTPS Required" indica que o ivy está tentando acessar o repositório Maven através de uma conexão não-segura (HTTP).

Esse projeto tem um problema, pois está utilizando o Ivy 2.2 que faz download das dependências via HTTP, mas as urls para download só baixam agora através de HTTPS.

Para você conseguir rodar o projeto, precisa subir a versão do Ivy para a 2.5.

Você pode baixar a versão nova nesse link: https://ant.apache.org/ivy/download.cgi

Depois é só copiar o ivy-2.5.0.jar para dentro do projeto e mudar no build.properties

ivy.jar.file=ivy-2.5.0.jar Em breve esse projeto deve ser atualizado para não ter mais esse problema