Results 1 to 2 of 2
Thread: Parent Child POM's
- 08-16-2016, 05:04 AM #1
Member
- Join Date
- Aug 2016
- Posts
- 1
- Rep Power
- 0
Parent Child POM's
Hi Guys,
I have multiple projects that will be using the same POMS. the only thing that would change is the artifactid and version in the projects node. my question is how do i put all of my dependencies and distrubtionmanagement in a separate pom file and have a small pom file in my project that has a link to the pom file that has all of the dependencies and distrubtionmanagement ? i am trying to keep the pom file in each project very small. see the example below.
<!-- This will be the pom in my project -->
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.company</groupId>
<artifactId>my-app-name</artifactId>
<version>1.0.1-SNAPSHOT</version>
<packaging>war</packaging>
<name>my-app-name</name>
</project>
<!-- This is the file on my maven server that will be called for the dependencies and distributionmanagement on every maven build -->
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<project>
<dependencies>
<dependency>
</dependency>
</dependencies>
<distributionManagement>
<repository>
</repository>
<snapshotRepository>
</snapshotRepository>
</distributionManagement>
</project>
- 08-16-2016, 10:18 AM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 13,541
- Rep Power
- 27
Similar Threads
-
Parent and child windows
By Heatryn in forum Advanced JavaReplies: 3Last Post: 06-22-2012, 03:40 AM -
Please help me. Parent and Child Class with Swing
By paul6lazo in forum AWT / SwingReplies: 22Last Post: 09-07-2011, 06:37 PM -
invoking parent method even though child overrides it...
By vinod_javaranch in forum New To JavaReplies: 2Last Post: 08-18-2011, 05:33 PM -
Access Parent and child node
By emyk in forum Advanced JavaReplies: 0Last Post: 05-03-2011, 12:16 AM -
Parent & Child window issues......
By jithan in forum New To JavaReplies: 2Last Post: 09-20-2008, 10:21 AM
Bookmarks