title: Maven Multi-Module Project, Not Resolving Dependencies
body: <p>I have a multi-module maven project that I can't get to compile. I have a Nexus repository sitting on my local network, and it is working (IntelliJ Idea is able to resolve my dependencies which reside only in that repository), and I am building through Jetbrains TeamCity. I am fairly certain that TeamCity is working since several other build configurations I have set up still work (using the same settings.xml). I am a bit of a loss for what could be causing the issue. Here are my pom files:</p>
  
  <p>Parent pom:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&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/xsd/maven-4.0.0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
      &lt;groupId&gt;com.company.product.plugins&lt;/groupId&gt;
      &lt;artifactId&gt;plugin-parent&lt;/artifactId&gt;
      &lt;version&gt;1.2-SNAPSHOT&lt;/version&gt;
      &lt;packaging&gt;pom&lt;/packaging&gt;
  
      &lt;modules&gt;
          &lt;module&gt;product-wireless-plugin&lt;/module&gt;
          &lt;module&gt;product-paging-plugin&lt;/module&gt;
      &lt;/modules&gt;
  
      &lt;distributionManagement&gt;
          &lt;repository&gt;
              &lt;id&gt;releases&lt;/id&gt;
              &lt;url&gt;http://192.168.2.192:8081/nexus/content/repositories/releases/&lt;/url&gt;
          &lt;/repository&gt;
          &lt;snapshotRepository&gt;
              &lt;id&gt;snapshots&lt;/id&gt;
              &lt;url&gt;http://192.168.2.192:8081/nexus/content/repositories/snapshots&lt;/url&gt;
          &lt;/snapshotRepository&gt;
      &lt;/distributionManagement&gt;
  
      &lt;pluginRepositories&gt;
          &lt;pluginRepository&gt;
              &lt;id&gt;autoincrement-versions-maven-plugin&lt;/id&gt;
              &lt;name&gt;autoincrement-versions-maven-plugin&lt;/name&gt;
              &lt;url&gt;http://autoincrement-versions-maven-plugin.googlecode.com/svn/repo&lt;/url&gt;
              &lt;snapshots&gt;
                  &lt;enabled&gt;true&lt;/enabled&gt;
              &lt;/snapshots&gt;
          &lt;/pluginRepository&gt;
      &lt;/pluginRepositories&gt;
  
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
                  &lt;artifactId&gt;autoincrement-versions-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.0-SNAPSHOT&lt;/version&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;id&gt;update-pom-versions&lt;/id&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;increment&lt;/goal&gt;
                              &lt;goal&gt;commit&lt;/goal&gt;
                          &lt;/goals&gt;
                          &lt;phase&gt;compile&lt;/phase&gt;
                          &lt;configuration&gt;
                              &lt;autoIncrementVersion&gt;true&lt;/autoIncrementVersion&gt;
                          &lt;/configuration&gt;
                      &lt;/execution&gt;
                  &lt;/executions&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;configuration&gt;
                      &lt;testFailureIgnore&gt;true&lt;/testFailureIgnore&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p>product-wireless pom:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&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/xsd/maven-4.0.0.xsd"&gt;
      &lt;parent&gt;
          &lt;artifactId&gt;plugin-parent&lt;/artifactId&gt;
          &lt;groupId&gt;com.company.product.plugins&lt;/groupId&gt;
          &lt;version&gt;1.2-SNAPSHOT&lt;/version&gt;
      &lt;/parent&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
      &lt;groupId&gt;com.company.product.plugins&lt;/groupId&gt;
      &lt;artifactId&gt;product-wireless-plugin&lt;/artifactId&gt;
      &lt;version&gt;0.1.2&lt;/version&gt;
  
      &lt;distributionManagement&gt;
          &lt;repository&gt;
              &lt;id&gt;releases&lt;/id&gt;
              &lt;url&gt;http://192.168.2.192:8081/nexus/content/repositories/releases/&lt;/url&gt;
          &lt;/repository&gt;
          &lt;snapshotRepository&gt;
              &lt;id&gt;snapshots&lt;/id&gt;
              &lt;url&gt;http://192.168.2.192:8081/nexus/content/repositories/snapshots&lt;/url&gt;
          &lt;/snapshotRepository&gt;
      &lt;/distributionManagement&gt;
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.company.product&lt;/groupId&gt;
              &lt;artifactId&gt;product-common&lt;/artifactId&gt;
              &lt;version&gt;0.9.1&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p>product-paging pom:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&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/xsd/maven-4.0.0.xsd"&gt;
      &lt;parent&gt;
          &lt;artifactId&gt;plugin-parent&lt;/artifactId&gt;
          &lt;groupId&gt;com.company.product.plugins&lt;/groupId&gt;
          &lt;version&gt;1.2-SNAPSHOT&lt;/version&gt;
      &lt;/parent&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
      &lt;groupId&gt;com.company.product.plugins&lt;/groupId&gt;
      &lt;artifactId&gt;product-paging-plugin&lt;/artifactId&gt;
      &lt;version&gt;0.1.2&lt;/version&gt;
  
      &lt;distributionManagement&gt;
          &lt;repository&gt;
              &lt;id&gt;releases&lt;/id&gt;
              &lt;url&gt;http://192.168.2.192:8081/nexus/content/repositories/releases/&lt;/url&gt;
          &lt;/repository&gt;
          &lt;snapshotRepository&gt;
              &lt;id&gt;snapshots&lt;/id&gt;
              &lt;url&gt;http://192.168.2.192:8081/nexus/content/repositories/snapshots&lt;/url&gt;
          &lt;/snapshotRepository&gt;
      &lt;/distributionManagement&gt;
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.company.product&lt;/groupId&gt;
              &lt;artifactId&gt;product-common&lt;/artifactId&gt;
              &lt;version&gt;0.9.1&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p>And the error I am getting is:</p>
  
  <blockquote>
    <p>com.company.product.plugins:product-wireless-plugin
    [13:54:16][com.company.product.plugins:product-wireless-plugin] Importing data from 'C:/TeamCity/buildAgent/work/40ac813105cf8bd7/product-wireless-plugin/target/surefire-reports/TEST-*.xml' with 'surefire' processor
    [13:54:16][com.company.product.plugins:product-wireless-plugin] Surefire report watcher
    [13:54:16][com.company.product.plugins:product-wireless-plugin] Downloading: repolocation/nexus/content/groups/public/com/company/product/product-parent/0.9.0/product-parent-0.9.0.pom
    [13:54:16][com.company.product.plugins:product-wireless-plugin] Failed to execute goal on project product-wireless-plugin: Could not resolve dependencies for project com.company.product.plugins:product-wireless-plugin:jar:0.1.2: Failed to collect dependencies for [com.company.product:product-common:jar:0.9.1 (compile)]</p>
  </blockquote>
  
  <p>I am at quite a loss while trying to debug this... does anyone have any suggestions?</p>