You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@syncope.apache.org by Francesco Chicchiriccò <il...@apache.org> on 2019/10/04 07:01:16 UTC

[DISCUSS] How to replace ianal-maven-plugin?

Hi there,
when doing concurrent builds with Maven, the following warning is reported multiple times:

09:18:22 [WARNING] *****************************************************************
09:18:22 [WARNING] * Your build is requesting parallel execution, but project      *
09:18:22 [WARNING] * contains the following plugin(s) that have goals not marked   *
09:18:22 [WARNING] * as @threadSafe to support parallel building.                  *
09:18:22 [WARNING] * While this /may/ work fine, please look for plugin updates    *
09:18:22 [WARNING] * and/or request plugins be made thread-safe.                   *
09:18:22 [WARNING] * If reporting an issue, report it against the plugin in        *
09:18:22 [WARNING] * question, not against maven-core                              *
09:18:22 [WARNING] *****************************************************************
09:18:22 [WARNING] The following plugins are not marked @threadSafe in Apache Syncope:
09:18:22 [WARNING] org.apache.rat:apache-rat-plugin:0.12
09:18:22 [WARNING] org.codehaus.mojo:ianal-maven-plugin:1.0-alpha-1
09:18:22 [WARNING] Enable debug to see more precisely which goals are not marked @threadSafe.
09:18:22 [WARNING] *****************************************************************

After upgrading Apache RAT to 0.13 (just pushed to 2_0_X, 2_1_X and master branches), the warning above is related to ianal-maven-plugin only.

The problem is that such plugin seems to be unmaintained since a long while, though several open source projects - including many here at ASF - are using it; hence, upgrading is simply not possible.

We can only think to replace its features with something else; the job that ianal-maven-plugin does is to ensure that each artifact we generate contains both LICENSE and NOTICE files, in the appropriate places; otherwise, fail the build.

Any idea about how to obtain the same feature with other plugin(s)?
Regards.

-- 
Francesco Chicchiriccò

Tirasa - Open Source Excellence
http://www.tirasa.net/

Member at The Apache Software Foundation
Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail
http://home.apache.org/~ilgrosso/


Re: [DISCUSS] How to replace ianal-maven-plugin?

Posted by Misagh Moayyed <mi...@tirasa.net>.
Thanks, I understand. Unfortunately, I personally do not know of any.

--Misagh

----- Original Message -----
> From: "Francesco Chicchiriccò" <il...@apache.org>
> To: "dev" <de...@syncope.apache.org>
> Sent: Monday, October 14, 2019 3:37:32 PM
> Subject: Re: [DISCUSS] How to replace ianal-maven-plugin?

> On 14/10/19 13:15, Misagh Moayyed wrote:
>> I think the license-maven-plugin does have the ability to generate license
>> headers or remove/update them. Is that not the behavior we are looking for, or
>> do I misunderstand?
> 
> As I was saying in the original email, the job that ianal-maven-plugin does is
> to ensure that each artifact we generate contains both LICENSE and NOTICE
> files, in the appropriate places; otherwise, fail the build.
> 
> We are not talking about generate / remove / update license headers.
> 
> Regards.
> 
>> ----- Original Message -----
>>> From: "Francesco Chicchiriccò" <il...@apache.org>
>>> To: "dev" <de...@syncope.apache.org>
>>> Sent: Friday, October 4, 2019 11:59:40 AM
>>> Subject: Re: [DISCUSS] How to replace ianal-maven-plugin?
>>> On 04/10/19 09:55, Misagh Moayyed wrote:
>>>>> We can only think to replace its features with something else; the job that
>>>>> ianal-maven-plugin does is to ensure that each artifact we generate contains
>>>>> both LICENSE and NOTICE files, in the appropriate places; otherwise, fail the
>>>>> build.
>>>>>
>>>>> Any idea about how to obtain the same feature with other plugin(s)?
>>>> I have used the following in the past:
>>>>
>>>> - https://github.com/Jasig/maven-notice-plugin (...which I more or less maintain
>>>> with others)
>>>> - https://github.com/mycila/license-maven-plugin
>>>>
>>>> I am not sure if they are really that much better than the current plugin, but
>>>> it's worth trying them out with Syncope.
>>> Are you sure that such two plugins do the job that ianal-maven-plugin does? As
>>> far as I can see, the former generates NOTICE files, while the latter does more
>>> or less the same job that Apache RAT does.
> 
> --
> Francesco Chicchiriccò
> 
> Tirasa - Open Source Excellence
> http://www.tirasa.net/
> 
> Member at The Apache Software Foundation
> Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail
> http://home.apache.org/~ilgrosso/

Re: [DISCUSS] How to replace ianal-maven-plugin?

Posted by Francesco Chicchiriccò <il...@apache.org>.
On 14/10/19 13:15, Misagh Moayyed wrote:
> I think the license-maven-plugin does have the ability to generate license headers or remove/update them. Is that not the behavior we are looking for, or do I misunderstand? 

