Questions tagged [flatten-maven-plugin]
10 questions
4
votes
1 answer
In a multi-module maven project, can I make a module to calculate transitive dependencies based on the DependencyReducedPom of another module?
This appears to be a simple question but I found it difficult due to maven's extremely rigorous paradigm of lifecycles and phases:
Assuming that in a multi-module maven project, several plugins are used in various phases to rewrite the pom.xml to…

tribbloid
- 4,026
- 14
- 64
- 103
4
votes
3 answers
Flatten Plugin: Resolve dependencyManagement of bom without inherited
I created an example project for this problem: https://github.com/robeatoz/flatten-resolve-dependency-management-without-inherited
Following project structure is given:
foo-build as the parent for all modules
foo-module-a as child…

RoBeaToZ
- 1,113
- 10
- 18
3
votes
0 answers
How to tell flatten-maven-plugin:1.0.1 leave ${project.basedir} not to resolve it with a fix string when produce flatten pom
I'm using flatten-maven-plugin:1.0.1 to solve my dependency versions.
But it introduces another problem.
In my pom I have using
org.cryptix
cryptix-jce-provider
…

Hong Miller
- 101
- 1
- 4
2
votes
2 answers
Maven parent version ${revision} expansion in cross project inheritance
Background:
I'm using maven 3.5 and have a 'master' aggregator project which has 4 modules (uses both aggregation and inheritance).
I also have 30 separate child projects, both single and multi-module, which each inherit from one of those 4…

user1373164
- 428
- 4
- 14
1
vote
0 answers
DependencyConvergence error when compiling maven project
We have multimodule project . I could see one place considers SNAPSHOT and another place considers exact version . I get below error when building pom. Could some one please help on this?
[WARNING]
Dependency convergence error for…

santosh jk
- 111
- 1
- 11
1
vote
2 answers
How do I externally set a version for my jar without a parent pom that produces a usable pom.xml for dependencies
How do I externally define the version tag in pom.xml for a jar project, with no parent pom?
I've used properties-maven-plugin and flatten-maven-plugin to get real close. The resulting pom.xml that gets deployed has an unusable version because of…

Robert Kish
- 43
- 5
0
votes
2 answers
flatten-maven-plugin deploy multi module project
parent project maven
4.0.0
groupId
artifactId
pom
${revision}
module1
…

zhuochen shen
- 1,673
- 4
- 16
- 24
0
votes
2 answers
Is there a way to interpolate all ${project.version} variables in a Maven pom.xml?
I need to replace all occurrences of ${project.version} with the real value in a pom.xml.
I can do that with the maven-flatten-plugin, but that will rewrite the whole pom.xml instead of just replacing the project.version only.
As I want to use the…

Michael
- 3,085
- 1
- 17
- 15
0
votes
2 answers
Maven flatten plugin not working does not substitute my version property
For some reason when i do mvn install and check my local repo and look at the pom there, i don't see that the version variable was substituted with the value.
I am using a parent pom with a version in the properties
…

thedrs
- 1,412
- 12
- 29
0
votes
0 answers
Why isn't metadata added to child pom files generated by the flatten-maven-plugin?
The output pom files generated by the flatten-maven-plugin(v 1.0.1) contains all the metadata elements I need to publish on OSSRH when ossrh is specified, or when individual fields are specified with .…

bbarker
- 11,636
- 9
- 38
- 62