You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "David Jencks (JIRA)" <ji...@apache.org> on 2011/03/13 18:40:59 UTC
[jira] Commented: (KARAF-459) No bundles embedded in KAR repository
[ https://issues.apache.org/jira/browse/KARAF-459?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13006225#comment-13006225 ]
David Jencks commented on KARAF-459:
------------------------------------
I don't think this is an accurate problem report since the assemblies/features/framework kar builds fine for me. Unless you are planning to add this to the karaf build can you try setting up your project using the kar packaging?
> No bundles embedded in KAR repository
> -------------------------------------
>
> Key: KARAF-459
> URL: https://issues.apache.org/jira/browse/KARAF-459
> Project: Karaf
> Issue Type: Bug
> Components: tooling
> Affects Versions: 3.0.0
> Reporter: Jean-Baptiste Onofré
> Fix For: 3.0.0
>
>
> I defined a POM looking like:
> <?xml version="1.0" encoding="UTF-8"?>
> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
> <modelVersion>4.0.0</modelVersion>
> <groupId>test</groupId>
> <artifactId>test</artifactId>
> <version>1.0</version>
> <packaging>pom</packaging>
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.karaf.tooling</groupId>
> <artifactId>features-maven-plugin</artifactId>
> <version>2.99.99-SNAPSHOT</version>
> <executions>
> <execution>
> <id>archive-kar</id>
> <goals>
> <goal>archive-kar</goal>
> </goals>
> <configuration>
> <featuresFile>src/main/resources/features.xml</featuresFile>
> </configuration>
> </execution>
> </executions>
> </plugin>
> </plugins>
> </build>
> </project>
> The features.xml is very simple:
> <?xml version="1.0" encoding="UTF-8"?>
> <features>
> <feature name="my" version="1.0">
> <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-collections/3.2.1_1</bundle>
> </feature>
> </features>
> I used:
> mvn install
> The kar is generated in the target directory, but when I'm checking the content:
> jar tvf test-1.0.kar
> 0 Mon Feb 14 09:15:54 CET 2011 META-INF/
> 127 Mon Feb 14 09:15:52 CET 2011 META-INF/MANIFEST.MF
> 0 Mon Feb 14 09:15:54 CET 2011 repository/
> 0 Mon Feb 14 09:15:54 CET 2011 repository/test/
> 0 Mon Feb 14 09:15:54 CET 2011 repository/test/test/
> 0 Mon Feb 14 09:15:54 CET 2011 repository/test/test/1.0/
> 230 Mon Feb 14 09:03:40 CET 2011 repository/test/test/1.0/test-1.0-feature.xml
> 0 Mon Feb 14 09:15:54 CET 2011 META-INF/maven/
> 0 Mon Feb 14 09:15:54 CET 2011 META-INF/maven/test/
> 0 Mon Feb 14 09:15:54 CET 2011 META-INF/maven/test/test/
> 1277 Mon Feb 14 09:15:40 CET 2011 META-INF/maven/test/test/pom.xml
> 91 Mon Feb 14 09:15:52 CET 2011 META-INF/maven/test/test/pom.properties
> So the features.xml is packaged in the KAR repository, but not the commons-collections bundle.
> AFAII, the KAR should package both features descriptor and associated bundles, shouldn't it ?
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira