Skip to content

Commit 523ea1c

Browse files
authored
Cache Maven distribution downloaded by Maven Wrapper
Closes actions#448
1 parent ea15b3b commit 523ea1c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Diff for: src/cache.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,12 @@ interface PackageManager {
2323
const supportedPackageManager: PackageManager[] = [
2424
{
2525
id: 'maven',
26-
path: [join(os.homedir(), '.m2', 'repository')],
26+
path: [join(os.homedir(), '.m2', 'repository'),join(os.homedir(), '.mvn', 'wrapper')],
2727
// https://github.com/actions/cache/blob/0638051e9af2c23d10bb70fa9beffcad6cff9ce3/examples.md#java---maven
28-
pattern: ['**/pom.xml']
28+
pattern: [
29+
'**/pom.xml',
30+
'**/*.mvn*',
31+
]
2932
},
3033
{
3134
id: 'gradle',

0 commit comments

Comments
 (0)