[ 
https://issues.apache.org/jira/browse/MNG-7656?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17653473#comment-17653473
 ] 

Michael Osipov commented on MNG-7656:
-------------------------------------

Here is my naive approach:
{code:patch}
D:\Entwicklung\Projekte\maven-resolver [master ≡ +0 ~1 -0 !]> git diff
diff --git 
a/maven-resolver-util/src/main/java/org/eclipse/aether/util/FileUtils.java 
b/maven-resolver-util/src/main/java/org/eclipse/aether/util/FileUtils.java
index 18cb2ab9..e99d2fb7 100644
--- a/maven-resolver-util/src/main/java/org/eclipse/aether/util/FileUtils.java
+++ b/maven-resolver-util/src/main/java/org/eclipse/aether/util/FileUtils.java
@@ -95,7 +95,7 @@ public final class FileUtils
     {
         Path parent = requireNonNull( file.getParent(), "file must have 
parent" );
         Files.createDirectories( parent );
-        Path tempFile = Files.createTempFile( parent, 
file.getFileName().toString(), "tmp" );
+        Path tempFile = parent.resolve( file.getFileName() + ".tmp" );
         return new CollocatedTempFile()
         {
             @Override
{code}

> Dependencies copied to target have stricter permissions
> -------------------------------------------------------
>
>                 Key: MNG-7656
>                 URL: https://issues.apache.org/jira/browse/MNG-7656
>             Project: Maven
>          Issue Type: Bug
>    Affects Versions: 3.9.0, 4.0.0-alpha-3
>            Reporter: Moshe Elisha
>            Assignee: Tamas Cservenak
>            Priority: Major
>             Fix For: waiting-for-feedback
>
>         Attachments: maven.log
>
>
> Dependency JARs that were copied during "clean install" to target have read 
> and write permissions only to the user/owner and no permissions at all to the 
> group and others.("-rw-------")
> Not sure if the issue is when maven downloads the JARs from the repo or when 
> the JARs are copied from the repo to the target (using 
> "dependency:3.4.0:copy-dependencies")



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to