Hi Mark,

A kar file is a zip file containing a repository folder, where you find features repositories XML and all dependencies.
So you can create it by hand (or using the maven-assembly-plugin).

On the other hand, the karaf-maven-plugin provides:
- features-generate-descriptor goal to create the features XML (for "complex" features XML, I would recommend to create the features XML by hand) - features-create-kar goal taking a features XML and creating the kar file for you

In your case, you should filter the test resources, or separate the test in another Maven module.

Regards
JB

On 09/24/2014 04:03 PM, Mark Doyle wrote:
Hi all,

I have a project that has a collection of unit tests that are obviously
run in the maven test phase.

I'd like to use the karaf plugin and the kar packaging type to generate
a features file and a kar archive.

However, when I build my project, my unit tests fail as the test
resources are no longer found. It makes sense that test material and
code would not end up in the kar but I'm not sure what the recommended
process is for having both. I feel like I'm missing something with the
karaf plugin.

Thanks in advance.

--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to