ServiceMix features-maven-plugin should not create the features for the 
artifact which type is pom
--------------------------------------------------------------------------------------------------

                 Key: SMX4KNL-273
                 URL: https://issues.apache.org/activemq/browse/SMX4KNL-273
             Project: ServiceMix Kernel
          Issue Type: Bug
    Affects Versions: 1.1.0, 1.0.0
            Reporter: Willem Jiang
             Fix For: 1.2.0
         Attachments: SMX4KNL-273.patch

If I include the kernel dependency but set the scope not be provided , I got 
the below error.
It looks like the features-maven-plugin will try to create a feature for the 
artifact which type is pom.

[INFO] Step 4 : Generating D:\work\camel\trunk\platforms\karaf\features\target\c
      lasses\feature.xml
      [INFO]  Generating feature apache-servicemix-kernel from 
org.apache.servicemix.k
      ernel:apache-servicemix-kernel:pom:1.1.0:compile
      [ERROR]
        java.util.zip.ZipException: error in opening zip file
              at java.util.zip.ZipFile.open(Native Method)
              at java.util.zip.ZipFile.<init>(ZipFile.java:203)
              at java.util.zip.ZipFile.<init>(ZipFile.java:234)
              at 
org.apache.servicemix.tooling.features.GenerateFeaturesXmlMojo.getMan
        ifest(GenerateFeaturesXmlMojo.java:497)
              at 
org.apache.servicemix.tooling.features.GenerateFeaturesXmlMojo.addReq
        uirements(GenerateFeaturesXmlMojo.java:369)
              at 
org.apache.servicemix.tooling.features.GenerateFeaturesXmlMojo.getFea
        ture(GenerateFeaturesXmlMojo.java:315)
              at 
org.apache.servicemix.tooling.features.GenerateFeaturesXmlMojo.writeF
        eatures(GenerateFeaturesXmlMojo.java:301)
              at 
org.apache.servicemix.tooling.features.GenerateFeaturesXmlMojo.execut
        e(GenerateFeaturesXmlMojo.java:149)
              at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
        nManager.java:451)
              at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
        ultLifecycleExecutor.java:558)
              at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
        fecycle(DefaultLifecycleExecutor.java:499)
              at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
        ltLifecycleExecutor.java:478)
        ......

      [INFO] 
------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] 
------------------------------------------------------------------------
      [INFO] Unable to create features.xml file: java.util.zip.ZipException: 
error in
      opening zip file

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to