Tried your config and it works as expected, using Maven 3.
I would add an id to the execution though. There should always be one
and it should be unique, like "attach-tests".

/Anders

On Mon, Apr 16, 2012 at 21:34, Anders Hammar <and...@hammar.net> wrote:
> 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.
>
> /Anders
>
> On Mon, Apr 16, 2012 at 21:27, Anders Hammar <and...@hammar.net> 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 <wayne...@gmail.com> 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: users-unsubscr...@maven.apache.org
>>> For additional commands, e-mail: users-h...@maven.apache.org
>>>

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

Reply via email to