Skip to content

[MBUILDCACHE-116] Extension fails to regenerate all files in target directory #269

@jira-importer

Description

@jira-importer

Gili opened MBUILDCACHE-116 and commented

  1. Create a project with dependencies that contains:
<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>
  1. Run "mvn verify".
  2. Notice that the "target" directory contains the main JAR file and "target/lib" contains the JAR file's dependencies
  3. Delete the target directory
  4. Run "mvn verify" again.
  5. 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 might be a regression of https://issues.apache.org/jira/browse/MBUILDCACHE-67. Per https://stackoverflow.com/q/78057064/14731 this issue existed back in version 1.0.1, was fixed by version 1.1.0, but it seems to be back now.

Can someone please take a look at this?


Affects: 1.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority:majorMajor loss of function

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions