apache / apache/maven-resources-plugin

[MRESOURCES-313] Debug says 'copy' but does not do that when overwrite = false

Open
#316 0 comments 0 reactions 0 assignees View on GitHub
bug priority:major
Dominant language
Java
Stars
61
Forks
36
Avg merge
1d 1h
Merged PRs (30d)
3

Description

**[Rob Audenaerde](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=robau)** opened **[MRESOURCES-313](https://issues.apache.org/jira/browse/MRESOURCES-313?redirect=false)** and commented

I have this configuration (that now works). If I leave out the `overwrite`, it does not always work. I think this is due to timing of the created files in the first step.  The debug output however is always the same (when running mvn -X), so even when not copying the file, it  **incorrecly** states the copy command. 

 

```java
DEBUG] Copying file swagger-initializer.js
[DEBUG] file swagger-initializer.js has a filtered file extension
[DEBUG] Using 'UTF-8' encoding to copy filtered resource 'swagger-initializer.js'.
[DEBUG] copy /home/raudenaerde/IdeaProjects/searchdata-api/swagger-ui-config/swagger-initializer.js to /home/raudenaerde/IdeaProjects/searchdata-api/target/swagger-ui/META-INF/resources/webjars/swagger-ui/5.18.3/swagger-initializer.js


```

 

```java


org.apache.maven.plugins
maven-dependency-plugin
${maven.dependency.version}


properties-for-mockito

properties



prepare-package

unpack




org.webjars
swagger-ui
${swagger.ui.version}


${project.build.directory}/swagger-ui



org.apache.maven.plugins
maven-resources-plugin
${maven.resources.version}


copy-swagger-ui-config
prepare-package

copy-resources



${project.build.directory}/swagger-ui/META-INF/resources/webjars/swagger-ui/${swagger.ui.version}



false
swagger-ui-config

**/*.*



true




```

\
 

---
No further details from [MRESOURCES-313](https://issues.apache.org/jira/browse/MRESOURCES-313?redirect=false)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.