使用Eclipse创建Maven Web工程的时候,总是报如下的错误.内网搭建了一个Nexus,下载一般构件正常.总是怀疑插件相关配置有问题,但还未解决.
如果哪位大侠有相关经验,请不吝赐教,感激不尽.
从CSDN上找到了方案:
解决方案:
在Eclipse Maven配置中添加新的Catalog配置:
http://repo1.maven.org/maven2/archetype-catalog.xml
[img]https://img-blog.csdn.net/20131015221959062?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvYWZnYXNkZw==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast[/img]
接下来在使用刚添加的catalog创建web工程
[img]https://img-blog.csdn.net/20131015222052500?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvYWZnYXNkZw==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast[/img]
这个时候就可以看到Eclipse联网下载了.
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 (/home/qianxg/.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 (/home/qianxg/.m2/repository)
如果哪位大侠有相关经验,请不吝赐教,感激不尽.
从CSDN上找到了方案:
解决方案:
在Eclipse Maven配置中添加新的Catalog配置:
http://repo1.maven.org/maven2/archetype-catalog.xml
[img]https://img-blog.csdn.net/20131015221959062?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvYWZnYXNkZw==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast[/img]
接下来在使用刚添加的catalog创建web工程
[img]https://img-blog.csdn.net/20131015222052500?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvYWZnYXNkZw==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast[/img]
这个时候就可以看到Eclipse联网下载了.