You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by JustinKSU <ju...@gmail.com> on 2012/07/13 22:03:27 UTC

Bundle and KAR same project

Is there a way to produce a KAR file for a bundle which is the same project?

If you refer to the MVN path in the features.xml it fails, because the
project is not in Maven yet.

I tried using the a file path, which is valid in a normal features
definition, but the plugin seems to complain.

<?xml version="1.0" encoding="UTF-8"?>
<features name="${project.artifactId}-${project.version}">
    <feature name="${project.artifactId}" description="${project.name}"
version="${project.version}" resolver="(obr)">
        <details>${project.description}</details>
        
        <bundle
start-level="50">file:target/${project.artifactId}-${project.version}.jar</bundle>
    </feature>
</features>


ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Resource URL is not a maven URL:
file:target/ExampleBundle-1.0.0-SNAPSHOT.jar

--
View this message in context: http://karaf.922171.n3.nabble.com/Bundle-and-KAR-same-project-tp4025234.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Bundle and KAR same project

Posted by David Jencks <da...@yahoo.com>.
On Jul 13, 2012, at 4:03 PM, JustinKSU wrote:

> Is there a way to produce a KAR file for a bundle which is the same project?

I hope not, this violates the maven principle that unrelated artifacts belong in different projects.

thanks
david jencks

> 
> If you refer to the MVN path in the features.xml it fails, because the
> project is not in Maven yet.
> 
> I tried using the a file path, which is valid in a normal features
> definition, but the plugin seems to complain.
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <features name="${project.artifactId}-${project.version}">
>    <feature name="${project.artifactId}" description="${project.name}"
> version="${project.version}" resolver="(obr)">
>        <details>${project.description}</details>
> 
>        <bundle
> start-level="50">file:target/${project.artifactId}-${project.version}.jar</bundle>
>    </feature>
> </features>
> 
> 
> ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Resource URL is not a maven URL:
> file:target/ExampleBundle-1.0.0-SNAPSHOT.jar
> 
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Bundle-and-KAR-same-project-tp4025234.html
> Sent from the Karaf - User mailing list archive at Nabble.com.