首页 > 其他分享 >在Intellij idea里使用Maven导入spring-boot-maven-plugin解决一直downloading问题

在Intellij idea里使用Maven导入spring-boot-maven-plugin解决一直downloading问题

时间:2022-11-30 19:01:30浏览次数:55  
标签:INFO 3.6 --- downloading central Intellij boot maven


在Intellij idea里使用Maven导入spring-boot-maven-plugin解决一直downloading问题_maven

依次clean,package后

"C:\Program Files\Java\jdk1.8.0_131\bin\java.exe" -Dmaven.multiModuleProjectDirectory=F:\ideacode\springboothelloworld -Dmaven.home=E:\maven-3.6.1\apache-maven-3.6.1 -Dclassworlds.conf=E:\maven-3.6.1\apache-maven-3.6.1\bin\m2.conf "-javaagent:E:\idea\IntelliJ IDEA 2018.1.4\lib\idea_rt.jar=61903:E:\idea\IntelliJ IDEA 2018.1.4\bin" -Dfile.encoding=UTF-8 -classpath E:\maven-3.6.1\apache-maven-3.6.1\boot\plexus-classworlds-2.6.0.jar org.codehaus.classworlds.Launcher -Didea.version=2018.1.4 -s E:\maven-3.6.1\apache-maven-3.6.1\conf\settings.xml package -f pom.xml
[ERROR] Error executing Maven.
[ERROR] 2 problems were encountered while building the effective settings
[FATAL] Non-parseable settings E:\maven-3.6.1\apache-maven-3.6.1\conf\settings.xml: in comment after two dashes (--) next character must be > not (position: END_TAG seen ...</mirror>\n\n <!-- ... @164:14) @ E:\maven-3.6.1\apache-maven-3.6.1\conf\settings.xml, line 164, column 14
[FATAL] Non-parseable settings E:\maven-3.6.1\apache-maven-3.6.1\conf\settings.xml: in comment after two dashes (--) next character must be > not (position: END_TAG seen ...</mirror>\n\n <!-- ... @164:14) @ E:\maven-3.6.1\apache-maven-3.6.1\conf\settings.xml, line 164, column 14 Process finished with exit code 1

对setting.xml的mirror进行修改,并更改默认配置

<mirrors>
<mirror>
<id>alimaven</id>
<mirrorOf>central</mirrorOf>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/repositories/central/</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>central</id>
<name>Maven Repository Switchboard</name>
<url>http://repo1.maven.org/maven2/</url>
<mirrorOf>central</mirrorOf>
</mirror>
<mirror>
<id>repo2</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://repo2.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>google-maven-central</id>
<name>Google Maven Central</name>
<url>https://maven-central.storage.googleapis.com
</url>
<mirrorOf>central</mirrorOf>
</mirror>
<!-- 中央仓库在中国的镜像 -->
<mirror>
<id>maven.net.cn</id>
<name>oneof the central mirrors in china</name>
<url>http://maven.net.cn/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>

在Intellij idea里使用Maven导入spring-boot-maven-plugin解决一直downloading问题_idea_02

