我已經安裝了開普勒的最後一個版本的一個嵌入了 行家當我試過很多次,從任何原型 我總是得到Maven 3 Eclipse Kepler是否有必要讓環境變量適用於嵌入式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\onourdean\.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\onourdean\.m2\repository)
即使創建應用程序:
- 我已經刪除.m2中的存儲庫文件夾,並通過它自己創建它
- 我已經下載了一個外部的maven並使用它
- 我做了專業版xy坐在嵌入式和外部上
任何其他的想法?我的settings.xml
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<pluginGroups>
</pluginGroups>
<proxies>
<proxy>
<active>true</active>
<protocol>http</protocol>
<host>stsproxy</host>
<port>8080</port>
<nonProxyHosts>localhost|127.0.0.1</nonProxyHosts>
</proxy>
</proxies>
<servers>
</servers>
<mirrors>
</mirrors>
<profiles>
</profiles>
</settings>
需要注意的是:
我曾嘗試在Create a Maven project in Eclipse complains "Could not resolve archetype"所有soultions除了製作一個Maven的變量由於公司限制,以便需要這個變量來運行嵌入式版本?
我沒有嘗試你的解決方案,在我的問題中提到它在http://stackoverflow.com/questions/15506043/create-a-maven-project-in-eclipse-complains-could-not-resolve-archetype @Nicola Musatti –