Coder Social home page Coder Social logo

Support Non root parent pom about jnxplus HOT 3 CLOSED

jbadeau avatar jbadeau commented on July 29, 2024
Support Non root parent pom

from jnxplus.

Comments (3)

khalilou88 avatar khalilou88 commented on July 29, 2024

@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.

jbadeau avatar jbadeau commented on July 29, 2024

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.

khalilou88 avatar khalilou88 commented on July 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.