apache / apache/maven-archetype

[ARCHETYPE-617] Files in a folder with a file that has no extension are not filtered

Open
#845 2 comments 0 reactions 0 assignees View on GitHub
bug priority:major
Dominant language
Java
Stars
148
Forks
181
Avg merge
1d 20h
Merged PRs (30d)
8

Description

**[Thomas Pischke](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=tpischke)** opened **[ARCHETYPE-617](https://issues.apache.org/jira/browse/ARCHETYPE-617?redirect=false)** and commented

When using create-from-project, the filtering works but the filtered file is later overwritten with the original unfiltered content. The overwrite occurs due to an overly broad fileset (***/**) created due to the presence of a file with no extension in the folder.

We rely on the secondLevelResourceDirectory structure to include the directory.

Working on a PR.

Also broken in 3.2.1-SNAPSHOT

Example file structure that exhibits the bug:
* build
* docker
*** Dockerfile
*** should-be-filtered-but-is-not.yaml

---

**Affects:** 3.2.0

**Issue Links:**
- [ARCHETYPE-548](https://issues.apache.org/jira/browse/ARCHETYPE-548) Resource files without extensions are not included in archetype

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.