"C:\Program Files\Java\jdk1.8.0_131\bin\java.exe" -Dmaven.multiModuleProjectDirectory=F:\ideacode\springboot01helloworld -Dmaven.home=E:\maven-3.6.1\apache-maven-3.6.1 -Dclassworlds.conf=E:\maven-3.6.1\apache-maven-3.6.1\bin\m2.conf "-javaagent:E:\idea\IntelliJ IDEA 2018.1.4\lib\idea_rt.jar=62513:E:\idea\IntelliJ IDEA 2018.1.4\bin" -Dfile.encoding=UTF-8 -classpath E:\maven-3.6.1\apache-maven-3.6.1\boot\plexus-classworlds-2.6.0.jar org.codehaus.classworlds.Launcher -Didea.version=2018.1.4 -s E:\maven-3.6.1\apache-maven-3.6.1\conf\settings.xml package -f pom.xml
[WARNING] 
[WARNING] Some problems were encountered while building the effective settings
[WARNING] expected START_TAG or END_TAG not TEXT (position: TEXT seen ...ion\n   |       variables for plugins in the POM.\n   |\n   |-->\n  <p... @222:5)  @ E:\maven-3.6.1\apache-maven-3.6.1\conf\settings.xml, line 222, column 5
[WARNING] expected START_TAG or END_TAG not TEXT (position: TEXT seen ...ion\n   |       variables for plugins in the POM.\n   |\n   |-->\n  <p... @222:5)  @ E:\maven-3.6.1\apache-maven-3.6.1\conf\settings.xml, line 222, column 5
[WARNING] 
[INFO] Scanning for projects...
[INFO] 
[INFO] ---------------< com.cnstrong:spring-boot-01-helloworld >---------------
[INFO] Building spring-boot-01-helloworld 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ spring-boot-01-helloworld ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] Copying 0 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ spring-boot-01-helloworld ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 2 source files to F:\ideacode\springboot01helloworld\target\classes
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ spring-boot-01-helloworld ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory F:\ideacode\springboot01helloworld\src\test\resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ spring-boot-01-helloworld ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ spring-boot-01-helloworld ---
[INFO] No tests to run.
[INFO] 
[INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ spring-boot-01-helloworld ---
[INFO] Building jar: F:\ideacode\springboot01helloworld\target\spring-boot-01-helloworld-1.0-SNAPSHOT.jar
[INFO] 
[INFO] --- spring-boot-maven-plugin:1.5.9.RELEASE:repackage (default) @ spring-boot-01-helloworld ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  4.441 s
[INFO] Finished at: 2019-08-26T17:32:23+08:00
[INFO] ------------------------------------------------------------------------

Process finished with exit code 0

在Intellij idea里使用Maven导入spring-boot-maven-plugin解决一直downloading问题_ide_03

标签:INFO,3.6,---,downloading,central,Intellij,boot,maven
From: https://blog.51cto.com/u_12528551/5900194

相关文章

  • Eclipse创建maven工程
    最后的目录结构1、都不勾,next finish2、发现index.jsp出错3、4、项目上右键,重新生成web.xml,版本3.15、6、7、右键Maven,updateprojects,直到problems......
  • 在Eclipse中用Maven创建Servlet实现输出Hello World
    1、新建servlet2、内容如图3、重新部署运行......
  • Eclipse加入Maven Integration for Eclipse插件后创建Maven工程
    将更改为:进入此页面此时目录结构为:加入依赖错误消失最后的目录结构为:......
  • maven配置文件
    maven配置文件<build><finalName>${project.artifactId}</finalName><resources><resource><directory>src/main/java</directory><i......
  • maven项目搭建web的war包,并配置到tomcat中
    1.新建项目,File→New→Project2.给项目添加一个Web模块3.在Web上,点击createartifact生成artifact4.给生成的artifact打包Artifacts:重要的一环,一个modu......
  • maven ssm 连接oracle
    复制dependency到pom.xml中,并下载jar包(页面上有)mvninstall:install-file-Dfile=ojdc6.jar-DgroupId=com.oracle-DartifactId=ojdbc6-Dversion=11.2.0.3-Dpackaging=ja......
  • SpringBoot Maven RepackageMojo 打包失败原因
    maven打包提示:org/springframework/boot/maven/RepackageMojohasbeencompiledbyamorerecentversionoftheJavaRuntime(classfileversion61.0),thisver......
  • maven 私服nexus的使用
    源码安装方式搭建因nexus比较消耗资源,linux环境需要提供至少2G以上内存1、下载源码包​​https://www.sonatype.com/download-oss-sonatype下选择unix版本​​或者到peter的......
  • maven的插件
    插件plugin是绑定到生命周期,承担实际功能的组件。mvn运行时,自动关联插件来运行下图是maven默认的各阶段对应的插件列表:生命周期生命周期阶段插件目标执行任务cleanpre-clean......
  • IntelliJ IDEA:Unregistered VCS root detected. The directory…is under Git, but i
    https://blog.csdn.net/CHENYUFENG1991/article/details/74136439/当我们在IDEA中导入一个Git项目或者初始化一个Git项目的时候,往往会出现“UnregisteredVCSrootdetect......