From edec6fec447a8765d09451a7724ae411ba084223 Mon Sep 17 00:00:00 2001 From: Yeikel Date: Sun, 12 Feb 2023 15:56:56 -0500 Subject: [PATCH] Cache Maven Wrapper Closes #448 --- src/cache.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/cache.ts b/src/cache.ts index 20b553e82..d9c07a4a4 100644 --- a/src/cache.ts +++ b/src/cache.ts @@ -23,9 +23,12 @@ interface PackageManager { const supportedPackageManager: PackageManager[] = [ { id: 'maven', - path: [join(os.homedir(), '.m2', 'repository')], + path: [join(os.homedir(), '.m2', 'repository'),join(os.homedir(), '.mvn', 'wrapper')], // https://github.com/actions/cache/blob/0638051e9af2c23d10bb70fa9beffcad6cff9ce3/examples.md#java---maven - pattern: ['**/pom.xml'] + pattern: [ + '**/pom.xml', + '**/*.mvn*', + ] }, { id: 'gradle',