[ https://issues.apache.org/jira/browse/MARTIFACT-54?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Herve Boutemy updated MARTIFACT-54: ----------------------------------- Priority: Critical (was: Major) > In multi-module projects check-buildplan fails on > project.build.outputTimestamp > ------------------------------------------------------------------------------- > > Key: MARTIFACT-54 > URL: https://issues.apache.org/jira/browse/MARTIFACT-54 > Project: Maven Artifact Plugin > Issue Type: Bug > Components: artifact:check-buildplan > Affects Versions: 3.5.0 > Reporter: Niels Basjes > Assignee: Herve Boutemy > Priority: Critical > Labels: pull-request-available > Fix For: 3.5.1 > > > Reproduce: > In an empty directory create a {{pom.xml}} with > {code:xml} > <?xml version="1.0"?> > <project xmlns="http://maven.apache.org/POM/4.0.0" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > http://maven.apache.org/xsd/maven-4.0.0.xsd"> > <modelVersion>4.0.0</modelVersion> > <packaging>pom</packaging> > <groupId>nl.basjes.maven</groupId> > <artifactId>parent</artifactId> > <version>0.0.1-SNAPSHOT</version> > <properties> > > <project.build.outputTimestamp>2011-11-11T11:11:11Z</project.build.outputTimestamp> > </properties> > <modules> > <module>child</module> > </modules> > </project> > {code} > create a subdirectory {{child}} and create the file {{child/pom.xml}} with > {code:xml} > <?xml version="1.0" encoding="UTF-8"?> > <project xmlns="http://maven.apache.org/POM/4.0.0" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > http://maven.apache.org/xsd/maven-4.0.0.xsd"> > <modelVersion>4.0.0</modelVersion> > <parent> > <groupId>nl.basjes.maven</groupId> > <artifactId>parent</artifactId> > <version>0.0.1-SNAPSHOT</version> > </parent> > <artifactId>child</artifactId> > </project> > {code} > Now run the 3.4.1 version of the plugin using maven 3.9.4 on Linux under Java > 17: > {code:bash} > $ mvn org.apache.maven.plugins:maven-artifact-plugin:3.4.1:check-buildplan > {code} > Summary of the output: > {code:bash} > [INFO] parent ............................................. SUCCESS [ 0.228 > s] > [INFO] child .............................................. SUCCESS [ 0.042 > s] > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD SUCCESS > [INFO] > ------------------------------------------------------------------------ > {code} > Now repeat the same with the 3.5.0 version of the plugin: > {code:bash} > $ mvn org.apache.maven.plugins:maven-artifact-plugin:3.5.0:check-buildplan > {code} > Summary of the output: > {code:bash} > [INFO] Reactor Build Order: > [INFO] > [INFO] parent > [pom] > [INFO] child > [jar] > ... > [INFO] -----------------------< nl.basjes.maven:child > >------------------------ > [INFO] Building child 0.0.1-SNAPSHOT > [2/2] > [INFO] from child/pom.xml > [INFO] --------------------------------[ jar > ]--------------------------------- > [INFO] > [INFO] --- artifact:3.5.0:check-buildplan (default-cli) @ child --- > [ERROR] project.build.outputTimestamp property should not be inherited but > defined in POM > /home/nbasjes/workspace/Prive/BugReports/CheckBuildPlan/child/pom.xml > ... > [INFO] BUILD FAILURE > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)