You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Herve Boutemy (Jira)" <ji...@apache.org> on 2022/02/12 16:32:00 UTC

[jira] [Commented] (MPOM-266) Incorrect message with missing property "project.build.outputTimestamp"

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

Herve Boutemy commented on MPOM-266:
------------------------------------

notice that MARTIFACT-28 creates a warning when using artifact:compare : I know it's too late to fix the release, but it's probably some code that could be used to create an Enforcer rule

> Incorrect message with missing property "project.build.outputTimestamp"
> -----------------------------------------------------------------------
>
>                 Key: MPOM-266
>                 URL: https://issues.apache.org/jira/browse/MPOM-266
>             Project: Maven POMs
>          Issue Type: Bug
>          Components: asf
>    Affects Versions: ASF-24
>            Reporter: Konrad Windszus
>            Assignee: Herve Boutemy
>            Priority: Major
>             Fix For: ASF-25
>
>
> The check introduced with MPOM-255 emits the following error message:
> bq. The property "project.build.outputTimestamp" must be set on the reactor's root pom.xml to make the build reproducible. Further information at "https://maven.apache.org/guides/mini/guide-reproducible-builds.html".
> Having the property on the reactor's root pom.xml is not sufficient though in case reactor root != parent.
> Consider the following project structure
> {code}
> reactor root (has no parent)
> + module1 (has parent: parent)
> + parent (has parent: asf-parent)
> {code}
> In this case setting the property in {{reactor root}} is not enough, as each module's effective pom.xml must contain the property {{project.build.outputTimestamp}}.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)