jgitver / jgitver/jgitver-maven-plugin
Maven enforcer plugin cannot resolve dependencies in multi-module projects when bound to the 'validate' lifecycle
- Dominant language
- Groovy
- Stars
- 166
- Forks
- 42
- PR merge metrics
- No merged PRs in 30d
Description
**version**:1.5.1
**usage context**:
- [x] maven command line: 3.5.2
**Problem description**:
Our main project uses the maven-enforcer-plugin to ensure dependency convergence (i.e. make sure there is only a single version of each dependency on the path, to avoid issues like multiple JAXB or Spring versions at runtime)
We bind the enforcer checks to the validate stage to ensure early failures in the build if someone adds an errant dependency. When I run 'mvn validate', the build fails as it cannot find module dependencies with the version calculated by jgitver. However, the 'compile' phase works without issue.
Any suggestions for how I should configure enforcer or jgitver to avoid this issue?
Here is my enforcer config
```
org.apache.maven.plugins
maven-enforcer-plugin
1.4.1
validate
enforce
enforce
```
Contributor guide
Assessment
This issue has not been assessed yet.