Comments (1)
Sorry for the delay in responding, and thanks for using the plugin.
Indeed, Nx, which is based on NodeJS, requires a package.json
to install all the runtimes dependencies it needs.
If you don't want to have a package.json
or a node_modules/
alongside with it, you can
1- init your workspace with this command:
npx nx init --useDotNxInstallation
It will create a Nx workspace that come with Nx Wrapper.
Just like Maven Wrapper (mvnw) or Gradle Wrapper (gradlew), that wrapper is responsible of managing Nx installation automatically, so you dont have to worry about it, and you will have a minimal presence of Nx required files in your workspace.
The only file that would be relevant in the workspace is the nx.json
: Nx configuration file.
2- add the @nxrocks/nx-spring-boot
to the workspace's nx.json
:
Edit the "installation.plugins"
section, and add "@nxrocks/nx-spring-boot": "<version>"
3- Then, you can simply run ./nx @nxrocks/nx-spring-boot:new <projectName>
to add new Spring Boot projects within the workspace.
I have just created a new CLI package called create-nx-spring-boot
that will automate all the steps above for you!
It will be released next week.
from nxrocks.
Related Issues (20)
- Run arguments on project level are not pass to ./mvnw spring-boot:run only the ones that are coded to the project.json HOT 5
- [Feature] Configuration Variants HOT 1
- [Feature] (nx-spring-boot) Add Support for Java 21 HOT 2
- [chore] Reduce code smells reported by Sonarcloud
- [Feature] Make sure e2e + smoke tests pass on all OS
- Linking is failing with nx-spring-boot link command [Bug] HOT 1
- [bug] Spring packages are not cached HOT 1
- [Feature] Update plugins to support Nx 17 HOT 14
- [Bug] Support for nx v17.x.x HOT 6
- Executors not working in a multi-module project with more than one level of folders HOT 12
- [Feature] : support java 21 HOT 5
- [Question] Maven dependency management for monorepo libs HOT 16
- [Feature] Run custom Maven commands by nx-spring-boot HOT 2
- [Bug] create-nx-spring-boot fails to run HOT 3
- [Bug] createNodesFor is not a function since @nxrocks/nx-spring-boot 9.3.0 HOT 8
- Cached projects are only restored the "target" folder but not the ~/.m2/repository folder HOT 10
- [Bug] Cannot run any nx command after creating micronaut project HOT 10
- [Bug] Spring boot multi-modules project doesn't work HOT 11
- [Bug] nx-flutter: inferred tasks aren't working HOT 26
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nxrocks.