apache / apache/maven-filtering

[MSHARED-966] Resources are not copied to ${project.build.outputDirectory}

Open
#255 17 comments 0 reactions 0 assignees View on GitHub
bug priority:major
Dominant language
Java
Stars
9
Forks
36
Avg merge
8h 47m
Merged PRs (30d)
4

Description

**[Ralf Taugerbeck](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=lomacs)** opened **[MSHARED-966](https://issues.apache.org/jira/browse/MSHARED-966?redirect=false)** and commented

Hi,

after upgrading from 3.1.0 to 3.2.0 I get this weird issue. My build fails with a java.nio.file.NoSuchFileException for a file, that actually exists in the resources directory.

What's special about the file is that it was extracted from a dependency artifact. I know this is a strange use case, but for us it is the only way to supply a common Velocity macro library file to other modules for Velocity template development with IntelliJ (only relative paths supported).

File content and encoding do not seem to have an impact. Could it be because of an archive flag? If I modify and save the file, the build works fine again...

If necessary, I can provide a stack trace or detailed log.

---

**Affects:** maven-filtering-3.2.0, maven-filtering-3.3.0

**Attachments:**
- [maven.log](https://issues.apache.org/jira/secure/attachment/13010738/maven.log) (_116.98 kB_)
- [maven-example.tgz](https://issues.apache.org/jira/secure/attachment/13010739/maven-example.tgz) (_1.17 kB_)

**Issue Links:**
- [MRESOURCES-278](https://issues.apache.org/jira/browse/MRESOURCES-278) Regression - Changed copy behaviour if file already exists
(_**"causes"**_)
- [MSHARED-1004](https://issues.apache.org/jira/browse/MSHARED-1004) Two (2) issues with symbolic links

0 votes, 8 watchers

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.