Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Install parent POM without building Child modules #82

Open
jwenjian opened this issue Aug 7, 2019 · 0 comments
Open

Install parent POM without building Child modules #82

jwenjian opened this issue Aug 7, 2019 · 0 comments
Labels

Comments

@jwenjian
Copy link
Owner

jwenjian commented Aug 7, 2019

Install parent POM without building Child modules

Imagine you have a parent pom that has 2 child modules, structure as below:

your-project/
- pom.xml
- module-a/
    pom.xml
- module-b/
    pom.xml

when you trying to execute mvn clean install on the root level of your project, i.e. in folder your-project/ for the first time, you will get an error said the parent pom cannot find.

To fix this, you need:

  1. install the parent pom only
mvn clean install -N

Or

mvn clean install --non-recursive

-N,--non-recursive Do not recurse into sub-projects

  1. install the child modules
mvn clean install

That's it! 👏

August 7, 2019 at 06:06PM

via Instapaper https://ift.tt/2YwjHXm

@jwenjian jwenjian added the Maven label Aug 7, 2019
@jwenjian jwenjian changed the title [From Instapaper] : Install parent POM without building Child modules Install parent POM without building Child modules Aug 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant