我有Flex项目,我需要flexmojos-maven-plugin来构建它。
<plugin>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
...
</plugin>我还提到了存储库。
<repositories>
<repository>
<id>flexmojos</id>
<url>http://repository.sonatype.org/content/groups/flexgroup/</url>
</repository>
</repositories>但maven会忽略它,也不会尝试从那里下载插件。
[INFO] Scanning for projects...
Downloading: http://repo1.maven.org/maven2/org/sonatype/flexmojos/flexmojos-maven-plugin/3.9/flexmojos-maven-plugin-3.9.jar
[INFO] Unable to find resource 'org.sonatype.flexmojos:flexmojos-maven-plugin:maven-plugin:3.9' in repository central (http://repo1.maven.org/maven2)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR请给我建议。谢谢!
发布于 2012-11-22 16:40:42
3.9版本似乎有问题。我可以成功下载3.8版,没有任何问题。但是3.9会触发"unable to find resource“错误。
我怀疑您在解析存储库时是否遇到过问题。有时,Maven输出并不能很好地显示它从远程repos读取的结果。尤其是当您重复运行相同的失败命令时(例如mvn clean install)。
查看一下您的本地存储库。如果您可以在org/sonatype/flexmojos下找到任何内容,那么您肯定正确地解析了存储库。
我建议你把这个贴在邮件列表上:https://docs.sonatype.org/display/FLEXMOJOS/Project+Information
https://stackoverflow.com/questions/13508097
复制相似问题