You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-zh@flink.apache.org by "penguin." <bx...@126.com> on 2021/01/13 05:57:20 UTC
Re:Re: idea导入flink源码问题(看不到图片,贴了下文字)
贴不了图,我直接放文字吧
▼θSync: at 2021/1/13 12:05 with 18 errors
▼Resolve dependencies 4 errors
Cannot resolve netminidev:json-smart:2.3
Cannot resolve io.confluent:kafka-schema-registry-client:4.1.0
Cannot resolve com.nimbusds:nimbus-jose-jwt:9.4.1
Cannot resolve com.nimbusds:lang-tag:1.5
▼Resolve plugins 14 errors
Cannot resolve plugin org.codehaus.mojo:build-helper-maven-plugin: <unknown>
在 2021-01-13 13:42:27,"Carmen Free" <dd...@gmail.com> 写道:
>hi,
>
>图看不见。
>
>penguin. <bx...@126.com> 于2021年1月13日周三 下午1:19写道:
>
>> 已经在maven的setting文件中配置了好几个镜像了,还是这样。如下图
>>
>>
>>
>>
>>
>>
Re: Re: Re: idea导入flink源码问题(看不到图片,贴了下文字)
Posted by Carmen Free <dd...@gmail.com>.
Hi penguin,
虽然你配置了多个mirror,但实际起作用的是第一个mirror。第一个mirror针对大部分情况够用了,我这边在阿里云仓库可以正常下载json-smart:2.3,你这边没有贴出来pom.xml,没有<depencency>,
所以我这边没有一一尝试。但无非问题主要是以下方面排查:
1、你要确定一下,你是不是用的这个settings.xml;
2、针对特定的不能从阿里云仓库下载的jar包,可以在pom.xml中配置 <repositories> </repositories>
和<pluginRepositories> </pluginRepositories>,以 WSO2 Maven2
Repository仓库为例,配置如下:
<repositories>
<repository>
<id>wso2-maven2-repository</id>
<name>WSO2 Maven2 Repository</name>
<url>https://maven.wso2.org/nexus/content/repositories/releases/
</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>wso2-maven2-repository</id>
<name>WSO2 Maven2 Repository</name>
<url>https://maven.wso2.org/nexus/content/repositories/releases/
</url>
</pluginRepository>
</pluginRepositories>
祝好
penguin. <bx...@126.com> 于2021年1月13日周三 下午4:09写道:
> pom文件就是源码里面的那个
>
>
> setting.xml:
>
>
> <mirrors>
>
>
>
> <mirror>
>
> <id>alimaven</id>
>
> <name>aliyun maven</name>
>
> <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
>
> <mirrorOf>central</mirrorOf>
>
> </mirror>
>
> <mirror>
>
> <id>mapr-public</id>
>
> <mirrorOf>mapr-releases</mirrorOf>
>
> <name>mapr-releases</name>
>
> <url>https://maven.aliyun.com/repository/mapr-public</url>
>
> </mirror>
>
> <mirror>
>
> <id>ali maven</id>
>
> <name>aliyun maven</name>
>
> <url>https://maven.aliyun.com/repository/public/</url>
>
> <mirrorOf>central</mirrorOf>
>
> </mirror>
>
> <mirror>
>
> <id>ui</id>
>
> <mirrorOf>central</mirrorOf>
>
> <name>Human Readable Name for this Mirror.</name>
>
> <url>http://uk.maven.org/maven2/</url>
>
> </mirror>
>
> <mirror>
>
> <id>ibiblio</id>
>
> <mirrorOf>central</mirrorOf>
>
> <name>Human Readable Name for this Mirror.</name>
>
> <url>http://mirrors.ibiblio.org/pub/mirrors/maven2/</url>
>
> </mirror>
>
>
>
>
> <mirror>
>
> <id>jboss-public-repository-group</id>
>
> <mirrorOf>central</mirrorOf>
>
> <name>JBoss Public Repository Group</name>
>
> <url>http://repository.jboss.org/nexus/content/groups/public</url>
>
> </mirror>
>
> <!--访问慢的网址放入到后面-->
>
> <mirror>
>
> <id>CN</id>
>
> <name>OSChina Central</name>
>
> <url>http://maven.oschina.net/content/groups/public/</url>
>
> <mirrorOf>central</mirrorOf>
>
> </mirror>
>
> <mirror>
>
> <id>net-cn</id>
>
> <mirrorOf>central</mirrorOf>
>
> <name>Human Readable Name for this Mirror.</name>
>
> <url>http://maven.net.cn/content/groups/public/</url>
>
> </mirror>
>
> <mirror>
>
> <id>JBossJBPM</id>
>
> <mirrorOf>central</mirrorOf>
>
> <name>JBossJBPM Repository</name>
>
> <url>https://repository.jboss.org/nexus/content/repositories/releases/
> </url>
>
> </mirror>
>
> </mirrors>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> 在 2021-01-13 15:11:16,"Carmen Free" <dd...@gmail.com> 写道:
> >建议你把Maven的settings.xml以及你项目的pom.xml也贴出来看看,大家才好帮你定位问题
> >
> >penguin. <bx...@126.com> 于2021年1月13日周三 下午2:25写道:
> >
> >> 贴不了图,我直接放文字吧
> >>
> >>
> >>
> >> ▼θSync: at 2021/1/13 12:05 with 18 errors
> >>
> >> ▼Resolve dependencies 4 errors
> >>
> >> Cannot resolve netminidev:json-smart:2.3
> >>
> >> Cannot resolve io.confluent:kafka-schema-registry-client:4.1.0
> >>
> >> Cannot resolve com.nimbusds:nimbus-jose-jwt:9.4.1
> >> Cannot resolve com.nimbusds:lang-tag:1.5
> >> ▼Resolve plugins 14 errors
> >> Cannot resolve plugin
> org.codehaus.mojo:build-helper-maven-plugin:
> >> <unknown>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >> 在 2021-01-13 13:42:27,"Carmen Free" <dd...@gmail.com> 写道:
> >> >hi,
> >> >
> >> >图看不见。
> >> >
> >> >penguin. <bx...@126.com> 于2021年1月13日周三 下午1:19写道:
> >> >
> >> >> 已经在maven的setting文件中配置了好几个镜像了,还是这样。如下图
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >>
>
Re:Re: Re: idea导入flink源码问题(看不到图片,贴了下文字)
Posted by "penguin." <bx...@126.com>.
pom文件就是源码里面的那个
setting.xml:
<mirrors>
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
<mirror>
<id>mapr-public</id>
<mirrorOf>mapr-releases</mirrorOf>
<name>mapr-releases</name>
<url>https://maven.aliyun.com/repository/mapr-public</url>
</mirror>
<mirror>
<id>ali maven</id>
<name>aliyun maven</name>
<url>https://maven.aliyun.com/repository/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
<mirror>
<id>ui</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://uk.maven.org/maven2/</url>
</mirror>
<mirror>
<id>ibiblio</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://mirrors.ibiblio.org/pub/mirrors/maven2/</url>
</mirror>
<mirror>
<id>jboss-public-repository-group</id>
<mirrorOf>central</mirrorOf>
<name>JBoss Public Repository Group</name>
<url>http://repository.jboss.org/nexus/content/groups/public</url>
</mirror>
<!--访问慢的网址放入到后面-->
<mirror>
<id>CN</id>
<name>OSChina Central</name>
<url>http://maven.oschina.net/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
<mirror>
<id>net-cn</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://maven.net.cn/content/groups/public/</url>
</mirror>
<mirror>
<id>JBossJBPM</id>
<mirrorOf>central</mirrorOf>
<name>JBossJBPM Repository</name>
<url>https://repository.jboss.org/nexus/content/repositories/releases/</url>
</mirror>
</mirrors>
在 2021-01-13 15:11:16,"Carmen Free" <dd...@gmail.com> 写道:
>建议你把Maven的settings.xml以及你项目的pom.xml也贴出来看看,大家才好帮你定位问题
>
>penguin. <bx...@126.com> 于2021年1月13日周三 下午2:25写道:
>
>> 贴不了图,我直接放文字吧
>>
>>
>>
>> ▼θSync: at 2021/1/13 12:05 with 18 errors
>>
>> ▼Resolve dependencies 4 errors
>>
>> Cannot resolve netminidev:json-smart:2.3
>>
>> Cannot resolve io.confluent:kafka-schema-registry-client:4.1.0
>>
>> Cannot resolve com.nimbusds:nimbus-jose-jwt:9.4.1
>> Cannot resolve com.nimbusds:lang-tag:1.5
>> ▼Resolve plugins 14 errors
>> Cannot resolve plugin org.codehaus.mojo:build-helper-maven-plugin:
>> <unknown>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> 在 2021-01-13 13:42:27,"Carmen Free" <dd...@gmail.com> 写道:
>> >hi,
>> >
>> >图看不见。
>> >
>> >penguin. <bx...@126.com> 于2021年1月13日周三 下午1:19写道:
>> >
>> >> 已经在maven的setting文件中配置了好几个镜像了,还是这样。如下图
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>>
Re: Re: idea导入flink源码问题(看不到图片,贴了下文字)
Posted by Carmen Free <dd...@gmail.com>.
建议你把Maven的settings.xml以及你项目的pom.xml也贴出来看看,大家才好帮你定位问题
penguin. <bx...@126.com> 于2021年1月13日周三 下午2:25写道:
> 贴不了图,我直接放文字吧
>
>
>
> ▼θSync: at 2021/1/13 12:05 with 18 errors
>
> ▼Resolve dependencies 4 errors
>
> Cannot resolve netminidev:json-smart:2.3
>
> Cannot resolve io.confluent:kafka-schema-registry-client:4.1.0
>
> Cannot resolve com.nimbusds:nimbus-jose-jwt:9.4.1
> Cannot resolve com.nimbusds:lang-tag:1.5
> ▼Resolve plugins 14 errors
> Cannot resolve plugin org.codehaus.mojo:build-helper-maven-plugin:
> <unknown>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> 在 2021-01-13 13:42:27,"Carmen Free" <dd...@gmail.com> 写道:
> >hi,
> >
> >图看不见。
> >
> >penguin. <bx...@126.com> 于2021年1月13日周三 下午1:19写道:
> >
> >> 已经在maven的setting文件中配置了好几个镜像了,还是这样。如下图
> >>
> >>
> >>
> >>
> >>
> >>
>