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

Parent POM : share common configuration files across child projects

I'm currently creating a parent POM, with all necessary configuration, as a base for all my personal projects. The ultimate goal is to have small child projects (= with little configuration) and to bootstrap projects more easily, by just inheriting…
norbjd
  • 10,166
  • 4
  • 45
  • 80
3
votes
2 answers

Gradle : Something like Maven Parent POM

In our company, many of the different projects use similar technology stack and will have many common features. So, we want to maintain the common features, dependencies etc. in one common file and refer it in the other projects. In maven, it is…
jana
  • 153
  • 2
  • 3
  • 16
3
votes
1 answer

Differences between dependencyManagement and dependencies in maven for "provided" scope

I referred to this thread differences between dependencymanagement and dependencies in maven but this question is specific. Parent POM: com.company.rtdp.rtds
user104309
  • 690
  • 9
  • 20
3
votes
0 answers

Maven modules multi-level hierarchy

Is it possible to have multi-level module hierarchy in maven? If yes, are there any problems with it or would it work as smooth as parent-child hierarchy? e.g. parent |__child1 |__child2 |__grandchild1 |__grandchild2 …
Popeye
  • 1,548
  • 3
  • 25
  • 39
3
votes
1 answer

Maven Site Plugin: Define url in parent without adding subdirectories

I define a URL for a Maven site by site-nexus dav:http://ik-repo1:8084/nexus/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}
J Fabian Meier
  • 33,516
  • 10
  • 64
  • 142
3
votes
1 answer

Maven Inheritance and Distribution Management

I have developers who use Maven parents external to my organisation. For this particular case the parent is the spring-boot-starter-parent org.springframework.boot
Shaun
  • 475
  • 1
  • 5
  • 16
3
votes
2 answers

mvn clean install not able to resolve class

I have the following maven structure parent POM.XML - common/pom.xml - search/pom.xml Search module is not able to get common module classes when i do mvn clean install on search module I get package de.test.common does not exists. I even ran mvn…
Saurabh Kumar
  • 16,353
  • 49
  • 133
  • 212
3
votes
3 answers

How to configure pom.xml file to use Nexus Repository manager

I am using Redhat, java 1.7, maven 3.2.5, jenkins 1.6,git version 2.0.5 and nexus-2.12.0-01 I have created a Local Nexus Repository for my internal development. Now What I am trying to do is, to build maven project using jenkins with Nexus…
Varun
  • 4,342
  • 19
  • 84
  • 119
3
votes
1 answer

Dependencies in Dependency Management vs Dependencies in Maven versions plugin

When I use Maven versions:display-dependency-updates to check dependencies updates, I get two sections of result. 1st: The following dependencies in Dependency Management have newer versions: 2nd: The following dependencies in Dependencies…
Xdg
  • 1,735
  • 2
  • 27
  • 42
3
votes
1 answer

How to setup maven parent pom to build an rpm from child rpms

I have a microservices project with multiple pom layers. I have it setup to generate rpms for each service using the 'org.codehaus.mojo:rpm-maven-plugin:2.1.1' plugin. I need to set it up to generate one rpm with all of those rpms as required…
Chip
  • 1,439
  • 3
  • 15
  • 29
2
votes
1 answer

Does maven dependecyManagement impact pluginManagement transitive dependencies?

I understand that config impacts to and transitive dependencies there. But also affects plugins under or ? I have a case where is not happening, but just want to confirm if is a…
2
votes
2 answers

Jenkins Fails to parse poms due to missing parent pom

our jenkins job failes to parse poms, as it cannot find the parent pom. (Jenkins version 2.332.3) Parsing POMs Failed to transfer Could not find artifact in central (https://repo.maven.apache.org/maven2) ERROR: Failed to parse…
Felix
  • 123
  • 2
  • 12
2
votes
0 answers

Maven: Possibility to execute same execution with different parameters

I am working on a multi module maven project, in which I need to run the same execution multiple times with only 1 or 2 different parameters. Basically, at the end of the build we are starting the resulting jar with some parameters, to execute a few…
Robert P
  • 9,398
  • 10
  • 58
  • 100
2
votes
0 answers

Maven versions-maven-plugin NullPointerException when invoking with parent pom

I have a project folder structure where we use a parent pom and each subfolder contains its own pom.xml. Like this: Project (pom.xml) |- Addon-1 (pom.xml) |- Addon-2 (pom.xml) |- Addon-2 (pom_hotfix.xml) Addon-1 and Addon-2 pom.xml contains a…
2
votes
1 answer

How to setup maven parent and child project as separate projects?

There is a project (type=pom), which is supposed to be used as a parent for another project. parent 4.0.0 my-firm custom-parent 1.0.0
diziaq
  • 6,881
  • 16
  • 54
  • 96