title: Maven bundle packaging problem, known as MNG-4338
body: <p>I'm having trouble with the maven-bundle-plugin:</p>
  
  <p>I want to deploy my project as a osgi bundle, wherefore I use the packaging as bundle.
  But it seems that the pom does not know a packaging as a bundle. Here you can see my pom.xml:</p>
  
  <pre><code>&lt;project ...&gt;...
      &lt;packaging&gt;bundle&lt;/packaging&gt;
  &lt;version&gt;1.0.0&lt;/version&gt;
  
  &lt;name&gt;Simple CXF project using spring configuration&lt;/name&gt;
  
  &lt;properties&gt;
      &lt;cxf-version&gt;2.4.2&lt;/cxf-version&gt;
  &lt;/properties&gt;
  
  &lt;build&gt;
      &lt;pluginManagement&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;configuration&gt;
                      &lt;source&gt;1.5&lt;/source&gt;
                      &lt;target&gt;1.5&lt;/target&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.felix&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-bundle-plugin&lt;/artifactId&gt;
                  &lt;extensions&gt;true&lt;/extensions&gt;
                  &lt;version&gt;2.3.5&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;instructions&gt;
                          &lt;Bundle-SymbolicName&gt;${project.groupId}.${project.artifactId}&lt;/Bundle-SymbolicName&gt;
                          &lt;Bundle-Name&gt;${project.name}&lt;/Bundle-Name&gt;
                          &lt;Bundle-Version&gt;${project.version}&lt;/Bundle-Version&gt;
                          &lt;Export-Package&gt;demo.hw.server&lt;/Export-Package&gt;
                          &lt;Bundle-Activator&gt;demo.hw.server.Activator&lt;/Bundle-Activator&gt;
                          &lt;Require-Bundle&gt;org.apache.cxf.bundle&lt;/Require-Bundle&gt;
                      &lt;/instructions&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/pluginManagement&gt;
  &lt;/build&gt;
  
  &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
          &lt;artifactId&gt;cxf-rt-frontend-jaxws&lt;/artifactId&gt;
          &lt;version&gt;${cxf-version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
          &lt;artifactId&gt;cxf-rt-transports-http&lt;/artifactId&gt;
          &lt;version&gt;${cxf-version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.felix&lt;/groupId&gt;
          &lt;artifactId&gt;org.osgi.core&lt;/artifactId&gt;
          &lt;version&gt;1.4.0&lt;/version&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p>They say, this bug has already been fixed (http://jira.codehaus.org/browse/MNG-4338), but to me it seems it hasn't. Has anyone encountered this problem before and found a solution?</p>
  
  <p>The Error message is like this:</p>
  
  <pre><code>[INFO] Scanning for projects...
  [ERROR] The build could not read 1 project -&gt; [Help 1]
  [ERROR]   
  [ERROR]   The project com.talend.liugang.cxf:java_first_jaxws:1.0.0 (C:\Users\Andreas\workspace\java_first_jaxws\pom.xml) has 1 error
  [ERROR]     Unknown packaging: bundle @ line 7, column 13
  [ERROR] 
  [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  [ERROR] 
  [ERROR] For more information about the errors and possible solutions, please read the following articles:
  [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
  </code></pre>
  
  <p>Best regards,
  saen</p>