Hi Robert,

According to the jar plugin source   outputDirectory is not read only. that
is why I can change the default value.

here is my use case

  - Start out of jar module with a profile to create the RPM
  - In the profile, use assembler-maven-plugin to create  staging
distribution
  - since the primary jar file is not in my staging, I need to invoke jar
plugin explicitly  to create another jar. This makes jar plugin thinks it
has 2 primary artifacts and bails out
  - Use RPM to package the staging

This is  a valid use case right?


Thanks

-Dan



On Fri, May 20, 2016 at 12:15 PM, Robert Scholte <[email protected]>
wrote:

> Dan,
>
> outputDirectory has become a readonly parameter.
> The reason is that you can set it with <project><build><directory>. Does
> that work for you?
>
> thanks,
> Robert
>
>
> On Fri, 20 May 2016 21:09:55 +0200, Karl Heinz Marbaise <[email protected]>
> wrote:
>
> Hi Dan,
>>
>> On 5/20/16 7:16 AM, Dan Tran wrote:
>>
>>> Hi
>>>
>>> My jar project can also create RPM via rpm-maven-plugin:attach-rpm now
>>> throws this error
>>>
>>> [ERROR] Failed to execute goal
>>> org.apache.maven.plugins:maven-jar-plugin:3.0.0:jar
>>> (project-jar-for-docker) on project xxx: You have to use a classifier
>>> to attach supplemental artifacts to the project instead of replacing
>>> them. -> [Help 1]
>>>
>>>
>>> This is a valid use case where I can have mutiple artifact extensions
>>> without the need to use classifiers
>>>
>>
>> Can you create an example project for this? So i can create an JIRA for
>> that or you can create the jira with that...sounds like an edge case which
>> i didn't thought of ?...
>>
>> So you are replacing the main artifact but with different extensions ?
>>
>> Hm.. ?
>>
>>
>>>
>>> The release notes of jar plugin 3.0.0 also not mentioned about this
>>>
>>
>> https://issues.apache.org/jira/browse/MJAR-198
>>
>>
>>
>>>
>>> I hope this is not intentional
>>>
>>
>> Kind regards
>> Karl Heinz Marbaise
>>
>> ---------------------------------------------------------------------
>> 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