Re: Removing the text "Generated by maven-plugin-tools 3.5 on 2021-02-11"

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Removing the text "Generated by maven-plugin-tools 3.5 on 2021-02-11"

fou Plante
i dont now

Le sam. 6 mars 2021 1:47 p.m., jagmohan bisht <[hidden email]> a
écrit :

> After creating a maven plugin I am seeing the automated text
> "Generated by maven-plugin-tools 3.5 on 2021-02-11" on my plugin.xml file.
>
> I want this text message to be removed . How to achieve this?
>
>
> Thanks
> Jagmohan
>
Reply | Threaded
Open this post in threaded view
|

Re: Removing the text "Generated by maven-plugin-tools 3.5 on 2021-02-11"

Lutz Horn
> After creating a maven plugin I am seeing the automated text
> "Generated by maven-plugin-tools 3.5 on 2021-02-11" on my plugin.xml file.
>
> I want this text message to be removed . How to achieve this?

This line is generated by the class PluginDescriptorGenerator here:

https://github.com/apache/maven-plugin-tools/blob/9107632fe99a2d40794d97973b2421df1a520e82/maven-plugin-tools-generators/src/main/java/org/apache/maven/tools/plugin/generator/PluginDescriptorGenerator.java#L132

As you can see from the code, this line is always generated as a XML
comment together with XML elements like 'name' and 'description'. If you
want to change the behaviour of this class, you will have to patch it.

Lutz

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Removing the text "Generated by maven-plugin-tools 3.5 on 2021-02-11"

Hervé BOUTEMY
not exactly: this already has been done for release 3.5.1
https://issues.apache.org/jira/browse/MPLUGIN-326

so you just need to upgrade a little bit :)

Regards,

Hervé

Le samedi 6 mars 2021, 22:22:36 CET Lutz Horn a écrit :

> > After creating a maven plugin I am seeing the automated text
> > "Generated by maven-plugin-tools 3.5 on 2021-02-11" on my plugin.xml file.
> >
> > I want this text message to be removed . How to achieve this?
>
> This line is generated by the class PluginDescriptorGenerator here:
>
> https://github.com/apache/maven-plugin-tools/blob/9107632fe99a2d40794d97973b
> 2421df1a520e82/maven-plugin-tools-generators/src/main/java/org/apache/maven/
> tools/plugin/generator/PluginDescriptorGenerator.java#L132
>
> As you can see from the code, this line is always generated as a XML
> comment together with XML elements like 'name' and 'description'. If you
> want to change the behaviour of this class, you will have to patch it.
>
> Lutz
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]





---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Removing the text "Generated by maven-plugin-tools 3.5 on 2021-02-11"

Michael Osipov-2
In reply to this post by fou Plante
Am 2021-03-05 um 15:02 schrieb jagmohan bisht:
> After creating a maven plugin I am seeing the automated text
> "Generated by maven-plugin-tools 3.5 on 2021-02-11" on my plugin.xml file.
>
> I want this text message to be removed . How to achieve this?

Report an issue with MPLUGIN to have it removed.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Removing the text "Generated by maven-plugin-tools 3.5 on 2021-02-11"

Karl Heinz Marbaise-3
In reply to this post by fou Plante
On 05.03.21 15:02, jagmohan bisht wrote:
> After creating a maven plugin I am seeing the automated text
> "Generated by maven-plugin-tools 3.5 on 2021-02-11" on my plugin.xml file.
>
> I want this text message to be removed . How to achieve this?

As I already asked on So...

What exactly is causing the issue? Why do you build several times? Do
you don't make a release of your plugin to get a reliable state of your
plugin? Please show a full example..


Kind regards
Karl Heinz Marbaise

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Removing the text "Generated by maven-plugin-tools 3.5 on 2021-02-11"

jagmohan bisht
Hi Karl,

Thanks for the response.
I have checked out the maven-plugin-tools codebase and modified the
Generator module to remove the comment.
I am now using this customised maven-plugin-tools-generator jar to build
the plugins .

The use case and requirement is bit complicated to explain in a mail .
For now the issue is resolved.

Thanks
Jagmohan


On Mon, Mar 8, 2021 at 2:25 PM Karl Heinz Marbaise <[hidden email]>
wrote:

> On 05.03.21 15:02, jagmohan bisht wrote:
> > After creating a maven plugin I am seeing the automated text
> > "Generated by maven-plugin-tools 3.5 on 2021-02-11" on my plugin.xml
> file.
> >
> > I want this text message to be removed . How to achieve this?
>
> As I already asked on So...
>
> What exactly is causing the issue? Why do you build several times? Do
> you don't make a release of your plugin to get a reliable state of your
> plugin? Please show a full example..
>
>
> Kind regards
> Karl Heinz Marbaise
>