Skip to content

[MRELEASE-1143] MRELEASE should be able to recognise and update project.build.outputTimestamp in a profile #1307

Open
@jira-importer

Description

@jira-importer

Thorsten Glaser opened MRELEASE-1143 and commented

Follow-up for: MRELEASE-1029

I have pretty much the same problem as the ASF has in MPOM-255 and MPOM-265: I build a parent POM in a project, and I want that project's output to be reproducible, but if I set project.build.outputTimestamp in the parent POM itself's <properties>, all users inherit it. This is suboptimal (even if not harmful), especially as users' mvn artifact:check-buildplan will now succeed with merely...

 

[WARNING] <project.build.outputTimestamp> property is inherited, it should be defined in pom.xml

 

... instead of erroring out when a user does not define it.

In my parent POM, I have already defined a profile build-mvnparent which I enable when releasing the parent POM project itself, which defines a couple of properties such as the copyright years which I also don't want users to inherit by accident.

However, when I put the project.build.outputTimestamp property in there, not only do I get mvn artifact:check-buildplan warnings about the property being inherited when it's not (just pulled from a profile), but also does the maven-release-plugin not update it when releasing.

I would request that this be fixed, so then the ASF and I could use the profile method of defining this in the parent POM without all users of the parent-POM-once-installed inheriting that value (while all other modules in the same project that installs the parent POM do get it), and once it's fixed, the artifact:check-buildplan be updated to recognise this situation.


No further details from MRELEASE-1143

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpriority:minorMinor loss of function, or other problem where easy workaround is present

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions