diff --git a/packages/nx-maven/src/generators/application/generator.ts b/packages/nx-maven/src/generators/application/generator.ts index 92df57b49..9972d2816 100644 --- a/packages/nx-maven/src/generators/application/generator.ts +++ b/packages/nx-maven/src/generators/application/generator.ts @@ -444,7 +444,7 @@ async function applicationGenerator( options: { task: 'exec:java', }, - dependsOn: ['^build'], + dependsOn: ['build'], }, test: { executor: `${plugin}:run-task`,