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

Spring Boot - parent pom when you already have a parent pom

Is there a specific recommended approach to the inclusion of the spring-boot parent pom into projects that already have a required parent POM? What do you recommend for projects that need to extend from an organizational parent (this is extremely…
Scott C.
  • 3,672
  • 4
  • 18
  • 20
112
votes
4 answers

What does the parent tag in Maven pom represent?

E.g.: mycompany.trade.com mycompany.trade. 1.1.1.0-SNAPSHOT Does it mean that Maven will search for parent pom? If yes, where, in which order? May be in…
user710818
  • 23,228
  • 58
  • 149
  • 207
67
votes
6 answers

How to inherit dependency from a parent pom to a child pom

I am new in using maven and jenkins. I am trying to inherit the dependencies from parent pom to child pom it shows the following errors: [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR]…
Cherry
  • 971
  • 1
  • 10
  • 20
59
votes
9 answers

Maven:Non-resolvable parent POM and 'parent.relativePath' points at wrong local POM

I am using maven 3 to run the application but I am getting the following error: [ERROR] The build could not read 1 project -> [Help 1] org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the…
Srinu
  • 1,519
  • 2
  • 11
  • 10
49
votes
3 answers

M2E: Version is duplicate of parent version - Why is this a warning?

I have several Maven projects that each have some common functionality or at least common configuration/dependencies. I extracted this in to a common pom.xml, and then modularlized several facets, for example persistence, Spring related…
Doug Moscrop
  • 4,479
  • 3
  • 26
  • 46
47
votes
17 answers

Maven and Spring Boot - non resolvable parent pom - repo.spring.io (Unknown host)

I am trying to build my project but I get this: Non-resolvable parent POM: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.3.0.M3 from/to spring-snapshots (http://repo.spring.io/snapshot): repo.spring.io and…
Kingamere
  • 9,496
  • 23
  • 71
  • 110
35
votes
6 answers

Maven root pom.xml marked as red when importing existing project into eclipse

When importing existing maven project into eclipse my root pom.xml is marked red. when i select on the pom.xml the message reads : Can't import project XYZ from an existing workspace folder This only happens for the root pom.xml Eclipse in use:…
zalis
  • 1,191
  • 1
  • 11
  • 20
33
votes
1 answer

spring-boot without parent pom.xml cannot generate war packaging

I used the example gs-convert-jar-to-war provided by spring-io. It describes how to generate war packaging within a spring boot project. The spring-boot documentation allows for using own parent poms, thus omitting the predefined parent pom for all…
Matthias Brenner
  • 372
  • 1
  • 3
  • 10
32
votes
1 answer

Missing artifact org.springframework.boot:spring-boot-starter-parent:jar:1.3.2.RELEASE

I am getting the following error in POM.xml for spring boot dependency. Missing artifact org.springframework.boot:spring-boot-starter-parent:jar:1.3.2.RELEASE I tried all the solutions given in the following link but nothing solved my…
deen
  • 2,185
  • 7
  • 29
  • 53
31
votes
1 answer

Maven complaining about parent relative path

Consider a maven project with modules consists of some utilities (jar) and some poms for others to reference to if they want to use some of these utilities. e.g. inside the parent pom.xml project-parent
user1589188
  • 5,316
  • 17
  • 67
  • 130
27
votes
1 answer

How do I install a POM in my local m2 repository?

I need to install a parent POM (without a JAR file) into my local .m2 repository. mvn install:install-file won't let me do that, it always asks for a valid -Dfile=. How can I install tmp/dependency-management-1.0.0-SNAPSHOT.pom?
Aaron Digulla
  • 321,842
  • 108
  • 597
  • 820
27
votes
3 answers

Can a parent property be made final so that it cannot be overridden by a child

Is it possible to make properties in parent pom not overridable by the module pom? For example: if module pom says: some value to be replaced and parent pom already has it declared…
zacheusz
  • 8,750
  • 3
  • 36
  • 60
21
votes
5 answers

Maven - skip parent project build

I know it's mauvais ton to ask twice in a single day but here's another Maven puzzler: I have a parent POM which defines 5 modules (5 subprojects). Since each module is executed in exactly the same way I pull section into the parent…
Bostone
  • 36,858
  • 39
  • 167
  • 227
20
votes
4 answers

"Non-resolvable parent POM: Could not transfer artifact" when trying to refer to a parent pom from a child pom with ${parent.groupid}

I'm following a tutorial for maven. I have a very simple project with a couple of modules inside. On the module pom I want to reference the main proyect pom version and group through ${parent.groupid} and ${parent.version} so if I change any of…
Felipe
  • 315
  • 2
  • 3
  • 10
17
votes
2 answers

How can I see where portions of an effective pom (in Maven) come from?

I'm working on a project in Maven and I'm trying to understand where certain settings are coming from in the effective pom. I want to trace backwards, so I can figure out which pom files need changing. I have modified my parent pom, my…
Duff
  • 1,389
  • 1
  • 11
  • 21
1
2 3
18 19