You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2020/12/05 17:58:00 UTC

[jira] [Commented] (MNG-7048) Adding a constant class generator.

    [ https://issues.apache.org/jira/browse/MNG-7048?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17244554#comment-17244554 ] 

Michael Osipov commented on MNG-7048:
-------------------------------------

I looked at the plugin. This is the C/C++ approach. We have Java here. If you have constants, write in a class. If you have dynamic information at compile time use properties files. This is how stuff is done in Java. I highly doubt that anyone will adopt that.

> Adding a constant class generator.
> ----------------------------------
>
>                 Key: MNG-7048
>                 URL: https://issues.apache.org/jira/browse/MNG-7048
>             Project: Maven
>          Issue Type: Improvement
>            Reporter: Terrien Jean-Yves
>            Priority: Trivial
>              Labels: features
>
> Hello
> I suggest adding a plugin or a feature in an existing plugin. For automatic creating of a class of constants containing Maven values.
> To date, this requires filtering a properties file which is read at runtime.
> Adding a class allows to have constants and not variables, which are defined at compilation.
> This is a simple example of an implementation.
> https://github.com/jyterrien/constants-maven-plugin



--
This message was sent by Atlassian Jira
(v8.3.4#803005)