我无法在STS
中创建maven项目。因为当我选择任何原型时它会显示此错误。
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)
答案 0 :(得分:0)
执行if ($host ~ ^(example.com|www.example.com)$) {
return 301 https://$server_name$request_uri;
}
命令解决它。
答案 1 :(得分:0)
我要做以下事情: