Install parent POM without building Child modules
jwenjian opened this issue · 0 comments
jwenjian commented
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:
- install the parent pom only
mvn clean install -N
Or
mvn clean install --non-recursive
-N,--non-recursive Do not recurse into sub-projects
- install the child modules
mvn clean install
That's it! 👏
August 7, 2019 at 06:06PM
via Instapaper https://ift.tt/2YwjHXm