As I was saying in the original email, the job that ianal-maven-plugin does is to ensure that each artifact we generate contains both LICENSE and NOTICE files, in the appropriate places; otherwise, fail the build.

We are not talking about generate / remove / update license headers.

Regards.

> ----- Original Message -----
>> From: "Francesco Chicchiriccò" <il...@apache.org>
>> To: "dev" <de...@syncope.apache.org>
>> Sent: Friday, October 4, 2019 11:59:40 AM
>> Subject: Re: [DISCUSS] How to replace ianal-maven-plugin?
>> On 04/10/19 09:55, Misagh Moayyed wrote:
>>>> We can only think to replace its features with something else; the job that
>>>> ianal-maven-plugin does is to ensure that each artifact we generate contains
>>>> both LICENSE and NOTICE files, in the appropriate places; otherwise, fail the
>>>> build.
>>>>
>>>> Any idea about how to obtain the same feature with other plugin(s)?
>>> I have used the following in the past:
>>>
>>> - https://github.com/Jasig/maven-notice-plugin (...which I more or less maintain
>>> with others)
>>> - https://github.com/mycila/license-maven-plugin
>>>
>>> I am not sure if they are really that much better than the current plugin, but
>>> it's worth trying them out with Syncope.
>> Are you sure that such two plugins do the job that ianal-maven-plugin does? As
>> far as I can see, the former generates NOTICE files, while the latter does more
>> or less the same job that Apache RAT does.

-- 
Francesco Chicchiriccò

Tirasa - Open Source Excellence
http://www.tirasa.net/

Member at The Apache Software Foundation
Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail
http://home.apache.org/~ilgrosso/


Re: [DISCUSS] How to replace ianal-maven-plugin?

Posted by Misagh Moayyed <mi...@tirasa.net>.
I think the license-maven-plugin does have the ability to generate license headers or remove/update them. Is that not the behavior we are looking for, or do I misunderstand? 

--Misagh

----- Original Message -----
> From: "Francesco Chicchiriccò" <il...@apache.org>
> To: "dev" <de...@syncope.apache.org>
> Sent: Friday, October 4, 2019 11:59:40 AM
> Subject: Re: [DISCUSS] How to replace ianal-maven-plugin?

> On 04/10/19 09:55, Misagh Moayyed wrote:
>>> We can only think to replace its features with something else; the job that
>>> ianal-maven-plugin does is to ensure that each artifact we generate contains
>>> both LICENSE and NOTICE files, in the appropriate places; otherwise, fail the
>>> build.
>>>
>>> Any idea about how to obtain the same feature with other plugin(s)?
>>
>> I have used the following in the past:
>>
>> - https://github.com/Jasig/maven-notice-plugin (...which I more or less maintain
>> with others)
>> - https://github.com/mycila/license-maven-plugin
>>
>> I am not sure if they are really that much better than the current plugin, but
>> it's worth trying them out with Syncope.
> 
> Are you sure that such two plugins do the job that ianal-maven-plugin does? As
> far as I can see, the former generates NOTICE files, while the latter does more
> or less the same job that Apache RAT does.
> 
> --
> Francesco Chicchiriccò
> 
> Tirasa - Open Source Excellence
> http://www.tirasa.net/
> 
> Member at The Apache Software Foundation
> Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail
> http://home.apache.org/~ilgrosso/

Re: [DISCUSS] How to replace ianal-maven-plugin?

Posted by Francesco Chicchiriccò <il...@apache.org>.
On 04/10/19 09:55, Misagh Moayyed wrote:
>> We can only think to replace its features with something else; the job that
>> ianal-maven-plugin does is to ensure that each artifact we generate contains
>> both LICENSE and NOTICE files, in the appropriate places; otherwise, fail the
>> build.
>>
>> Any idea about how to obtain the same feature with other plugin(s)?
>
> I have used the following in the past:
>
> - https://github.com/Jasig/maven-notice-plugin (...which I more or less maintain with others)
> - https://github.com/mycila/license-maven-plugin
>
> I am not sure if they are really that much better than the current plugin, but it's worth trying them out with Syncope. 

Are you sure that such two plugins do the job that ianal-maven-plugin does? As far as I can see, the former generates NOTICE files, while the latter does more or less the same job that Apache RAT does.

-- 
Francesco Chicchiriccò

Tirasa - Open Source Excellence
http://www.tirasa.net/

Member at The Apache Software Foundation
Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail
http://home.apache.org/~ilgrosso/


Re: [DISCUSS] How to replace ianal-maven-plugin?

Posted by Misagh Moayyed <mi...@tirasa.net>.
> We can only think to replace its features with something else; the job that
> ianal-maven-plugin does is to ensure that each artifact we generate contains
> both LICENSE and NOTICE files, in the appropriate places; otherwise, fail the
> build.
> 
> Any idea about how to obtain the same feature with other plugin(s)?


I have used the following in the past:

- https://github.com/Jasig/maven-notice-plugin (...which I more or less maintain with others)
- https://github.com/mycila/license-maven-plugin

I am not sure if they are really that much better than the current plugin, but it's worth trying them out with Syncope.