You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by cs...@apache.org on 2023/03/21 11:32:46 UTC

[maven-resources-plugin] branch MRESOURCES-288-reproducible created (now dcf285f)

This is an automated email from the ASF dual-hosted git repository.

cstamas pushed a change to branch MRESOURCES-288-reproducible
in repository https://gitbox.apache.org/repos/asf/maven-resources-plugin.git


      at dcf285f  [MRESOURCES-288] Make tests-jar reproducible

This branch includes the following new commits:

     new dcf285f  [MRESOURCES-288] Make tests-jar reproducible

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[maven-resources-plugin] 01/01: [MRESOURCES-288] Make tests-jar reproducible

Posted by cs...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

cstamas pushed a commit to branch MRESOURCES-288-reproducible
in repository https://gitbox.apache.org/repos/asf/maven-resources-plugin.git

commit dcf285fe2bb1125c3109943b7fb3173404a29c54
Author: Tamas Cservenak <ta...@cservenak.net>
AuthorDate: Tue Mar 21 12:31:20 2023 +0100

    [MRESOURCES-288] Make tests-jar reproducible
    
    By moving out UT outputs into separate place, to not have
    them packed up into it.
    
    ---
    
    https://issues.apache.org/jira/browse/MRESOURCES-288
---
 src/it/user-filters/pom.xml                                          | 5 -----
 .../apache/maven/plugins/resources/stub/MavenProjectBasicStub.java   | 2 +-
 2 files changed, 1 insertion(+), 6 deletions(-)

diff --git a/src/it/user-filters/pom.xml b/src/it/user-filters/pom.xml
index 0901caa..7b8f887 100644
--- a/src/it/user-filters/pom.xml
+++ b/src/it/user-filters/pom.xml
@@ -52,11 +52,6 @@
             <version>@project.version@</version>
             <classifier>tests</classifier>
           </dependency>
-          <dependency>
-            <groupId>commons-io</groupId>
-            <artifactId>commons-io</artifactId>
-            <version>2.7</version>
-          </dependency>          
         </dependencies>
       </plugin>
     </plugins>
diff --git a/src/test/java/org/apache/maven/plugins/resources/stub/MavenProjectBasicStub.java b/src/test/java/org/apache/maven/plugins/resources/stub/MavenProjectBasicStub.java
index 77ee4f3..adb6d88 100644
--- a/src/test/java/org/apache/maven/plugins/resources/stub/MavenProjectBasicStub.java
+++ b/src/test/java/org/apache/maven/plugins/resources/stub/MavenProjectBasicStub.java
@@ -37,7 +37,7 @@ public class MavenProjectBasicStub extends MavenProjectStub {
     public MavenProjectBasicStub(String id) {
         properties = new Properties();
         identifier = id;
-        testRootDir = PlexusTestCase.getBasedir() + "/target/test-classes/unit/test-dir/" + identifier;
+        testRootDir = PlexusTestCase.getBasedir() + "/target/unit/test-dir/" + identifier;
 
         if (!FileUtils.fileExists(testRootDir)) {
             FileUtils.mkdir(testRootDir);