maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anders Hammar <>
Subject Re: How do I exclude resources for tests-jar only?
Date Mon, 16 Apr 2012 19:34:54 GMT
My bad. Not sure what I was thinking here. Ignore my suggestion below.

I might be thinking wrong again, but why shouldn't your suggested
config work? The test-jar goal only creates the tests.jar and as the
configuration is for that specific execution it should only affect
that one. Not the jar goal binding.


On Mon, Apr 16, 2012 at 21:27, Anders Hammar <> wrote:
> I think you can. What you need to do is to specify the right id. I
> think the id will be "default-test-jar".
> /Anders
> On Mon, Apr 16, 2012 at 19:55, Wayne Fay <> wrote:
>>> I know of "tests-jar" goal in maven-jar-plugin that would generate both
>>> my-artifact.jar and my-artifact-tests.jar. But what if I want to exclude
>>> some properties resources ONLY for the my-artifact-tests.jar? I tried the
>>> following, but it exclude from both of the jars, which is not what I want.
>>> Can anyone give me a tip on how to do this?
>> Don't think you can, at least, not with any specific simply config
>> that is built into Maven.
>> Why do you want to do this?
>> Wayne
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message