[rules-users] packaging 'kjar' with kie-maven-plugin and src/test/resources directory

Matteo Mortari matteo.mortari at gmail.com
Sat Jul 26 06:30:46 EDT 2014


Thank you Petr, for the fix on master and the workaround, works for me.

Ciao,
Matteo

On Fri, Jul 25, 2014 at 7:43 PM, Petr Široký <psiroky at redhat.com> wrote:

> Hello,
>
> I think this is a bug in the kie-maven-plugin as it does not execute the
> process-test-resources phase by default. I created a PR with the fix:
> https://github.com/droolsjbpm/drools/pull/365
>
> You can workaround this issue by specifying the testResources phase
> explicitly in your pom.xml (see my last comment on
> https://issues.jboss.org/browse/DROOLS-495 for more info).
>
> Thanks,
> Petr
>
>
> On Fri 25 Jul 2014 17:54:58 CEST, Matteo Mortari wrote:
>
>> Ciao, speaking of the kie maven plugin, can I kindly ask for a
>> feedback about https://issues.jboss.org/browse/DROOLS-495 , please?
>>
>> I normally use src/test/resources directory to store test files for
>> some Unit test. Typically by "test files" I mean xml files, which get
>> un-marshaled and used for some additional testing of rule behavior. It
>> seems to me:
>>  - that setting in the pom.xml the <packaging> to 'kjar' does not make
>> these file resources available during the test phase.
>>  - setting the <packaging> to 'jar' solve the issue, but this exclude
>> the kie-maven-plugin from the maven phases.
>>
>> At least this is my experience, as detailed in the Jira with
>> reproducer, and personally I'm currently using other
>> not-very-beautiful means to overcome the issue.
>>
>> Just asking to know, thank you in advance.
>> (also "not a bug" or "reject" would be acceptable feedback of course)
>> Ciao,
>> Matteo
>>
>>
>> _______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20140726/0e72e085/attachment.html 


More information about the rules-users mailing list