You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2009/04/27 16:45:39 UTC

[jira] Created: (SMX4KNL-273) ServiceMix features-maven-plugin should not create the features for the artifact which type is pom

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.


[jira] Updated: (SMX4KNL-273) ServiceMix features-maven-plugin should not create the features for the artifact which type is pom

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SMX4KNL-273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang updated SMX4KNL-273:
---------------------------------

    Attachment: SMX4KNL-273.patch

> 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.0.0, 1.1.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.


[jira] Resolved: (SMX4KNL-273) ServiceMix features-maven-plugin should not create the features for the artifact which type is pom

Posted by "Gert Vanthienen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SMX4KNL-273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gert Vanthienen resolved SMX4KNL-273.
-------------------------------------

    Resolution: Fixed
      Assignee: Gert Vanthienen

Thanks to Willem for providing the patch!
Fixed in http://svn.apache.org/viewvc?view=rev&revision=769268

> 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.0.0, 1.1.0
>            Reporter: Willem Jiang
>            Assignee: Gert Vanthienen
>             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.