简体   繁体   English

我无法在STS中创建Maven项目

[英]I am not able to create maven Project in STS

I am not able to create maven Project in STS . 我无法在STS创建Maven项目。 Because when I am selecting any archetype its showing this error. 因为当我选择任何原型时,都会显示此错误。

Could not resolve archetype org.apache.maven.archetypes:maven-archetype-webapp:RELEASE from any of the configured repositories.

Could not resolve artifact org.apache.maven.archetypes:maven-archetype-webapp:pom:RELEASE

Failed to resolve version for org.apache.maven.archetypes:maven-archetype-webapp:pom:RELEASE:
Could not find metadata org.apache.maven.archetypes:maven-archetype-webapp/maven-metadata.xml in local (C:\Users\212550433\.m2\repository)

Failed to resolve version for org.apache.maven.archetypes:maven-archetype-webapp:pom:RELEASE:
Could not find metadata org.apache.maven.archetypes:maven-archetype-webapp/maven-metadata.xml in local (C:\Users\212550433\.m2\repository)

执行mvn clean install命令来解决它。

I'd do the following: 我将执行以下操作:

  • Configure the STS to use an external Maven instance 配置STS以使用外部Maven实例
  • Check the external instance works from the command line 从命令行检查外部实例的工作情况
  • Try to create the maven project again from STS 尝试再次从STS创建Maven项目

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM