Move osgi bundle manifest generation to osgi profile.
Move osgi bundle manifest generation to osgi profile.

The generated manifests are incorrect, for instance, maven-project's manifest
misses the package-import org.apache.maven.artifact.transform which should come from 
maven-artifact CacheAware*.java.

Further, this doesn't work in an osgi environment, since if each artifact
is a bundle, then maven-embedder must have access to all component.xml files
in all maven core artifacts, and in all dependencies (which aren't bundles
but that can be fixed).
Osgi import/exports for packages work for resources too, but META-INF/ isn't
a package so this doesn't work. This may work with 'Require-Bundle'
(it does in my implementation although i don't think i follow the spec entirely ;)).
The next problem you get is classcasts for wagon (httplightweightwagon). This
has to be included in a bundle too and get proper exports. The same goes
for all other dependencies (plexus-*).
Maven and plexus are not suited for osgi yet - too much changing is required
in both the metadata structure, the code, and all dependencies and/or
packaging and binary inclusion of dependencies to make this work.
The best bet is to use the one-artifact embedder.



git-svn-id: 2c527eb49caa05e19d6b2be874bf74fa9d7ea670@549982 13f79535-47bb-0310-9956-ffa450edef68

wangyuesong/maven,trajano/maven,vedmishr/demo1,barthel/maven,changbai1980/maven,lbndev/maven,kidaa/maven-1,josephw/maven,mizdebsk/maven,aheritier/maven,keith-turner/maven,likaiwalkman/maven,skitt/maven,wangyuesong0/maven,vedmishr/demo1,karthikjaps/maven,rogerchina/maven,pkozelka/maven,dsyer/maven,gorcz/maven,cstamas/maven,atanasenko/maven,Mounika-Chirukuri/maven,pkozelka/maven,Distrotech/maven,pkozelka/maven,wangyuesong0/maven,skitt/maven,xasx/maven,skitt/maven,apache/maven,stephenc/maven,mizdebsk/maven,kidaa/maven-1,gorcz/maven,olamy/maven,wangyuesong0/maven,keith-turner/maven,Distrotech/maven,changbai1980/maven,gorcz/maven,apache/maven,keith-turner/maven,Tibor17/maven,njuneau/maven,apache/maven,rogerchina/maven,aheritier/maven,stephenc/maven,josephw/maven,barthel/maven,olamy/maven,karthikjaps/maven,wangyuesong/maven,trajano/maven,vedmishr/demo1,lbndev/maven,Mounika-Chirukuri/maven,ChristianSchulte/maven,cstamas/maven,mcculls/maven,mizdebsk/maven,njuneau/maven,trajano/maven,ChristianSchulte/maven,olamy/maven,njuneau/maven,atanasenko/maven,likaiwalkman/maven,mcculls/maven,aheritier/maven,josephw/maven,xasx/maven,mcculls/maven,cstamas/maven,rogerchina/maven,Tibor17/maven,stephenc/maven,runepeter/maven-deploy-plugin-2.8.1,kidaa/maven-1,wangyuesong/maven,atanasenko/maven,changbai1980/maven,dsyer/maven,karthikjaps/maven,barthel/maven,xasx/maven,likaiwalkman/maven,ChristianSchulte/maven,lbndev/maven,Mounika-Chirukuri/maven,runepeter/maven-deploy-plugin-2.8.1,dsyer/maven