Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnknownHostException: repo.maven.apache.org #3925

Closed
2 of 3 tasks
sumghost opened this issue Jul 29, 2024 · 2 comments
Closed
2 of 3 tasks

UnknownHostException: repo.maven.apache.org #3925

sumghost opened this issue Jul 29, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@sumghost
Copy link

Search before asking

  • I had searched in the issues and found no similar issues.

Java Version

jdk1.8.0_212

Scala Version

2.12.x

StreamPark Version

2.1.4

Flink Version

1.18.1

deploy mode

yarn-application

What happened

2

Revised sentence: "When packaging the build project, I consistently encounter a prompt indicating that the host name cannot be resolved. In my settings.xml file, I have only configured the local repository without any remote repository and specified true. What could be causing this issue?"

Error Exception

2024-07-29 17:53:49.550 INFO  - Exception in thread "main" java.net.UnknownHostException: repo.maven.apache.org
2024-07-29 17:53:49.551 INFO  - 	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)

Screenshots

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!(您是否要贡献这个PR?)

Code of Conduct

@sumghost sumghost added the bug Something isn't working label Jul 29, 2024
@zjialin
Copy link

zjialin commented Aug 13, 2024

我也遇到了同样的问题,不知晓如何解决

@wolfboys
Copy link
Member

wolfboys commented Nov 1, 2024

image

You can specify the Maven setting.xml file and configure the repository in the setting.xml, such as:

<repository>
        <id>central</id>
        <name>Central Repository</name>
        <ur1>https://repo .maven.apache.org/maven2</ur1>
        <layout>default</layout>
        <snapshots>
        <enabled*false</enabled></snapshots>
</repository>

@wolfboys wolfboys closed this as completed Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants