title: What is the correct way to make Maven find the parent POM of my project?
body: <p>I have a Maven project which is a part of a large scale enterprise system. I have not developed this project, but I have developed a small framework, which I am supposed to test, integrated with it. Upon copying, building and installing the project, it compiled, and I was able to launch it. However, after trying to add my framework (parent pom + 3 modules), I may have changed some settings, and now I am having trouble building the project. I have spent a lot of time trying to break down the problem, but all I have been able to do, is produce different errors, that I understand even less of.</p>
  
  <p>I can't seem to find out where I can tell maven where to look for the parent POM. I have tried both the pom.xml, and settings.xml, but I haven't found any good options. I have also tried to change less obvious parameters, like changing localRepository, or adding repositories, but they proved ineffective</p>
  
  <p>Here is my error message, interlaced with my attempts to fix it:</p>
  
  <pre><code>C:\development\my-main\customer-webpart&gt;mvn install -Dmaven.test.skip=true
  </code></pre>
  
  <p>This is my domain. this includes the master pom of this project, although it is still part of a bigger system, and not the root. I would like to build, install and run this project, to test my framework. My framework is added as a dependency in the pom.xml.</p>
  
  <pre><code>[INFO] Scanning for projects...
  Downloading: http://my-server:8080/archiva/repository/my-repository//
  org/myportal/client-product/0.0/client-product-0.0.pom
  </code></pre>
  
  <p>I do not know where this archiva repository is defined. It is not in the pom.xml, or settings.xml. It seems to have an error with the double /, but the client-product-0.0.pom should not be retrieved from here anyway. It is located at <em>C:/mavenLocalRepository/my-main/client-product/0.0/client-product-0.0.pom</em></p>
  
  <pre><code>Downloading: http://repo1.maven.org/maven2/org/myportal/
  client-product/0.0/client-product-0.0.pom
  </code></pre>
  
  <p>This was also the wrong location to look for the .pom-file... so then the rest of the error is produced:</p>
  
  <pre><code>[INFO] ------------------------------------------------------------------------
  [ERROR] FATAL ERROR
  [INFO] ------------------------------------------------------------------------
  [INFO] Error building POM (may not be this project's POM).
  
  
  Project ID: null:customer-webpart:zip:${org.myportal.version}
  
  Reason: Cannot find parent: org.myportal:client-product for project: null:customer-webpart:zip:${org.myportal.version} for project null:customer-webpart:zip:${org.myportal.version}
  
  
  [INFO] ------------------------------------------------------------------------
  [INFO] Trace
  org.apache.maven.reactor.MavenExecutionException: Cannot find parent: org.myportal:client-product for project: null:customer-webpart:zip:${org.myportal.version} for project null:customer-webpart:zip:${org.myportal.version}
  
          at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
          at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:292)
          at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
          at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:606)
          at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
          at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
          at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
          at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
  Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find parent: org.myportal:client-product for
  project: null:customer-webpart:zip:${org.myportal.version} for project null:customer-webpart:zip:${org.myportal.version}
          at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1370)
          at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:821)
          at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.ja
  va:506)
          at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:198)
          at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:583)
          at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:461)
          at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)
          ... 11 more
  Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.myportal:client-product' not found in repository: Unable to download the artifact from any repository
  
    org.myportal:client-product:pom:0.0
  
  from the specified remote repositories:
    my-repository (http://my-server:8080/archiva/repository/my-repository/),
    localRepository2 (C:/mavenLocalRepository/logging-framework/),
    localRepository (C:/mavenLocalRepository/my-main/),
    central (http://repo1.maven.org/maven2)
   for project org.myportal:client-product
          at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:6
  03)
          at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1366)
          ... 17 more
  Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any repository
  
    org.myportal:client-product:pom:0.0
  
  from the specified remote repositories:
    my-repository (http://my-server:8080/archiva/repository/my-repository/),
    localRepository2 (C:/mavenLocalRepository/logging-framework/),
    localRepository (C:/mavenLocalRepository/my-main/),
    central (http://repo1.maven.org/maven2)
  
          at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:212)
          at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:74)
          at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:5
  56)
          ... 18 more
  Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to download the artifact from any repository
          at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:331)
          at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:200)
          ... 20 more
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: &lt; 1 second
  [INFO] Finished at: Tue Oct 28 11:15:40 CET 2014
  [INFO] Final Memory: 4M/61M
  [INFO] ------------------------------------------------------------------------
  
  C:\development\my-main\customer-webpart&gt;
  </code></pre>
  
  <p>Also, this Eclipse-warning is given on my parent-tag of pom.xml for the project:</p>
  
  <pre><code>Project build error: Non-resolvable parent POM: Failure to transfer org.myportal:client-product:pom:0.0 from http://my-server:8080/archiva/repository/my-repository/ was cached in the local repository, resolution will not be reattempted until the update 
   interval of my-repository has elapsed or updates are forced. Original error: Could not transfer artifact org.myportal:client-product:pom:0.0 from/to my-repository (http://my-server:8080/archiva/repository/my-repository/): Failed to transfer http://my-server:8080/archiva/repository/my-repository/org/myportal/client-product/0.0/client-product-0.0.pom. Error code 307, Temporarily Moved for Domain Name Expansion and 'parent.relativePath' points at wrong local POM
  </code></pre>
  
  <p>...and I have tried three different approaches to the parent.relativePath. 1. None at all (no tag present), 2. Empty tag (suggested at another post here) 3. tag with full path of the .pom file.</p>
  
  <p><strong>POM.XML:</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
  &lt;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"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;parent&gt;
          &lt;groupId&gt;org.myportal&lt;/groupId&gt;
          &lt;artifactId&gt;client-product&lt;/artifactId&gt;
          &lt;version&gt;0.0&lt;/version&gt;
          &lt;relativePath&gt;C:\mavenLocalRepository\my-main\org\myportal\client-product\0.0\client-product-0.0.pom&lt;/relativePath&gt;
      &lt;/parent&gt;
      &lt;artifactId&gt;my-webpart&lt;/artifactId&gt;
      &lt;version&gt;${org.myportal.version}&lt;/version&gt;
      &lt;name&gt;my-webpart&lt;/name&gt;
      &lt;packaging&gt;zip&lt;/packaging&gt;
      &lt;description&gt;
          customer webpart
      &lt;/description&gt;
      &lt;properties&gt;
          &lt;maven.test.skip&gt;true&lt;/maven.test.skip&gt;
          &lt;org.logging.framework.version&gt;0.0.1-SNAPSHOT&lt;/org.logging.framework.version&gt;
      &lt;/properties&gt;
  
      &lt;build&gt;
          &lt;sourceDirectory&gt;src/java&lt;/sourceDirectory&gt;
          &lt;resources&gt;
              &lt;resource&gt;
                  &lt;directory&gt;src/java&lt;/directory&gt;
              &lt;/resource&gt;
          &lt;/resources&gt;
          &lt;testSourceDirectory&gt;src/test&lt;/testSourceDirectory&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;unzip-plugin&lt;/artifactId&gt;
                  &lt;version&gt;${org.unzip.plugin.version}&lt;/version&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;id&gt;unpack&lt;/id&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;unzip&lt;/goal&gt;
                          &lt;/goals&gt;
                          &lt;phase&gt;generate-sources&lt;/phase&gt;
                          &lt;configuration&gt;
                              &lt;resources&gt;
                                  &lt;resource&gt;
                                      &lt;groupId&gt;org.workflow&lt;/groupId&gt;
                                      &lt;artifactId&gt;workflow-framework&lt;/artifactId&gt;
                                      &lt;version&gt;${org.myportal.version}&lt;/version&gt;
                                      &lt;type&gt;jar&lt;/type&gt;
                                      &lt;includes&gt;
                                          &lt;include&gt;*.pdpart&lt;/include&gt;
                                      &lt;/includes&gt;
                                      &lt;target&gt;src/java/generated/common-pdparts&lt;/target&gt;
                                  &lt;/resource&gt;
                                  &lt;resource&gt;
                                      &lt;groupId&gt;org.myportal&lt;/groupId&gt;
                                      &lt;artifactId&gt;myportal-portletframework&lt;/artifactId&gt;
                                      &lt;version&gt;${org.myportal.version}&lt;/version&gt;
                                      &lt;type&gt;jar&lt;/type&gt;
                                      &lt;includes&gt;
                                          &lt;include&gt;*.pdpart&lt;/include&gt;
                                      &lt;/includes&gt;
                                      &lt;target&gt;src/java/generated/common-pdparts&lt;/target&gt;
                                  &lt;/resource&gt;
                              &lt;/resources&gt;
                          &lt;/configuration&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
  
              &lt;plugin&gt;
                  &lt;groupId&gt;org.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;descriptorloader-plugin&lt;/artifactId&gt;
                  &lt;version&gt;${org.descriptorloader.plugin.version2}&lt;/version&gt;
                  &lt;executions&gt; 
                      &lt;execution&gt;
                          &lt;id&gt;vdoclet-java-clean&lt;/id&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;clean&lt;/goal&gt;
                          &lt;/goals&gt;
                          &lt;configuration&gt;
                              &lt;source&gt;src/java&lt;/source&gt;
                              &lt;target&gt;src/java&lt;/target&gt;
                          &lt;/configuration&gt;
                      &lt;/execution&gt;
                      &lt;execution&gt;
                          &lt;id&gt;vdoclet-java&lt;/id&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;vdoclet&lt;/goal&gt;
                          &lt;/goals&gt;
                          &lt;configuration&gt;
                              &lt;source&gt;src/java&lt;/source&gt;
                              &lt;target&gt;src/java&lt;/target&gt;
                              &lt;template&gt;portletdescriptor/Control.vm&lt;/template&gt;
                              &lt;report&gt;target/java-conversion.txt&lt;/report&gt;
                          &lt;/configuration&gt;
                      &lt;/execution&gt;
                      &lt;execution&gt;
                          &lt;id&gt;vdoclet-jsp-clean&lt;/id&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;clean&lt;/goal&gt;
                          &lt;/goals&gt;
                          &lt;configuration&gt;
                              &lt;source&gt;src/java&lt;/source&gt;
                              &lt;target&gt;src/webapp&lt;/target&gt;
                          &lt;/configuration&gt;
                      &lt;/execution&gt;
                      &lt;execution&gt;
                          &lt;id&gt;vdoclet-jsp&lt;/id&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;vdoclet&lt;/goal&gt;
                          &lt;/goals&gt;
                          &lt;configuration&gt;
                              &lt;source&gt;src/java&lt;/source&gt;
                              &lt;target&gt;src/webapp&lt;/target&gt;
                              &lt;template&gt;portletdescriptor/JspControl.vm&lt;/template&gt;
                              &lt;report&gt;target/jsp-conversion.txt&lt;/report&gt;
                          &lt;/configuration&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
                  &lt;dependencies&gt;
                      &lt;dependency&gt;
                          &lt;groupId&gt;org.main&lt;/groupId&gt;
                          &lt;artifactId&gt;main-build-dependencies&lt;/artifactId&gt;
                          &lt;version&gt;${org.main.version}&lt;/version&gt;
                          &lt;type&gt;pom&lt;/type&gt;
                      &lt;/dependency&gt;
                  &lt;/dependencies&gt;
              &lt;/plugin&gt;
  
              &lt;plugin&gt;
                  &lt;groupId&gt;org.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;zip-plugin&lt;/artifactId&gt;
                  &lt;version&gt;${org.zip.plugin.version}&lt;/version&gt;
                  &lt;extensions&gt;true&lt;/extensions&gt;
                  &lt;configuration&gt;
                      &lt;fileSets&gt;
                          &lt;fileSet&gt;
                              &lt;directory&gt;src/webapp&lt;/directory&gt;
                          &lt;/fileSet&gt;
                          &lt;fileSet&gt;
                              &lt;directory&gt;target/classes&lt;/directory&gt;
                              &lt;outputDirectory&gt;WEB-INF/classes/&lt;/outputDirectory&gt;
                          &lt;/fileSet&gt;
                      &lt;/fileSets&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;!-- Clean generated diretory --&gt;
                  &lt;artifactId&gt;maven-clean-plugin&lt;/artifactId&gt;
                  &lt;configuration&gt;
                      &lt;filesets&gt;
                          &lt;fileset&gt;
                              &lt;directory&gt;src/java&lt;/directory&gt;
                              &lt;includes&gt;
                                  &lt;include&gt;**/generated/**&lt;/include&gt;
                              &lt;/includes&gt;
                          &lt;/fileset&gt;
                      &lt;/filesets&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
  
          &lt;/plugins&gt;
  
      &lt;/build&gt;
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.myportal&lt;/groupId&gt;
              &lt;artifactId&gt;my-client&lt;/artifactId&gt;
              &lt;version&gt;${org.myportal.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.myportal&lt;/groupId&gt;
              &lt;artifactId&gt;my-portletdomain&lt;/artifactId&gt;
              &lt;version&gt;${org.myportal.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.myportal&lt;/groupId&gt;
              &lt;artifactId&gt;effect-client&lt;/artifactId&gt;
              &lt;version&gt;${org.myportal.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.myportal&lt;/groupId&gt;
              &lt;artifactId&gt;mycase-client&lt;/artifactId&gt;
              &lt;version&gt;${org.myportal.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.myportal&lt;/groupId&gt;
              &lt;artifactId&gt;mycase-portletdomain&lt;/artifactId&gt;
              &lt;version&gt;${org.myportal.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;!-- myportal --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.myportal&lt;/groupId&gt;
              &lt;artifactId&gt;mysecondportal-common&lt;/artifactId&gt;
              &lt;version&gt;${org.myportal.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.myportal&lt;/groupId&gt;
              &lt;artifactId&gt;mysecondportal-webpartcommon&lt;/artifactId&gt;
              &lt;version&gt;${org.myportal.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.myportal&lt;/groupId&gt;
              &lt;artifactId&gt;host-types&lt;/artifactId&gt;
              &lt;version&gt;${org.myportal.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.workflow&lt;/groupId&gt;
              &lt;artifactId&gt;workflow-framework&lt;/artifactId&gt;
              &lt;version&gt;${org.myportal.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;commons-fileupload&lt;/groupId&gt;
              &lt;artifactId&gt;commons-fileupload&lt;/artifactId&gt;
              &lt;version&gt;${library.commons.fileupload.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;!-- external --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;faceless&lt;/groupId&gt;
              &lt;artifactId&gt;bfopdf&lt;/artifactId&gt;
              &lt;version&gt;0.0&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;!-- main --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.main&lt;/groupId&gt;
                  &lt;artifactId&gt;main-assemble-ear&lt;/artifactId&gt;
          &lt;type&gt;pom&lt;/type&gt;
              &lt;version&gt;${org.main.version}&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.myportal&lt;/groupId&gt;
              &lt;artifactId&gt;my-webdelegate&lt;/artifactId&gt;
              &lt;version&gt;${org.myportal.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.myportal&lt;/groupId&gt;
              &lt;artifactId&gt;myportal-portletframework&lt;/artifactId&gt;
              &lt;version&gt;${org.myportal.version}&lt;/version&gt;
          &lt;/dependency&gt;       
          &lt;dependency&gt;
              &lt;groupId&gt;org.myshare&lt;/groupId&gt;
              &lt;artifactId&gt;myshare-common&lt;/artifactId&gt;
              &lt;version&gt;${org.myshare.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.myshare&lt;/groupId&gt;
              &lt;artifactId&gt;myshare-webpartcommon&lt;/artifactId&gt;
              &lt;version&gt;${org.myshare.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.docflow&lt;/groupId&gt;
              &lt;artifactId&gt;docflow-client&lt;/artifactId&gt;
              &lt;version&gt;${org.myportal.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.docflow&lt;/groupId&gt;
              &lt;artifactId&gt;docflow-webdao&lt;/artifactId&gt;
              &lt;version&gt;${org.myportal.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.esb.logging&lt;/groupId&gt;
              &lt;artifactId&gt;logging-framework&lt;/artifactId&gt;
              &lt;version&gt;${org.logging.framework.version}&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
      &lt;repositories&gt;
          &lt;repository&gt;
              &lt;id&gt;localRepository&lt;/id&gt;
              &lt;url&gt;C:/mavenLocalRepository/my-main/&lt;/url&gt;
          &lt;/repository&gt;
          &lt;repository&gt;
              &lt;id&gt;localRepository2&lt;/id&gt;
              &lt;url&gt;C:/mavenLocalRepository/logging-framework/&lt;/url&gt;
          &lt;/repository&gt;
      &lt;/repositories&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p><strong>parent (client-product-0.0.pom):</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt; 
  &lt;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"&gt; 
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;parent&gt;
      &lt;groupId&gt;org.product&lt;/groupId&gt;
      &lt;artifactId&gt;my-version-pom&lt;/artifactId&gt;
      &lt;version&gt;0.0&lt;/version&gt;
      &lt;relativePath&gt;..&lt;/relativePath&gt;
    &lt;/parent&gt;
    &lt;groupId&gt;org.product&lt;/groupId&gt;
    &lt;artifactId&gt;my-product&lt;/artifactId&gt;
    &lt;packaging&gt;pom&lt;/packaging&gt;
    &lt;version&gt;0.0&lt;/version&gt;
    &lt;name&gt;my-product  ${project.version} (old root-pom, now child of ${parent.artifactId})&lt;/name&gt;
  
    &lt;modules&gt;
      &lt;module&gt;my-foundation-pom&lt;/module&gt;
      &lt;module&gt;pb-product-pom&lt;/module&gt;    
    &lt;/modules&gt;
    &lt;properties&gt; 
      &lt;!-- NISX: These properties should never be changed. Only change the value of org.component.version. --&gt;
      &lt;org.assemble.my.version&gt;${org.component.version.with.build.number}&lt;/org.assemble.my.version&gt;
      &lt;org.myportal.version&gt;${org.component.version}&lt;/org.myportal.version&gt;
      &lt;org.myshare.version&gt;${org.component.version}&lt;/org.myshare.version&gt;
     ... + several others. shortened for stackoverflow
    &lt;/properties&gt;
  
  
    &lt;build&gt;
    &lt;plugins&gt;
        &lt;plugin&gt;
        &lt;!-- NISX: This is a trick to avoid the ghost pom to be ever deployed to a repository. --&gt;
          &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;maven-deploy-plugin&lt;/artifactId&gt;
          &lt;version&gt;2.4&lt;/version&gt;
          &lt;inherited&gt;false&lt;/inherited&gt;
          &lt;configuration&gt;
            &lt;skip&gt;true&lt;/skip&gt;
          &lt;/configuration&gt;
        &lt;/plugin&gt;
                  &lt;plugin&gt;
                  &lt;groupId&gt;org.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;qdev-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;${org.qdev.plugin.version}&lt;/version&gt;
                  &lt;inherited&gt;true&lt;/inherited&gt;
                  &lt;configuration&gt;
                      &lt;beaDeployDirectory&gt;${qdev.deploy.dir}&lt;/beaDeployDirectory&gt;
                      &lt;earName&gt;${qdev.ear.name}&lt;/earName&gt;
                      &lt;warName&gt;${qdev.war.name}&lt;/warName&gt; 
                      &lt;isSingleWar&gt;true&lt;/isSingleWar&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                      &lt;groupId&gt;org.maven.plugins&lt;/groupId&gt;
                      &lt;artifactId&gt;maven-udv-plugin&lt;/artifactId&gt;
                      &lt;version&gt;1.1.2&lt;/version&gt;
                      &lt;configuration&gt;
                          &lt;settingsApplicationName&gt;my&lt;/settingsApplicationName&gt;
                          &lt;settingsApplicationVersion&gt;${my.branch.name}&lt;/settingsApplicationVersion&gt;
                          &lt;settingsApplicationState&gt;${profile.state}&lt;/settingsApplicationState&gt;
                      &lt;/configuration&gt;
              &lt;/plugin&gt;
      &lt;/plugins&gt;
    &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>