Maven не может разрешить зависимости, артефакты не могут быть прочитаны

Я следую первому учебному пособию с maven и не могу пройти мимо этой ошибки. Ниже приведен файл pom; ссылка - ошибка.

изображение ошибки

https://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0

<groupId>org.springframework</groupId>
<artifactId>gs-maven</artifactId>
<packaging>jar</packaging>
<version>0.1.0</version>

<properties>
    <maven.compiler.source>1.8</maven.compiler.source>
    <maven.compiler.target>1.8</maven.compiler.target>
</properties>

<build>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-shade-plugin</artifactId>
            <version>2.1</version>
            <executions>
                <execution>
                    <phase>package</phase>
                    <goals>
                        <goal>shade</goal>
                    </goals>
                    <configuration>
                        <transformers>
                            <transformer
                                implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
                                <mainClass>hello.HelloWorld</mainClass>
                            </transformer>
                        </transformers>
                    </configuration>
                </execution>
            </executions>
        </plugin>
    </plugins>
</build>


person Imran Sandozi    schedule 19.08.2019    source источник


Ответы (1)


Печатается следующая трассировка стека:

[ERROR] Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin: jar:2.6: Could not transfer artifact

org.apache.maven.plugins :maven-resources-plugin:pom:2.6 from/to central <https://repo-maven.apache.org/maven2): Connect to repo.maven.apache.org:443 [repo. maven.apache.org/151.101.184.215] failed: Connection timed out: connect -> [Help 1]
[ERROR ]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit

Раздел Connect to repo.maven.apache.org:443 [repo. maven.apache.org/151.101.184.215] failed: Connection timed out: connect указывает, что соединение с repo.maven.apache.org не удалось.

Вы можете подключиться к http://repo.maven.apache.org в своем браузере? Есть ли брандмауэр, который может его заблокировать?

person MaartenDev    schedule 19.08.2019
comment
Я могу получить доступ к этому URL-адресу в браузере. Он представляет мне папку каталога - person Imran Sandozi; 19.08.2019