Download Latest Version Latest source code.tar.gz (23.9 kB)
Email in envelope

Get an email when there's a new version of 1JPM

Home / 3.1.0
Name Modified Size InfoDownloads / Week
Parent folder
JPM.java 2024-08-31 53.9 kB
3.1.0 source code.tar.gz 2024-08-31 17.6 kB
3.1.0 source code.zip 2024-08-31 25.1 kB
README.md 2024-08-31 1.2 kB
Totals: 4 Items   97.8 kB 0

1JPM automatically resolves parent and child projects

See project.isAutoParentsAndChildren. If true updates current pom, all parent and all child pom.xml files with the respective parent details, adding seamless multi-module/project support.

This expects that the parent pom is always inside the parent directory, otherwise a performant search is not possible since the entire disk would need to be checked.

1JPM helps porting your multi-module project

Add JPM.java to your root project directory and add JPM.portChildProjects(); before building. This is going to download and copy the latest JPM.java file into all child projects it can find in this directory, and also run it to generate an initial pom.xml for that child project. The child projects name will be the same as its directory name.

A child project is detected if a src/main/java folder structure exists, and the parent folder of src/ is then used as child project root.
Note that a child project is expected to be directly inside a subdirectory of this project.

Now project.isAutoParentsAndChildren will work properly, since all needed pom.xml files should exist.

Source: README.md, updated 2024-08-31