diff --git a/packages/internal/generators-files/boot/application/maven/kotlin/pom.xml__template__ b/packages/internal/generators-files/boot/application/maven/kotlin/pom.xml__template__ index 09687d228..f7c8238ec 100644 --- a/packages/internal/generators-files/boot/application/maven/kotlin/pom.xml__template__ +++ b/packages/internal/generators-files/boot/application/maven/kotlin/pom.xml__template__ @@ -71,24 +71,6 @@ - -<% if(dependencyManagement === 'bom' && packaging === 'war') { -%> - - org.apache.maven.plugins - maven-war-plugin - ${maven-war-plugin.version} - - - - ${start-class} - true - - - - -<% } -%> - - diff --git a/packages/nx-maven/src/generators/parent-project/files/pom.xml__template__ b/packages/nx-maven/src/generators/parent-project/files/pom.xml__template__ index 69e52f652..b8759ffa3 100644 --- a/packages/nx-maven/src/generators/parent-project/files/pom.xml__template__ +++ b/packages/nx-maven/src/generators/parent-project/files/pom.xml__template__ @@ -57,6 +57,20 @@ ${start-class} + + org.apache.maven.plugins + maven-war-plugin + ${maven-war-plugin.version} + + + + ${start-class} + true + + + + + <% if(language === 'kotlin' || language === 'java-kotlin') { -%> org.jetbrains.kotlin