I think that's a bug - the properties aren't overwritten.

Mmm all right.



Try this:
add another profile with <activeByDefault>true</activeByDefault>,
and move the <properties><obfuscated/></properties> inside that profile.
If you don't activate the profile, that default profile should be enabled.
If you activate the obfuscation profile, then the default profile
shouldn't be activated.

I don't follow but I'll try monday and I'll let you know.



> BTW, will maven resolve the property (${obfuscated}) when the POM is
> released?

Sure it will resolve it. What you could do is name the profile different,
there's a special profile for releases (maybe it's called 'release', not sure),
so it'll be automatically enabled when releasing (that's what you're after, 
right?)


> If so, this solution is kinda useless right?

I'm not following...

What I was afraid is that the released pom did not contain the
${obfuscated} string but the resolved classifier (that is the empty
string or the obfuscated string) but I think it will work properly.

I'll try your suggestion and I'll let you know. Regarding the
properties overwriting, do you want me to open an issue in Jira?

Thanks,

Stéphane


-- Kenney

> Regards,
>
> Stéphane
>
>
>>
>> HTH,
>>
>> -- Kenney
>>
>>
>> Stephane Nicoll wrote:
>> > Hi,
>> >
>> > I already discussed this with brett and Dan and I would like to see if
>> > anyone here has more insight about how to handle obfuscated jars.
>> >
>> > The basic use case I have is to be able to specify whether I want the
>> > standard jars or the obfuscated jars for a particular project.
>> > Obfuscated jars are handled as attached artifacts w/ the "obfuscated"
>> > classifier.
>> >
>> > If a particular project does not rely on any other lib that needs to
>> > be obfuscated, everything is ok, we just depend on it with the
>> > obfuscated classifier. The harder part is when a particular project
>> > depends on other components that need to be obfuscated. In dev phase
>> > it might be easier to use non obfuscated jars (as stacktraces are a
>> > bit complex to read when something goes wrong :)
>> >
>> > Let's say we have 3 components A, B, C. A depends on B and B depends
>> > on C. I would like to find a way to specify "bring me everything
>> > obfuscated" for A  (something like intelligent classifier).
>> >
>> > Is there anything we can do about this? The other solution is to have
>> > a separate project for each component with the obfuscated dep, which
>> > sounds not good at all.
>> >
>> > Thanks,
>> > Stéphane
>> >
>> > ---------------------------------------------------------------------
>> > 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]
>>
>>
>
> ---------------------------------------------------------------------
> 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]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to