[ https://issues.apache.org/jira/browse/MNG-8546?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Guillaume Nodet closed MNG-8546. -------------------------------- Resolution: Invalid > Maven Build Cache Extension fails to regenerate all files in target directory > ----------------------------------------------------------------------------- > > Key: MNG-8546 > URL: https://issues.apache.org/jira/browse/MNG-8546 > Project: Maven > Issue Type: Bug > Affects Versions: 3.9.9 > Environment: Maven Build Cache Extension 1.2.0 > Reporter: Gili > Priority: Major > > 1. Create a project with dependencies that contains: > {code:java} > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-dependency-plugin</artifactId> > <executions> > <execution> > <id>copy-dependencies</id> > <phase>prepare-package</phase> > <goals> > <goal>copy-dependencies</goal> > </goals> > <configuration> > > <outputDirectory>${project.build.directory}/lib</outputDirectory> > <overWriteReleases>false</overWriteReleases> > <overWriteSnapshots>false</overWriteSnapshots> > <overWriteIfNewer>true</overWriteIfNewer> > <useBaseVersion>false</useBaseVersion> > <includeScope>runtime</includeScope> > </configuration> > </execution> > </executions> > </plugin>{code} > 2. Run "mvn verify". > 3. Notice that the "target" directory contains the main JAR file and > "target/lib" contains the JAR file's dependencies > 4. Delete the target directory > 5. Run "mvn verify" again. > 6. Notice that "target" directory contains the main JAR file but the > "target/lib" directory is missing. > {*}Expected behavior{*}: "mvn verify" should always generate the same output. -- This message was sent by Atlassian Jira (v8.20.10#820010)