Error when running mvn archetype:generate

问题: I'm trying to run a maven command to generate a project structure, but I get the following error : Failed to resolve artifact, possibly due to a repository list that...

问题:

I'm trying to run a maven command to generate a project structure, but I get the following error :

Failed to resolve artifact, possibly due to a repository list that is not appropriately equipped for this artifact's metadata. org.apache.maven.plugins:maven-archetype-plugin:pom:3.0.2-SNAPSHOT

I think that the problem is that maven is using version 3.0.2-SNAPSHOT of maven-archetype-plugin but I don't where I can change it. I also looked in the repository in which mvn search the artifact and I didn't find this version.
does anyone know whatis the problem or where I can change the version of maven-archetype-plugin
UPDATE I'm using Maven 2.2.1


回答1:

You can try running it that way: mvn org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate.

This will force the maven-archetype-plugin version to use.

As seen here, there is no version above 3.0.1

  • 发表于 2018-07-13 22:36
  • 阅读 ( 260 )
  • 分类:sof

条评论

请先 登录 后评论
不写代码的码农
小编

篇文章

作家榜 »

  1. 小编 文章
返回顶部
部分文章转自于网络,若有侵权请联系我们删除