首页 > 其他分享 >cannot resolve symbol 'String' 问题解决

cannot resolve symbol 'String' 问题解决

时间:2022-11-09 09:36:30浏览次数:33  
标签:content resolve http String nexus symbol maven central

在拉取一个新的项目的时候,maven和jdk都是配置好的,没问题,但是String会报红,显示cannot resolve symbol 'String' 。

maven的setting文件需要更改内容,因公司有自己的特殊的依赖来源,所以需要将配置改为公司的配置。

配置内容:

<mirrors>     <mirror>        <id>allcam</id>        <mirrorOf>*,!getui-nexus</mirrorOf>        <url>http://maven.allcam.com.cn/nexus/content/groups/public</url>      </mirror>             <mirror>         <id>alimaven</id>         <name>aliyun maven</name>         <url>http://maven.aliyun.com/nexus/content/groups/public/</url>         <mirrorOf>central</mirrorOf>               </mirror>       <mirror>         <id>uk</id>           <mirrorOf>central</mirrorOf>           <name>Human Readable Name for this Mirror.</name>           <url>http://uk.maven.org/maven2/</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>nexus</id>        <name>internal nexus repository</name>        <url>http://repo.maven.apache.org/maven2</url>        <mirrorOf>central</mirrorOf>       </mirror>     </mirrors>

 

   

 

标签:content,resolve,http,String,nexus,symbol,maven,central
From: https://www.cnblogs.com/dengliming/p/16872491.html

相关文章