[ https://issues.apache.org/jira/browse/CB-4275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13754007#comment-13754007 ]
Braden Shepherdson commented on CB-4275: ---------------------------------------- We should probably approach this by having a top-level, non-platform-specific lists of explicitly installed plugins. Then the list that gets used when a platform is added is that list, not "ls plugins/". > cordova-cli platform remove/platform add causes subsequent plugin remove/ > plugin add to fail > -------------------------------------------------------------------------------------------- > > Key: CB-4275 > URL: https://issues.apache.org/jira/browse/CB-4275 > Project: Apache Cordova > Issue Type: Bug > Components: CLI > Affects Versions: Master, 3.0.0 > Environment: verified with android, should also be true with other > platforms > Reporter: David Kemp > Assignee: Braden Shepherdson > Priority: Minor > > when you run cordova platform remove, then cordova platform add > the plugin dependencies are not preserved (lpugins/*.json). > when you then run cordova plugin remove, it will not cleanly remove all > plugins because the dependency information is incorrect. > to replicate: > * create a mobilespec project > * cordova platform add android > * cordova plugin add ../cordova-mobile-spec/dependencies-plugin > * cordova platform remove android > * cordova platform add android > * cordova plugin remove org.cordova.mobile-spec-dependencies > * cordova plugin add ../cordova-mobile-spec/dependencies-plugin > You will now find that the plugins are not installed correctly - specifically > platforms/android/src/org/apache/cordova/core/ is missing a number of java > files. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira