Questions tagged [parent-pom]

parent-pom is a parent configuration file in Maven POM inheritance.

A pom.xml file is a configuration file for Maven to build a project.

It can be inherited from other pom.xml files. A parent-pom is the parent in POM (Project Object Model) inheritance.
All POM files inherit from a base Super POM in implicit way.

More Info

276 questions
0
votes
1 answer

Parent POM is taking the same version which I am giving in the module version

I have a multi module maven project for e.g. A B C D E Currently this project is working fine and have a single job to build all the modules and upload to the artifactory with some version for e.g. 4.0.0-.They are using versions:set…
unknown
  • 1,815
  • 3
  • 26
  • 51
0
votes
1 answer

Version declaration in parent POM

Which is the suitable tag to declare version of dependencies used in child POM, i.e. Properties tag or DependencyManagement tag? What are their respective pros n con's? Is there any better way?
Ankur Piyush
  • 308
  • 1
  • 9
0
votes
1 answer

Programatically resolving POM dependency using ivy, but not source and javadoc

Using this method, I could successfully resolve (but NOT retrieve the actual jars) all dependencies of a library when its organization, name and revision are given, all programatically using Apache Ivy. During the resolution process, it parses given…
lyomi
  • 4,230
  • 6
  • 30
  • 39
0
votes
1 answer

Can I add maven dependencies that are packed as anything other than .jar?

I just produced my first parent-module project with maven, and successfully installed it. Can I add this project as a dependency in another project, only by referring to the parent? My Eclipse IDE complains that it can't find the parent.jar, but…
jumps4fun
  • 3,994
  • 10
  • 50
  • 96
0
votes
1 answer

Create a release that will promote only the relevant submodules

I have a root pom that have multiprojects. When doing mvn release:prepare a tag is being created were all the SNAPSHOT changed to numbers. Is there a way to create a release that will promote only the projects that had changed from the last release…
0
votes
0 answers

Subversion/Maven changes in snapshot since last release

I expect this is a common issue, but one I am not aware of a sensible solution to. We have adopted the procedure where all local dependent modules are moved straight back to SNAPSHOT once the release has been done. Time passes and we come to do a…
theINtoy
  • 3,388
  • 2
  • 37
  • 60
0
votes
0 answers

Obtaining all parent poms in a repository

I have a huge local repository, which also contains unneeded jars (they are needed for other projects, but not for the task at hand). I've extracted the dependencies of my project using the maven dependency plugin and parsed that information into…
Cristina_eGold
  • 1,463
  • 2
  • 22
  • 41
0
votes
2 answers

Where to define parent, child pom and how to call in maven?

i can understand if we have , tag, then it would be child pom. but not sure where to define the parent, child pom and how we can call in maven? for e.g., My project current structure…
divakar.scm
  • 1,256
  • 5
  • 21
  • 32
0
votes
2 answers

can we add ejb dependency into war or is it a bad practice

I am having a multimodule maven project: Having three modules jar, war and ejb I need to add ejb dependency in my war to access ejb bean so i created one ear and added them in it but still war cant find the ejb bean classes.here is the pom file of…
kirti
  • 4,499
  • 4
  • 31
  • 60
0
votes
1 answer

Super POM Manifest Entries not being used

We have a corporate wide super-pom that we use. It sets up all of the mvn site reports, making sure that all of the users are using Findbugs, PMD, etc. One of the things we want to do is add entered to our MANIFEST.MF file. The entries help us pin…
David W.
  • 105,218
  • 39
  • 216
  • 337
0
votes
1 answer

maven parent-child multi-module project

In my project, we are given a sample project structure to be followed and I am very new to multi-module projects. We have a parent project and 4 sub-projects that have that as parent. And in the parent project, only 3 out of those 4 are configured…
l a s
  • 3,836
  • 10
  • 42
  • 61
0
votes
1 answer

How to find the exact version of a maven dependency programmatically when version is inherited?

I have a maven project where many of the version of child pom's dependencies are listed under tag of the parent pom. This pom tree can have any depth. My problem is, when a pom.xml is given how can I resolve the…
0
votes
1 answer

Maven Multi Module Resource Sharing

I have a Maven structure that builds just fine, but I somehow struggle with my Checkstyle resources. The structure is as follows: Parent Sub Parent A Modules Sub Parent B Modules Build Resources src/main/resources files The parent is…
fancy
  • 2,077
  • 2
  • 23
  • 45
0
votes
1 answer

maven dependency issue with parent-child reference

I am using apache maven 3.1.0 (after quite some time) on windows for a project put together by somebody else. I have a parent pom & multiple child pom xml files. The child pom contains the following which is causing an issue when I run mvn clean…
ali haider
  • 19,175
  • 17
  • 80
  • 149
0
votes
1 answer

why don't use scope maven dependency Management?

if i define this dependency at parent's pom: org.springframework spring-core 3.1.0.RELEASE
ZaoTaoBao
  • 2,567
  • 2
  • 20
  • 28
1 2 3
18
19