You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "David Bosschaert (JIRA)" <ji...@apache.org> on 2009/03/25 22:43:52 UTC

[jira] Created: (FELIX-1001) Error when trying to Export-Package a directory containing only resources

Error when trying to Export-Package a directory containing only resources
-------------------------------------------------------------------------

                 Key: FELIX-1001
                 URL: https://issues.apache.org/jira/browse/FELIX-1001
             Project: Felix
          Issue Type: Bug
          Components: Maven Bundle Plugin
    Affects Versions: maven-bundle-plugin-2.0.0
            Reporter: David Bosschaert


>From the following email thread: http://www.mail-archive.com/users@felix.apache.org/msg03705.html

For the CXF-DOSGi single-bundle distribution I need to export-package
a directory that just contains resources. In my pom [1], the directory
with the resources is copied into my bundle from an embedded bundle
using the following directive first:
 <Include-Resource>
   @cxf-bundle-minimal-${cxf.version}.jar!/META-INF/cxf/*
 </Include-Resource>
Then I just want to export the package using the following:
 <Export-Package>
   META-INF.cxf
 </Export-Package>
Note, my pom also contains some _exportcontents directives...

However, I'm getting the following error:
[ERROR] Error building bundle
org.apache.cxf.dosgi:cxf-dosgi-ri-singlebundle-distribution:bundle:1.0-SNAPSHOT
: Exporting packages that are not on the Bundle-Classpath[Jar:dot,
Jar:lib/geronimo-annotation_1.0_spec-1.1.1.jar, ... lots more
jars...]: [META-INF.cxf]

Anyone an idea on how I can get META-INF.cxf in my exported package list?

Thanks!

David

[1] http://svn.apache.org/repos/asf/cxf/dosgi/trunk/distribution/single-bundle/pom.xml

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


[jira] Closed: (FELIX-1001) Error when trying to Export-Package a directory containing only resources

Posted by "Stuart McCulloch (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1001?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stuart McCulloch closed FELIX-1001.
-----------------------------------

    Resolution: Won't Fix

Closing as according to Peter META-INF.cxf is not a valid package name, and therefore bnd is behaving correctly.
Note you can use <_failok>true</_failok> to force bnd to continue and generate the bundle even with build errors.

> Error when trying to Export-Package a directory containing only resources
> -------------------------------------------------------------------------
>
>                 Key: FELIX-1001
>                 URL: https://issues.apache.org/jira/browse/FELIX-1001
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-2.0.0
>            Reporter: David Bosschaert
>             Fix For: maven-bundle-plugin-2.1.0
>
>
> From the following email thread: http://www.mail-archive.com/users@felix.apache.org/msg03705.html
> For the CXF-DOSGi single-bundle distribution I need to export-package
> a directory that just contains resources. In my pom [1], the directory
> with the resources is copied into my bundle from an embedded bundle
> using the following directive first:
>  <Include-Resource>
>    @cxf-bundle-minimal-${cxf.version}.jar!/META-INF/cxf/*
>  </Include-Resource>
> Then I just want to export the package using the following:
>  <Export-Package>
>    META-INF.cxf
>  </Export-Package>
> Note, my pom also contains some _exportcontents directives...
> However, I'm getting the following error:
> [ERROR] Error building bundle
> org.apache.cxf.dosgi:cxf-dosgi-ri-singlebundle-distribution:bundle:1.0-SNAPSHOT
> : Exporting packages that are not on the Bundle-Classpath[Jar:dot,
> Jar:lib/geronimo-annotation_1.0_spec-1.1.1.jar, ... lots more
> jars...]: [META-INF.cxf]
> According to Stuart this is a bug in BND...
> Thanks!
> David
> [1] http://svn.apache.org/repos/asf/cxf/dosgi/trunk/distribution/single-bundle/pom.xml

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


[jira] Updated: (FELIX-1001) Error when trying to Export-Package a directory containing only resources

Posted by "David Bosschaert (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1001?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Bosschaert updated FELIX-1001:
------------------------------------

    Description: 
>From the following email thread: http://www.mail-archive.com/users@felix.apache.org/msg03705.html

For the CXF-DOSGi single-bundle distribution I need to export-package
a directory that just contains resources. In my pom [1], the directory
with the resources is copied into my bundle from an embedded bundle
using the following directive first:
 <Include-Resource>
   @cxf-bundle-minimal-${cxf.version}.jar!/META-INF/cxf/*
 </Include-Resource>
Then I just want to export the package using the following:
 <Export-Package>
   META-INF.cxf
 </Export-Package>
Note, my pom also contains some _exportcontents directives...

However, I'm getting the following error:
[ERROR] Error building bundle
org.apache.cxf.dosgi:cxf-dosgi-ri-singlebundle-distribution:bundle:1.0-SNAPSHOT
: Exporting packages that are not on the Bundle-Classpath[Jar:dot,
Jar:lib/geronimo-annotation_1.0_spec-1.1.1.jar, ... lots more
jars...]: [META-INF.cxf]

According to Stuart this is a bug in BND...

Thanks!

David

[1] http://svn.apache.org/repos/asf/cxf/dosgi/trunk/distribution/single-bundle/pom.xml

  was:
>From the following email thread: http://www.mail-archive.com/users@felix.apache.org/msg03705.html

For the CXF-DOSGi single-bundle distribution I need to export-package
a directory that just contains resources. In my pom [1], the directory
with the resources is copied into my bundle from an embedded bundle
using the following directive first:
 <Include-Resource>
   @cxf-bundle-minimal-${cxf.version}.jar!/META-INF/cxf/*
 </Include-Resource>
Then I just want to export the package using the following:
 <Export-Package>
   META-INF.cxf
 </Export-Package>
Note, my pom also contains some _exportcontents directives...

However, I'm getting the following error:
[ERROR] Error building bundle
org.apache.cxf.dosgi:cxf-dosgi-ri-singlebundle-distribution:bundle:1.0-SNAPSHOT
: Exporting packages that are not on the Bundle-Classpath[Jar:dot,
Jar:lib/geronimo-annotation_1.0_spec-1.1.1.jar, ... lots more
jars...]: [META-INF.cxf]

Anyone an idea on how I can get META-INF.cxf in my exported package list?

Thanks!

David

[1] http://svn.apache.org/repos/asf/cxf/dosgi/trunk/distribution/single-bundle/pom.xml


> Error when trying to Export-Package a directory containing only resources
> -------------------------------------------------------------------------
>
>                 Key: FELIX-1001
>                 URL: https://issues.apache.org/jira/browse/FELIX-1001
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-2.0.0
>            Reporter: David Bosschaert
>
> From the following email thread: http://www.mail-archive.com/users@felix.apache.org/msg03705.html
> For the CXF-DOSGi single-bundle distribution I need to export-package
> a directory that just contains resources. In my pom [1], the directory
> with the resources is copied into my bundle from an embedded bundle
> using the following directive first:
>  <Include-Resource>
>    @cxf-bundle-minimal-${cxf.version}.jar!/META-INF/cxf/*
>  </Include-Resource>
> Then I just want to export the package using the following:
>  <Export-Package>
>    META-INF.cxf
>  </Export-Package>
> Note, my pom also contains some _exportcontents directives...
> However, I'm getting the following error:
> [ERROR] Error building bundle
> org.apache.cxf.dosgi:cxf-dosgi-ri-singlebundle-distribution:bundle:1.0-SNAPSHOT
> : Exporting packages that are not on the Bundle-Classpath[Jar:dot,
> Jar:lib/geronimo-annotation_1.0_spec-1.1.1.jar, ... lots more
> jars...]: [META-INF.cxf]
> According to Stuart this is a bug in BND...
> Thanks!
> David
> [1] http://svn.apache.org/repos/asf/cxf/dosgi/trunk/distribution/single-bundle/pom.xml

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


[jira] Updated: (FELIX-1001) Error when trying to Export-Package a directory containing only resources

Posted by "Stuart McCulloch (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1001?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stuart McCulloch updated FELIX-1001:
------------------------------------

    Fix Version/s: maven-bundle-plugin-2.1.0

This requires some synchronization with the Bnd Tool - so initially scheduling for the next feature release (2.1.0)

However, if this is already fixed then we could include it in the next maintenance release (2.0.1)

> Error when trying to Export-Package a directory containing only resources
> -------------------------------------------------------------------------
>
>                 Key: FELIX-1001
>                 URL: https://issues.apache.org/jira/browse/FELIX-1001
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-2.0.0
>            Reporter: David Bosschaert
>             Fix For: maven-bundle-plugin-2.1.0
>
>
> From the following email thread: http://www.mail-archive.com/users@felix.apache.org/msg03705.html
> For the CXF-DOSGi single-bundle distribution I need to export-package
> a directory that just contains resources. In my pom [1], the directory
> with the resources is copied into my bundle from an embedded bundle
> using the following directive first:
>  <Include-Resource>
>    @cxf-bundle-minimal-${cxf.version}.jar!/META-INF/cxf/*
>  </Include-Resource>
> Then I just want to export the package using the following:
>  <Export-Package>
>    META-INF.cxf
>  </Export-Package>
> Note, my pom also contains some _exportcontents directives...
> However, I'm getting the following error:
> [ERROR] Error building bundle
> org.apache.cxf.dosgi:cxf-dosgi-ri-singlebundle-distribution:bundle:1.0-SNAPSHOT
> : Exporting packages that are not on the Bundle-Classpath[Jar:dot,
> Jar:lib/geronimo-annotation_1.0_spec-1.1.1.jar, ... lots more
> jars...]: [META-INF.cxf]
> According to Stuart this is a bug in BND...
> Thanks!
> David
> [1] http://svn.apache.org/repos/asf/cxf/dosgi/trunk/distribution/single-bundle/pom.xml

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


[jira] Updated: (FELIX-1001) Error when trying to Export-Package a directory containing only resources

Posted by "Stuart McCulloch (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1001?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stuart McCulloch updated FELIX-1001:
------------------------------------

    Fix Version/s:     (was: maven-bundle-plugin-2.1.0)

> Error when trying to Export-Package a directory containing only resources
> -------------------------------------------------------------------------
>
>                 Key: FELIX-1001
>                 URL: https://issues.apache.org/jira/browse/FELIX-1001
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-2.0.0
>            Reporter: David Bosschaert
>
> From the following email thread: http://www.mail-archive.com/users@felix.apache.org/msg03705.html
> For the CXF-DOSGi single-bundle distribution I need to export-package
> a directory that just contains resources. In my pom [1], the directory
> with the resources is copied into my bundle from an embedded bundle
> using the following directive first:
>  <Include-Resource>
>    @cxf-bundle-minimal-${cxf.version}.jar!/META-INF/cxf/*
>  </Include-Resource>
> Then I just want to export the package using the following:
>  <Export-Package>
>    META-INF.cxf
>  </Export-Package>
> Note, my pom also contains some _exportcontents directives...
> However, I'm getting the following error:
> [ERROR] Error building bundle
> org.apache.cxf.dosgi:cxf-dosgi-ri-singlebundle-distribution:bundle:1.0-SNAPSHOT
> : Exporting packages that are not on the Bundle-Classpath[Jar:dot,
> Jar:lib/geronimo-annotation_1.0_spec-1.1.1.jar, ... lots more
> jars...]: [META-INF.cxf]
> According to Stuart this is a bug in BND...
> Thanks!
> David
> [1] http://svn.apache.org/repos/asf/cxf/dosgi/trunk/distribution/single-bundle/pom.xml

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