P
P
Petr Sleptsov2017-12-20 12:13:45
Android
Petr Sleptsov, 2017-12-20 12:13:45

Why does Netbeans remove the whitelist plugin when building a Cordova project?

When building a cordova project on Netbeans 8.2, the cordova-plugin-whitelist plugin is forcibly removed. Here is the build output:

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

Accordingly, the line describing it is removed from config.xml.
Why is this happening?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
krogal, 2018-11-19
@krogal

You need to add the following line to plugins.properties:
cordova-plugin-whitelist= https://github.com/apache/cordova-plugin-whitelist.git

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question