| 304 | === Redeploy the plugin === |
| 305 | |
| 306 | Once you've made any changes to the plugin files, you have to build the plugin again. Just like before in the plugin terminal: |
| 307 | |
| 308 | {{{ |
| 309 | #!sh |
| 310 | mvn clean package |
| 311 | }}} |
| 312 | |
| 313 | Once building is complete the changed plugin is redeployed automatically. You'll notice activity in the DeepaMehta terminal: |
| 314 | |
| 315 | {{{ |
| 316 | #!txt |
| 317 | Apr 8, 2013 1:10:40 AM de.deepamehta.core.osgi.PluginActivator stop |
| 318 | INFO: ========== Stopping plugin "DeepaMehta 4 Tagging" ========== |
| 319 | Apr 8, 2013 1:10:40 AM de.deepamehta.core.impl.PluginImpl removeService |
| 320 | INFO: Removing DeepaMehta 4 core service from plugin "DeepaMehta 4 Tagging" |
| 321 | Apr 8, 2013 1:10:40 AM de.deepamehta.core.impl.PluginImpl removeService |
| 322 | INFO: Removing Web Publishing service from plugin "DeepaMehta 4 Tagging" |
| 323 | Apr 8, 2013 1:10:40 AM de.deepamehta.core.impl.PluginImpl removeService |
| 324 | INFO: Removing Event Admin service from plugin "DeepaMehta 4 Tagging" |
| 325 | ... |
| 326 | ... |
| 327 | Apr 8, 2013 1:10:44 AM de.deepamehta.core.osgi.PluginActivator start |
| 328 | INFO: ========== Starting plugin "DeepaMehta 4 Tagging" ========== |
| 329 | ... |
| 330 | ... |
| 331 | Apr 8, 2013 1:10:44 AM de.deepamehta.core.impl.PluginManager activatePlugin |
| 332 | INFO: ----- Activating plugin "DeepaMehta 4 Tagging" ----- |
| 333 | Apr 8, 2013 1:10:44 AM de.deepamehta.core.impl.PluginImpl createPluginTopicIfNotExists |
| 334 | INFO: Installing plugin "DeepaMehta 4 Tagging" in the database ABORTED -- already installed |
| 335 | Apr 8, 2013 1:10:44 AM de.deepamehta.core.impl.MigrationManager runPluginMigrations |
| 336 | INFO: Running migrations for plugin "DeepaMehta 4 Tagging" ABORTED -- everything up-to-date (migrationNr=1) |
| 337 | ... |
| 338 | ... |
| 339 | Apr 8, 2013 1:10:44 AM de.deepamehta.core.impl.PluginManager activatePlugin |
| 340 | INFO: ----- Activation of plugin "DeepaMehta 4 Tagging" complete ----- |
| 341 | Apr 8, 2013 1:10:44 AM de.deepamehta.core.impl.PluginManager checkAllPluginsActivated |
| 342 | INFO: ### Bundles total: 33, DeepaMehta plugins: 17, Activated: 17 |
| 343 | Apr 8, 2013 1:10:44 AM de.deepamehta.core.impl.PluginManager activatePlugin |
| 344 | INFO: ########## All Plugins Activated ########## |
| 345 | Apr 8, 2013 1:10:44 AM de.deepamehta.plugins.webclient.WebclientPlugin allPluginsActive |
| 346 | INFO: ### Launching webclient (url="http://localhost:8080/de.deepamehta.webclient/") ABORTED -- already launched |
| 347 | ... |
| 348 | }}} |
| 349 | |
| 350 | In contrast to the initial build of the plugin you can recognize some differences in this log: |
| 351 | |
| 352 | * The old version of the plugin currently deployed is stopped. |
| 353 | * The new version of the plugin is deployed (that is //started// and //activated//) right away. |
| 354 | * The plugin is //not// installed again in the database as already done while initial build. |
| 355 | * The migration is //not// run again as already done while initial build. |