Closed Kwandes closed 3 years ago
Hi @Kwandes
Thanks for reporting the issue in a such detailed way.
I believe that I have found the source of the problem:
On Windows, the plugin currently run ./mvnw.cmd xxx
(resp. ./gradlew.cmd xxx
)
whereas it should simply run mvnw.cmd xxx
(resp. gradlew.cmd xxx
) instead.
I'm developing on macos, so I didn't see the problem sooner (neither did my e2e tests ...)
Anyway, I will provide a fix asap.
:tada: This issue has been resolved in version 1.3.1 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Works perfectly for both my friend and me. Thank you very much for a quick fix
You're welcome @Kwandes
Thank you for reporting the issue :-)
:tada: This issue has been resolved in version 1.3.1 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
:tada: This issue has been resolved in version 1.4.0-beta.1 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
:tada: This issue has been resolved in version @nxrocks/nx-melos-v1.0.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
:tada: This issue has been resolved in version 1.0.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Plugin Name and Version:
Nx Version (
nx --version
):Angular CLI version (
ng --version
):Expected Behaviour
When I execute
nx serve test-java-app
against a freshly generated (with this plugin) java springboot app, I expect it to properly start the appActual Behaviour
When
nx serve app
/nx run app:run
/nx buildJar app
/nx buildWar app
/nx buildImage app
/nx buildInfo app
/nx serve app
commands are run against a freshly generated java app (this this plugin), the command fails with following output:The command fails the same when it is run from the workspace root directory, and from the directory with maven files.
When
./mvnw.cmd test-java-app
is run from the directory with the maven files, the app starts properly.Steps to reproduce the behaviour
npx create-nx-workspace@latest app
npm install --save-dev @nxrocks/nx-spring-boot
nx g @nxrocks/nx-spring-boot:app app
. Select these options: Maven, Jar, Java 11 and Java.nx serve app
from the workspace directoryAlternate way to reproduce the behaviour using existing repositories
I have a repository where the generated code exists and where the issue is present. It contains multiple apps.
nx:1.2.1
, and had issues described hereBehaviour steps will be explained using the second repo:
git clone https://github.com/Kwandes/app-sandbox.git
cd app-sandbox/app-sandbox
// nested workspacenpm install
nx serve test-java-app
Extra notes: