Skip to content

Commit 144a242

Browse files
author
Ben Asmussen
committed
Fix archetype file renaming using standard Maven approach
- Add gitignore and github properties to archetype-metadata.xml - Set filtered=true for __gitignore__ to enable token replacement - Remove unnecessary post-generation script - Files are now properly renamed from __gitignore__ to .gitignore and __github__ to .github
1 parent 4dd8432 commit 144a242

2 files changed

Lines changed: 6 additions & 21 deletions

File tree

src/main/resources/META-INF/archetype-post-generate.groovy

Lines changed: 0 additions & 21 deletions
This file was deleted.

src/main/resources/META-INF/maven/archetype-metadata.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@
2121
<requiredProperty key="javaVersion">
2222
<defaultValue>17</defaultValue>
2323
</requiredProperty>
24+
<requiredProperty key="gitignore">
25+
<defaultValue>.gitignore</defaultValue>
26+
</requiredProperty>
27+
<requiredProperty key="github">
28+
<defaultValue>.github</defaultValue>
29+
</requiredProperty>
2430
</requiredProperties>
2531

2632
<fileSets>

0 commit comments

Comments
 (0)