121 | | This starts DeepaMehta in development mode, that is with hot-deployment activated. The terminal gets occupied by the //Gogo// shell now. Type `lb` to see the list of deployed bundles. Your plugin does not yet appear in that list as it is not yet build. |
| 153 | This starts DeepaMehta in development mode, that is with hot-deployment activated. You'll see a lot of information logged, commulating with: |
| 154 | |
| 155 | {{{ |
| 156 | #!txt |
| 157 | ... |
| 158 | Apr 6, 2013 11:21:20 PM de.deepamehta.core.impl.PluginManager checkAllPluginsActivated |
| 159 | INFO: ### Bundles total: 32, DeepaMehta plugins: 16, Activated: 16 |
| 160 | Apr 6, 2013 11:21:20 PM de.deepamehta.core.impl.PluginManager activatePlugin |
| 161 | INFO: ########## All Plugins Activated ########## |
| 162 | Apr 6, 2013 11:21:20 PM de.deepamehta.plugins.webclient.WebclientPlugin allPluginsActive |
| 163 | INFO: ### Launching webclient (url="http://localhost:8080/de.deepamehta.webclient/") |
| 164 | ... |
| 165 | }}} |
| 166 | |
| 167 | Then a browser windows opens automatically and displays the typical DeepaMehta webclient. |
| 168 | |
| 169 | The terminal is now occupied by the //Gogo// shell. Press the return key some times and you'll see its `g!` prompt. |
| 170 | |
| 171 | Type the `lb` command to get the list of activated bundles: |
| 172 | |
| 173 | {{{ |
| 174 | #!sh |
| 175 | g! lb |
| 176 | }}} |
| 177 | |
| 178 | The output looks like this: |
| 179 | |
| 180 | {{{ |
| 181 | #!txt |
| 182 | START LEVEL 6 |
| 183 | ID|State |Level|Name |
| 184 | 0|Active | 0|System Bundle (3.2.1) |
| 185 | ... |
| 186 | 14|Active | 5|DeepaMehta 4 Help (4.1.1.SNAPSHOT) |
| 187 | 15|Active | 5|DeepaMehta 4 Topicmaps (4.1.1.SNAPSHOT) |
| 188 | 16|Active | 5|DeepaMehta 4 Webservice (4.1.1.SNAPSHOT) |
| 189 | 17|Active | 5|DeepaMehta 4 Files (4.1.1.SNAPSHOT) |
| 190 | 18|Active | 5|DeepaMehta 4 Geomaps (4.1.1.SNAPSHOT) |
| 191 | 19|Active | 5|DeepaMehta 4 Storage - Neo4j (4.1.1.SNAPSHOT) |
| 192 | 20|Active | 5|DeepaMehta 4 Core (4.1.1.SNAPSHOT) |
| 193 | 21|Active | 5|DeepaMehta 4 Access Control (4.1.1.SNAPSHOT) |
| 194 | 22|Active | 5|DeepaMehta 4 Webclient (4.1.1.SNAPSHOT) |
| 195 | 23|Active | 5|DeepaMehta 4 Webbrowser (4.1.1.SNAPSHOT) |
| 196 | 24|Active | 5|DeepaMehta 4 Type Search (4.1.1.SNAPSHOT) |
| 197 | 25|Active | 5|DeepaMehta 4 Workspaces (4.1.1.SNAPSHOT) |
| 198 | 26|Active | 5|DeepaMehta 4 Notes (4.1.1.SNAPSHOT) |
| 199 | 27|Active | 5|DeepaMehta 4 Type Editor (4.1.1.SNAPSHOT) |
| 200 | 28|Active | 5|DeepaMehta 4 Contacts (4.1.1.SNAPSHOT) |
| 201 | 29|Active | 5|DeepaMehta 4 Facets (4.1.1.SNAPSHOT) |
| 202 | 30|Active | 5|DeepaMehta 4 File Manager (4.1.1.SNAPSHOT) |
| 203 | 31|Active | 5|DeepaMehta 4 Icon Picker (4.1.1.SNAPSHOT) |
| 204 | }}} |
| 205 | |
| 206 | The //DeepaMehta 4 Tagging// plugin does not yet appear in that list as it is not yet build. |
131 | | This builds the plugin and hot-deploys it. |
132 | | |
| 217 | This builds the plugin. After some seconds you'll see: |
| 218 | |
| 219 | {{{ |
| 220 | #!txt |
| 221 | ... |
| 222 | [INFO] ------------------------------------------------------------------------ |
| 223 | [INFO] BUILD SUCCESS |
| 224 | [INFO] ------------------------------------------------------------------------ |
| 225 | [INFO] Total time: 3.988s |
| 226 | ... |
| 227 | }}} |
| 228 | |
| 229 | Once build, DeepaMehta hot-deploys the plugin automatically. In the terminal where you've started DeepaMehta the logging informs you about plugin activation: |
| 230 | |
| 231 | {{{ |
| 232 | #!txt |
| 233 | Apr 6, 2013 11:38:40 PM de.deepamehta.core.impl.PluginImpl readConfigFile |
| 234 | INFO: Reading config file "/plugin.properties" for plugin "DeepaMehta 4 Tagging" |
| 235 | Apr 6, 2013 11:38:40 PM de.deepamehta.core.osgi.PluginActivator start |
| 236 | INFO: ========== Starting plugin "DeepaMehta 4 Tagging" ========== |
| 237 | Apr 6, 2013 11:38:40 PM de.deepamehta.core.impl.PluginImpl createPluginServiceTrackers |
| 238 | INFO: Tracking plugin services for plugin "DeepaMehta 4 Tagging" ABORTED -- no consumed services declared |
| 239 | Apr 6, 2013 11:38:40 PM de.deepamehta.core.impl.PluginImpl addService |
| 240 | INFO: Adding DeepaMehta 4 core service to plugin "DeepaMehta 4 Tagging" |
| 241 | Apr 6, 2013 11:38:40 PM de.deepamehta.core.impl.PluginImpl addService |
| 242 | INFO: Adding Web Publishing service to plugin "DeepaMehta 4 Tagging" |
| 243 | Apr 6, 2013 11:38:40 PM de.deepamehta.core.impl.PluginImpl registerWebResources |
| 244 | INFO: Registering Web resources of plugin "DeepaMehta 4 Tagging" ABORTED -- no Web resources provided |
| 245 | Apr 6, 2013 11:38:40 PM de.deepamehta.core.impl.PluginImpl registerRestResources |
| 246 | INFO: Registering REST resources of plugin "DeepaMehta 4 Tagging" ABORTED -- no REST resources provided |
| 247 | Apr 6, 2013 11:38:40 PM de.deepamehta.core.impl.PluginImpl registerRestResources |
| 248 | INFO: Registering provider classes of plugin "DeepaMehta 4 Tagging" ABORTED -- no provider classes provided |
| 249 | Apr 6, 2013 11:38:40 PM de.deepamehta.core.impl.PluginImpl addService |
| 250 | INFO: Adding Event Admin service to plugin "DeepaMehta 4 Tagging" |
| 251 | Apr 6, 2013 11:38:40 PM de.deepamehta.core.impl.PluginManager activatePlugin |
| 252 | INFO: ----- Activating plugin "DeepaMehta 4 Tagging" ----- |
| 253 | Apr 6, 2013 11:38:40 PM de.deepamehta.core.impl.PluginImpl createPluginTopicIfNotExists |
| 254 | INFO: Installing plugin "DeepaMehta 4 Tagging" in the database |
| 255 | Apr 6, 2013 11:38:40 PM de.deepamehta.core.impl.MigrationManager runPluginMigrations |
| 256 | INFO: Running 1 migrations for plugin "DeepaMehta 4 Tagging" (migrationNr=0, requiredMigrationNr=1) |
| 257 | Apr 6, 2013 11:38:40 PM de.deepamehta.core.impl.MigrationManager$MigrationInfo readMigrationConfigFile |
| 258 | INFO: Reading migration config file "/migrations/migration1.properties" ABORTED -- file does not exist |
| 259 | Apr 6, 2013 11:38:40 PM de.deepamehta.core.impl.MigrationManager runMigration |
| 260 | INFO: Running migration 1 of plugin "DeepaMehta 4 Tagging" (runMode=ALWAYS, isCleanInstall=true) |
| 261 | Apr 6, 2013 11:38:40 PM de.deepamehta.core.util.DeepaMehtaUtils readMigrationFile |
| 262 | INFO: Reading migration file "/migrations/migration1.json" |
| 263 | Apr 6, 2013 11:38:40 PM de.deepamehta.core.impl.MigrationManager runMigration |
| 264 | INFO: Completing migration 1 of plugin "DeepaMehta 4 Tagging" |
| 265 | Apr 6, 2013 11:38:40 PM de.deepamehta.core.impl.MigrationManager runMigration |
| 266 | INFO: Updating migration number (1) |
| 267 | Apr 6, 2013 11:38:40 PM de.deepamehta.core.impl.AttachedTopic update |
| 268 | INFO: Updating topic 2690 (new topic (id=-1, uri="", typeUri="dm4.core.plugin_migration_nr", value="1", composite={})) |
| 269 | Apr 6, 2013 11:38:40 PM de.deepamehta.core.impl.AttachedDeepaMehtaObject updateSimpleValue |
| 270 | INFO: ### Changing simple value of topic 2690 from "0" -> "1" |
| 271 | Apr 6, 2013 11:38:40 PM de.deepamehta.core.impl.PluginImpl registerListeners |
| 272 | INFO: Registering listeners of plugin "DeepaMehta 4 Tagging" at DeepaMehta 4 core service ABORTED -- no listeners implemented |
| 273 | Apr 6, 2013 11:38:40 PM de.deepamehta.core.impl.PluginImpl registerPluginService |
| 274 | INFO: Registering OSGi service of plugin "DeepaMehta 4 Tagging" ABORTED -- no OSGi service provided |
| 275 | Apr 6, 2013 11:38:40 PM de.deepamehta.core.impl.PluginManager activatePlugin |
| 276 | INFO: ----- Activation of plugin "DeepaMehta 4 Tagging" complete ----- |
| 277 | Apr 6, 2013 11:38:40 PM de.deepamehta.core.impl.PluginManager checkAllPluginsActivated |
| 278 | INFO: ### Bundles total: 33, DeepaMehta plugins: 17, Activated: 17 |
| 279 | Apr 6, 2013 11:38:40 PM de.deepamehta.core.impl.PluginManager activatePlugin |
| 280 | INFO: ########## All Plugins Activated ########## |
| 281 | Apr 6, 2013 11:38:40 PM de.deepamehta.plugins.webclient.WebclientPlugin allPluginsActive |
| 282 | INFO: ### Launching webclient (url="http://localhost:8080/de.deepamehta.webclient/") ABORTED -- already launched |
| 283 | ... |
| 284 | }}} |
| 285 | |
| 286 | When you type again `lb` in the DeepaMehta terminal you'll see the plugin in the list of activated bundles: |
| 287 | |
| 288 | {{{ |
| 289 | #!txt |
| 290 | START LEVEL 6 |
| 291 | ID|State |Level|Name |
| 292 | 0|Active | 0|System Bundle (3.2.1) |
| 293 | ... |
| 294 | 30|Active | 5|DeepaMehta 4 File Manager (4.1.1.SNAPSHOT) |
| 295 | 31|Active | 5|DeepaMehta 4 Icon Picker (4.1.1.SNAPSHOT) |
| 296 | 32|Active | 5|DeepaMehta 4 Tagging (0.1.0.SNAPSHOT) |
| 297 | }}} |