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 <[email protected]> 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 <[email protected]> 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: [email protected] >> For additional commands, e-mail: [email protected] >> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
