tacitus
@tacitus
веб-программист

Почему Netbeans при сборке проекта Cordova удаляет плагин whitelist?

При сборке проекта cordova в Netbeans 8.2 принудительно удаляется плагин cordova-plugin-whitelist. Вот вывод сборки:
ant -f "/home/xxx/NetBeansProjects/XReader/nbproject" -Dupdate.task.jar=/usr/local/netbeans-8.2/webcommon/ant/extra/org-netbeans-modules-cordova-projectupdate.jar -Dandroid.project.activity=contreader -Dsite.root=www -Dstart.file=index.html -Dandroid.sdk.home=/home/xxx/bin/android-sdk -Dandroid.target.device.arg=emulate -Dcordova.version=7.1.0-0.0.0 -Denv.DISPLAY=:0.0 "-Dios.certificate.name=iPhone Developer" -Dandroid.build.target=android-16 -Dconfig=android sim-android
check-android-template:
check-cordova-version:
check-cordova-project:
upgrade-to-cordova-project:
create-android:
update-plugins:
cordova plugins 
cordova -d plugin remove cordova-plugin-whitelist
No scripts found for hook "before_plugin_rm".
Calling plugman.uninstall on plugin "cordova-plugin-whitelist" for platform "android"
Running command: "/home/xxx/NetBeansProjects/XReader/platforms/android/cordova/version" 
Command finished with error code 0: /home/xxx/NetBeansProjects/XReader/platforms/android/cordova/version 
Finding scripts for "before_plugin_uninstall" hook from plugin cordova-plugin-whitelist on android platform only.
No scripts found for hook "before_plugin_uninstall".
Uninstalling cordova-plugin-whitelist from android
PlatformApi successfully found for platform android
Beginning processing of action stack for android project...
Action stack processing complete.
Removing "cordova-plugin-whitelist"
Deleted "cordova-plugin-whitelist"
Running command: npm uninstall cordova-plugin-whitelist --save

Соответственно, из config.xml удаляется описывающая его строка.
Почему так происходит?
  • Вопрос задан
  • 126 просмотров
Пригласить эксперта
Ответы на вопрос 1
@krogal
Нужно добавить в plugins.properties строку:
cordova-plugin-whitelist=https://github.com/apache/cordova-plugin-whitelist.git
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы