当我尝试安装 playn 时,我明白了:
[INFO] ------------------------------------------------------------------------
[INFO] Building PlayN Tests Android
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [enforcer:enforce {execution: enforce-maven}]
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Internal error in the plugin manager executing goal 'com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.1.1:generate-sources': Unable to find the mojo 'generate-sources' (or one of its required components) in the plugin 'com.jayway.maven.plugins.android.generation2:android-maven-plugin'
Component descriptor cannot be found in the component repository: org.sonatype.aether.RepositorySystem.
最佳答案
该错误是由在需要使用 Maven 3 时使用 Maven 2 引起的。
关于maven - 无法找到魔力 'generate-sources',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10559652/