Maven mvn Failed to execute goal org.codehaus.mojo:properties-maven-plugin:1.0-alp ha-2:read-project-properties

杰乐优 发布于 2015/08/06 16:06
阅读 3K+
收藏 0

我进入到 D:\AndroidInstall\maven-android-sdk-deployer-master 这个目录,

执行 mvn install 

或 mvn clean install 就抛出如下错误,折腾几天了,没有搞定,请教高手指点迷津, 谢谢!

[INFO]

[INFO] ------------------------------------------------------------------------
[INFO] Building Android Google Play Licensing Extra 2.7.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.6.1:clean (default-clean) @ play-licensing ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-maven) @ play-licensing
---
[INFO]
[INFO] --- properties-maven-plugin:1.0-alpha-2:read-project-properties (default)
 @ play-licensing ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Maven Android SDK Deployer ........................ SUCCESS [4.148s]
[INFO] Repositories ...................................... SUCCESS [0.013s]
[INFO] Google M2Repository ............................... SUCCESS [11.132s]
[INFO] Android M2Repository .............................. SUCCESS [26.617s]
[INFO] Android Extras .................................... SUCCESS [2.560s]
[INFO] Android Compatibility Extra V4 .................... SUCCESS [24.048s]
[INFO] Android Compatibility Extra V7 Gridlayout Library . SUCCESS [49.136s]
[INFO] Android Compatibility Extra V7 AppCompat Library .. SUCCESS [13.334s]
[INFO] Android Compatibility Extra V13 ................... SUCCESS [2.792s]
[INFO] Android Google Play Services Extra ................ SUCCESS [35.465s]
[INFO] Android Google Play Licensing Extra ............... FAILURE [0.074s]
[INFO] Android Extras - Apk Expansion .................... SKIPPED
[INFO] Android Google Play APK Expansion Extra - ZIP ..... SKIPPED
[INFO] Android Google Play APK Expansion Extra - Downloader  SKIPPED
[INFO] Android MultiDex .................................. SKIPPED
[INFO] Android Platforms ................................. SKIPPED
[INFO] Android Platform 2.2 API 8 ........................ SKIPPED
[INFO] Android Platform 2.3.3 API 10 ..................... SKIPPED
[INFO] Android Platform 4.0.3 API 15 ..................... SKIPPED
[INFO] Android Platform 4.1 API 16 ....................... SKIPPED
[INFO] Android Platform 4.2 API 17 ....................... SKIPPED
[INFO] Android Platform 4.3 API 18 ....................... SKIPPED
[INFO] Android Platform 4.4 API 19 ....................... SKIPPED
[INFO] Android Platform 4.4W API 20 ...................... SKIPPED
[INFO] Android Platform 5.0 API 21 ....................... SKIPPED
[INFO] Android Platform 5.1 API 22 ....................... SKIPPED
[INFO] Android Platform MNC API 23 ....................... SKIPPED
[INFO] Android Add-Ons ................................... SKIPPED
[INFO] Android Add-On Google Platform 2.2 API 8 (Maps) ... SKIPPED
[INFO] Android Add-On Google Platform 2.3.3 API 10 (Maps and USB)  SKIPPED
[INFO] Android Add-On Google Platform 4.0.3 API 15 (Maps and USB)  SKIPPED
[INFO] Android Add-On Google Platform 4.1 API 16 (Maps and USB)  SKIPPED
[INFO] Android Add-On Google Platform 4.2 API 17 (Maps and USB)  SKIPPED
[INFO] Android Add-On Google Platform 4.3 API 18 (Maps and USB)  SKIPPED
[INFO] Android Add-On Google Platform 4.4 API 19 (Maps and USB)  SKIPPED
[INFO] Android Add-On Google Platform 5.0 API 21 (Maps and USB)  SKIPPED
[INFO] Android Add-On Google Platform 5.1 API 22 (Maps and USB)  SKIPPED
[INFO] Google Glass Development Kit (GDK) API 19 ......... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2:56.762s
[INFO] Finished at: Thu Aug 06 15:27:03 CST 2015
[INFO] Final Memory: 35M/82M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:properties-maven-plugin:1.0-alp
ha-2:read-project-properties (default) on project play-licensing: Properties fil
e not found: D:\AndroidInstall\android_sdk\extras\google\play_licensing\source.p
roperties -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command


[ERROR]   mvn <goals> -rf :play-licensing
D:\AndroidInstall\maven-android-sdk-deployer-master>
加载中
0
尛小
尛小

1.首先找到文件对应位置,查看propeties文件是否存在,如果存在.

2.查看pom.xml配置文件对应地址是否和properties文件所在地址是否一致

3.参考https://blog.csdn.net/leechy/article/details/7999527该文章,修改pom.xml的配置

返回顶部
顶部