Comments (3)
@jbadeau for the second point it's possible with maven plugin. You can generate a parent-project and make it your parent POM. But we need a root pom as a aggregator for all projects.
- Root Pom: aggregator for all projects and for versions
- Parent project, put it where you want, you can have a parent project for libs and other for apps. And make apps parent project extend libs parent project...
You can check nx-maven e2e test for this, but yes it's need documentation
For the first point, i don't know if it's possible
from jnxplus.
Hello there,
I have tried your suggestion and it works but I noticed an issue in the affected graph. If I have a pom.xml at the repo root and I modify any other file (e.g. README.MD) in the root I get an affected graph of all the maven projects. In this case I have no project.json at the root.
I am using:
- nx: 16.7.2
- @jnxplus/nx-boot-maven: 7.3.0
Might have crept in when making the change to include parent poms as dependencies. I would be ok with the root pom being only an aggregator pom
My root pom looks like:
<?xml version="1.0" encoding="UTF-8" ?>
<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>4.0.0</modelVersion>
<groupId>com.foo.techradar</groupId>
<artifactId>workspace</artifactId>
<version>0.0.0</version>
<packaging>pom</packaging>
<modules>
<module>libs/techradar</module>
</modules>
</project>
libs/techradar is the real parent pom
from jnxplus.
this feature is tracked in this new issue: #519
during init we will give the user an option to choose a subfolder for all maven projects (another feature will be for gradle projects).
closing the issue
from jnxplus.
Related Issues (20)
- {options.outputDirLocalRepo} not working if moved to nx.json HOT 6
- NX remove does not remove Gradle module from settings.gradle.kts HOT 1
- [nx-maven] Hyphen '-' is not removed in @SpringBootApplication(scanBasePackages = "com.acme.sda-example") HOT 1
- THANK YOU
- How to use ktlint for nx-maven and nx-gradle? HOT 6
- nx show projects hangs with @jnxplus/nx-maven:0.24.3 and nx:17.0.2 HOT 17
- Version 1.0.0 with Nx 19 HOT 2
- Project crystal HOT 6
- Logs not visible when running the application HOT 4
- Gradle :projectDependencyTask fails if NX Daemon is not running HOT 3
- {options.outputDirLocalRepo} not caching HOT 11
- Export nx-maven run-task executor HOT 2
- nx-maven:run-task skipProject option HOT 8
- Project not marked as affected if dependency upgraded HOT 5
- Performance and mvnd HOT 7
- 1.2.0 and 1.3.0+ problems HOT 4
- jnxplus and nx remote caches HOT 3
- Exclude src/test from build
- consider profile dependencies in maven graph HOT 4
- Flag to not create a virtual root folder project? HOT 12
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 jnxplus.