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

Erro na execução do comando scaffold-setup do projeto Auron através do console Forge

Ao tentar executar o comando scaffold-setup no projeto Auron, no console do Forge numa máquina com as seguintes configurada com Windows 7 64 bits, Eclipse Neon 3, Forge 3.6.1.Final, ocorre o erro reportado a seguir:

[workspace]$ project-new --named auron

SUCCESS Project named 'auron' has been created.

[auron]$ scaffold-setup

INFO Required inputs not satisfied, entering interactive mode

[0] ( ) AngularJS

[1] ( ) Faces

Press to confirm, or +C to cancel. * Scaffold Type: [0-1] 1

? Web Root Path (The web root path where the scaffolding will be placed/accessible from the client browser (default '/').) [/]: /

***ERROR*** Project 'C:\Users\035114110582\workspace\auron' has errors
***ERROR*** 1 problem was encountered while building the effective model for org.auron:auron:1.0.0-SNAPSHOT
[ERROR] Non-resolvable import POM: Failed to resolve POM for org.jboss.spec:jboss-javaee-6.0:3.0.3.Final due to Failure to transfer org.jboss.spec:jboss-javaee-6.0:pom:3.0.3.Final from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.jboss.spec:jboss-javaee-6.0:pom:3.0.3.Final from/to central (https://repo.maven.apache.org/maven2): Error transferring file: Connection timed out: connect from https://repo.maven.apache.org/maven2/org/jboss/spec/jboss-javaee-6.0/3.0.3.Final/jboss-javaee-6.0-3.0.3.Final.pom @ line 19, column 19

***ERROR*** Project 'C:\Users\035114110582\workspace\auron' has errors
***ERROR*** 1 problem was encountered while building the effective model for org.auron:auron:1.0.0-SNAPSHOT
[ERROR] Non-resolvable import POM: Failed to resolve POM for org.jboss.spec:jboss-javaee-6.0:3.0.3.Final due to Failure to transfer org.jboss.spec:jboss-javaee-6.0:pom:3.0.3.Final from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.jboss.spec:jboss-javaee-6.0:pom:3.0.3.Final from/to central (https://repo.maven.apache.org/maven2): Error transferring file: Connection timed out: connect from https://repo.maven.apache.org/maven2/org/jboss/spec/jboss-javaee-6.0/3.0.3.Final/jboss-javaee-6.0-3.0.3.Final.pom @ line 19, column 19

***ERROR*** Project 'C:\Users\035114110582\workspace\auron' has errors
***ERROR*** 1 problem was encountered while building the effective model for org.auron:auron:1.0.0-SNAPSHOT
[ERROR] Non-resolvable import POM: Failed to resolve POM for org.jboss.spec:jboss-javaee-6.0:3.0.3.Final due to Failure to transfer org.jboss.spec:jboss-javaee-6.0:pom:3.0.3.Final from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.jboss.spec:jboss-javaee-6.0:pom:3.0.3.Final from/to central (https://repo.maven.apache.org/maven2): Error transferring file: Connection timed out: connect from https://repo.maven.apache.org/maven2/org/jboss/spec/jboss-javaee-6.0/3.0.3.Final/jboss-javaee-6.0-3.0.3.Final.pom @ line 36, column 19

***ERROR*** Error while executing 'Scaffold: Setup'
***INFO*** (type "export VERBOSE=true" to enable stack traces)
***ERROR*** No Facet of type [interface org.jboss.forge.addon.javaee.servlet.ServletFacet] is installed.
[auron]$

Como resolver o problema? Obrigada pela ajuda. : )

4 respostas

Olá, tudo bem ?

Pelo erro, ele não está conseguindo fazer a busca das bibliotecas :(

Por algum acaso você está usando algum proxy ou algo do genero ? Imagino que esse pode ser problema.

Boa tarde!

O mesmo erro ocorreu comigo, nós usamos proxy. O que fazemos para resolver esse problema?

É necessário desabilita-lo para conseguir fazer o download das dependencias.

solução!

Olá, Matheus!

Resolvemos o problema da seguinte forma:

1 - Desinstalamos o Maven apagando as variáveis de ambiente M2_HOME, MAVEN_HOME, MAVEN_OPTS e suas referências na variável PATH.

2 - Apagamos todo o conteúdo da pasta C:\Usuários\user_id.m2\repository.

3 - Na pasta C:\Usuários\user_id.m2, criamos o arquivo settings.html com as informações de usuário/senha/host/porta e proxy.

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
                          https://maven.apache.org/xsd/settings-1.0.0.xsd">
    <pluginGroups/> 
    <proxies> 

        <!-- Proxy for HTTP --> 
        <proxy> 
            <id>1</id> 
            <active>true</active> 
            <protocol>http</protocol> 
            <username></username> 
            <password></password> 
            <host></host> 
            <port></port> 
            <nonProxyHosts></nonProxyHosts> 
        </proxy> 

        <!-- Proxy for HTTPS --> 
        <proxy> 
            <id>2</id> 
            <active>true</active> 
            <protocol>https</protocol> 
            <username></username> 
            <password></password> 
            <host></host> 
            <port></port> 
            <nonProxyHosts></nonProxyHosts> 
        </proxy>        
    </proxies> 
    <servers/> 
    <mirrors/> 
    <profiles/> 
</settings>

4 - No Eclipse, Windows > Preferences > Maven > User Settings, verificamos a configuração User Settings e Local Repository com os valores C:\Usuários\user_id.m2 e C:\Usuários\user_id.m2\repository, respectivamente. Executamos o Update Settings e Reindex. Confirmamos as configurações e reiniciamos o Eclipse.

5 - Como o projeto havia sido criado com erro, selecionamos o projeto e executamos Maven > Update Project...

Erro corrigido e seguimos os passos seguintes para finalizar o projeto.

Obrigada pela atenção e ajuda. : )