Changed app-lifecycle-maven-plugin for the new nexus-plugin-bundle-maven-plugin

nexus-plugin-bundle-maven-plugin replaces the app-lifecycle-maven-plugin
according to https://issues.sonatype.org/browse/NEXUS-2284
Added type definitions to the dependencies for correct bundle generation

Without setting the type of nexus-indexer-lucene-plugin to nexus-plugin
it wasn't properly included in the plugin.xml, causing classpath errors
when running the plugin.
Workaroround for NEXUS-5799.

NEXUS-5799 (https://issues.sonatype.org/browse/NEXUS-5799) may cause the
apt plugin to be run before the min plugin, meaning that
updateArtifactInfo won't do anything, but updateDocument and
populateArtifactInfo will since the fextension property is set after
updateArtifactInfo is executed. By checking the filename in the Document
instead of the fextension property in the ArtifactInfo, this issue is
avoided and updateArtifactInfo will execute properly.

I also changed from using the fextension property to using packaging,
which is more appropriate.