我完全是Maven的新手.我想用Eclipse Juno EE和原型"webapp"创建一个Maven项目.我安装了"Maven Integration for Eclipse WTP(孵化)",我还安装了"Maven Integration for Eclipse"(在Eclipse Marketplace的Installed选项卡上找到它).当我尝试从File-> New_> Maven Project创建新项目时,我得到错误:
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:\Documents and Settings\PEP35KD\.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:\Documents and Settings\PEP35KD\.m2\repository)
它适用于各种原型.我正在使用代理,我使用以下内容在C:\ Documents and Settings\PEP35KD.m2 \下创建文件settings.xml:
<proxies>
<proxy>
<id>myId</id>
<active>true</active>
<protocol>http</protocol>
<username>rete\pep35kd</username>
<password>XXXX</password>
<host>XXXX</host>
<port>8080</port> …Run Code Online (Sandbox Code Playgroud)