You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by sebb <se...@gmail.com> on 2011/04/11 13:00:27 UTC

source:jar includes resources; source:test-jar does not; similarly fo jar:jar and jar:test-jar

I'm trying to add source and binary test jars to a project.

Now source:jar works fine; it picks up N&L from the <resources> section.

However, source:test-jar appears to ignore the <resources> section -
is that intentional, or an oversight? In any case, how does one get it
to add the resources?

Similarly for the binary test jar - it does not seem to want to
include the resources.

How do I fix these issuse

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: source:jar includes resources; source:test-jar does not; similarly fo jar:jar and jar:test-jar

Posted by sebb <se...@gmail.com>.
On 11 April 2011 12:35, Tim Kettler <ti...@udo.edu> wrote:
> Hi,
>
> Am 11.04.2011 13:00, schrieb sebb:
>>
>> I'm trying to add source and binary test jars to a project.
>>
>> Now source:jar works fine; it picks up N&L from the<resources>  section.
>>
>> However, source:test-jar appears to ignore the<resources>  section -
>> is that intentional, or an oversight? In any case, how does one get it
>> to add the resources?
>>
>> Similarly for the binary test jar - it does not seem to want to
>> include the resources.
>
> Yes, that's how it works AFAIK. source:jar includes the resources from the
> <resources> section and source:test-jar includes the resources from the
> <testResources> section. Same for the jar plugin. Makes sense to me.

Thanks! I had not realised there was also a testResources section.
That fixes the problem.

>> How do I fix these issuse
>
> If you absolutely need to include the non-test resources the best way to go
> is probably to use the assembly plugin and create a custom assembly
> descriptor.
>
> -Tim
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: source:jar includes resources; source:test-jar does not; similarly fo jar:jar and jar:test-jar

Posted by Tim Kettler <ti...@udo.edu>.
Hi,

Am 11.04.2011 13:00, schrieb sebb:
> I'm trying to add source and binary test jars to a project.
>
> Now source:jar works fine; it picks up N&L from the<resources>  section.
>
> However, source:test-jar appears to ignore the<resources>  section -
> is that intentional, or an oversight? In any case, how does one get it
> to add the resources?
>
> Similarly for the binary test jar - it does not seem to want to
> include the resources.

Yes, that's how it works AFAIK. source:jar includes the resources from 
the <resources> section and source:test-jar includes the resources from 
the <testResources> section. Same for the jar plugin. Makes sense to me.

> How do I fix these issuse

If you absolutely need to include the non-test resources the best way to 
go is probably to use the assembly plugin and create a custom assembly 
descriptor.

-Tim

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org