You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe
Currently the nx-spring-boot plugin can run a certain set of executors that mirror dedicated Maven or Spring-Boot commands.
Describe the idea you'd like
It would be nice, if there would be an executor which runs custom Maven commands, maybe given as an additional parameter. E.g. in some cases it's necessary to just run the Maven test-compile phase. As the plugin already has the capability to use an embedded Maven wrapper or a globally installed, we could just use this plugin instead of creating a custom run command for nx and reimplementing the search for the Maven executable.
I know that this was not the primary goal of this plugin (because it is mainly focusing on Spring-Boot), but maybe it can be more than that and maybe it will then be used also by users who don't use Spring-Boot.
Describe alternatives you've considered
The alternative would be, to create a completely new plugin (maybe called nx-maven) that has the same capabilities as the nx-spring-boot plugin but focuses just on calling custom Maven commands.
Additional context
No response
The text was updated successfully, but these errors were encountered:
What you are asking is basically what you can already do using nx:run-commands, which is a generic Nx executor that allows you to run any command in a project in the workspace.
You just need to add a target in your project.json file(or simply create one if starting from scratch)
project.json
{
// ...
"targets": {
//...
"test-compile": {
"executor": "nx:run-commands",
"options": {
"cwd": "apps/path/to/my/project", // (optional) you can set the current working directory
"command": "mvn test-compile " // you could also use Maven wrapper for eg, "./mvnw",
}
}
}
}
Imho, the interest of a pure nx-maven plugin is limited, because I cannot provide the handy generators/executors out-of-the-box, given that the maven goals available, would highly vary, based on what maven plugins are actually used in that project. Unlike a dedicated Nx Springboot plugin, for which I know the basic setup/structure ahead of time, I can create those generators/executors to help users create such projects, or run related tasks.
Is your feature request related to a problem? Please describe
Currently the nx-spring-boot plugin can run a certain set of executors that mirror dedicated Maven or Spring-Boot commands.
Describe the idea you'd like
It would be nice, if there would be an executor which runs custom Maven commands, maybe given as an additional parameter. E.g. in some cases it's necessary to just run the Maven
test-compile
phase. As the plugin already has the capability to use an embedded Maven wrapper or a globally installed, we could just use this plugin instead of creating a custom run command for nx and reimplementing the search for the Maven executable.I know that this was not the primary goal of this plugin (because it is mainly focusing on Spring-Boot), but maybe it can be more than that and maybe it will then be used also by users who don't use Spring-Boot.
Describe alternatives you've considered
The alternative would be, to create a completely new plugin (maybe called nx-maven) that has the same capabilities as the nx-spring-boot plugin but focuses just on calling custom Maven commands.
Additional context
No response
The text was updated successfully, but these errors were encountered: