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
5
votes
3 answers

Maven -- is there a command to download the parent poms of all dependency jars?

I know we can download the dependency jars... but can we download the parent poms of all dependency jars? For example Project A brings in library B as dependency, but library B has parent pom C.xml. I want to find a command that downloads all…
CuriousMind
  • 15,168
  • 20
  • 82
  • 120
5
votes
2 answers

Can Maven ref a parent POM from a private s3 bucket?

When using a private AWS S3 bucket as a Maven repo, there's plenty of working s3 wagon providers that work just fine for deploying and pulling dependencies using the s3://[bucket]/folder protocol. However, when you try to do this with a parent POM…
Alex
  • 2,435
  • 17
  • 18
5
votes
0 answers

How to deploy maven parent pom.xml into artifactory?

I created a pom.xml which contains my general dependencies. I want to add this pom into our inhouse repository (Artifactory) and then want to use it in all of my maven modules pom files as defining . I can install the parent pom.xml into M2 and use…
user1153321
  • 347
  • 6
  • 18
4
votes
1 answer

Intellij can not parse pom.xml with $revision. Maven works

${revision} tag can be used in pom.xml as described here. Having this directory structure: fix ├── pom.xml ├── parent │   └── pom.xml └── example └── pom.xml pom.xml has: intellij
nephewtom
  • 2,941
  • 3
  • 35
  • 49
4
votes
0 answers

maven enforcer plugin ignores property from maven ci

I'm using the maven ci friendly style to set the pom version from a property. Before I get into the details of what's happening, let me tell you how my pom and project is structured. Project structure base-project-pom |_ reactor-parent |_…
Pavan
  • 130
  • 9
4
votes
2 answers

How to use parent pom's profile properties in child pom?

Current scenario: Parent pom has a distributionManagement section, where two repositories (releases and snapshots) are defined; refer below: Parent pom:
Vaibhav Shah
  • 93
  • 1
  • 10
4
votes
4 answers

Maven: Eclipse not correctly configuring paths in a project with a parent pom

I have a maven project that I correctly build through the command line (mvn test). It is structured this way: pom.xml |-------subdir1/pom.xml |-------subdir2/pom.xml |-------subdir3/pom.xml Inside each of the subprojects dir (subdir[1-3]), I have a…
neves
  • 33,186
  • 27
  • 159
  • 192
4
votes
4 answers

Avoid wrong version interpolation if child's pom version is different from those of the parent's aggregator pom and its sub modules

Problem description We have a Maven aggregator pom with some child poms (modules) all having the same version: pom.xml (parent zoo, version 2.0.0) |-- pom.xml (child module cat, version 2.0.0) |-- pom.xml (child module dog, version 2.0.0) |--…
Claude
  • 1,724
  • 3
  • 17
  • 46
4
votes
1 answer

How to add gradle 'compile project' dependencies to published *.pom?

I have a hierarchical gradle 2.4 project like this: Root |- subProject1 |- subProject2 |- subProject3 For each sub project, I want to publish a .jar file and a .pom file and store them in a maven repository. All regular…
Martin Häusler
  • 6,544
  • 8
  • 39
  • 66
4
votes
1 answer

Common repository maven best practices

If my company has an artifactory repository set up, what is the best way to ensure all projects can access it? Currently all repository information is in a master pom project (it also contains stuff other than repo info). Then any other projects…
edwardmlyte
  • 15,937
  • 23
  • 58
  • 83
4
votes
2 answers

Where does Super POM come from in the config

When I look at my effective pom in Eclipse, I can see a load of dependencies and a label stating that this is our corporate super pom which must form part of every project. I can't actually work out where the super pom comes into play in the config.…
smackenzie
  • 2,880
  • 7
  • 46
  • 99
3
votes
1 answer

How can I mix parent POMs in a Maven multi-module build?

I have a Maven multi-module project and I need two different parent POMs in this build. The first one is the real parent POM for most modules in the project but one module is a demo project which uses the parent POM of a completely different project…
Aaron Digulla
  • 321,842
  • 108
  • 597
  • 820
3
votes
0 answers

surefire-junit47 from parent POM prevents JUnit 5 test detection

Due to company policy, my project must inherit from a parent POM, which I cannot change. The parent POM defines the following surefire plugin in the pluginManagement section:
DV82XL
  • 5,350
  • 5
  • 30
  • 59
3
votes
1 answer

BOM dependency vs Parent Dependancy in Maven

I would like to know the difference between Parent and BOM in pom. It looks like both solves the same problem where you do not want to include version in each individual project, but maintain it in a central (parent / BOM) maven. Can anyone help me…
3
votes
1 answer

Skipping a Maven module that's already been published to Maven Central

Let's say I have an aggregate Maven project. com.example:foo:1.0.0 is the aggregate parent POM, and it contains the child project com.example:bar:2.0.0. I publish them both to Maven Central using the nexus-staging-maven-plugin. Note that I do not…
Garret Wilson
  • 18,219
  • 30
  • 144
  • 272
1 2
3
18 19