title: Maven 3.5.0 is throwing ArrayIndexOutOfBoundsException, but builds with Maven 3.3.9
body: <p>My team has a multi-module Maven project that builds fine using Maven 3.3.9, but fails when using Maven 3.5.0. In both cases (i.e. maven versions), the build is using java 8_131. The failures occur on: MacOS Sierra 10.12.6 and CENTOS 7. A separate non-multi-module project builds fine under both versions of Maven.</p>
  
  <p>I've updated the parent POM with the <code>flatten-maven-plugin</code> per the Maven CI Friendly Versions doc. I've checked the other issues on here and elsewhere, but haven't found an answer. There is another unanswered <a href="https://stackoverflow.com/questions/44559325/maven-is-throwing-arrayoutofboundsexception">question</a>: that may have its roots in the same issue.</p>
  
  <p>Any help determining the problem would be much appreciated. </p>
  
  <ul>
  <li><a href="https://pastebin.com/vHTE7HGA" rel="nofollow noreferrer">DEBUG level output from the Maven 3.5.0 build that is FAILING</a></li>
  <li><a href="https://pastebin.com/37wc4Ybq" rel="nofollow noreferrer">Output from the Maven 3.3.9 build that runs Successfully</a></li>
  </ul>
  
  <p>pom.xml:</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&lt;/groupId&gt;
      &lt;artifactId&gt;company-api-parent-pom&lt;/artifactId&gt;
      &lt;version&gt;${revision}${changelist}&lt;/version&gt;
      &lt;packaging&gt;pom&lt;/packaging&gt;
  
      &lt;properties&gt;
          &lt;revision&gt;0.9.7&lt;/revision&gt;
          &lt;changelist&gt;-SNAPSHOT&lt;/changelist&gt;
          &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
          &lt;maven.compiler.source&gt;1.8&lt;/maven.compiler.source&gt;
          &lt;maven.compiler.target&gt;1.8&lt;/maven.compiler.target&gt;
  
          &lt;jetty.version&gt;9.3.12.v20160915&lt;/jetty.version&gt;
          &lt;jersey.version&gt;2.23.2&lt;/jersey.version&gt;
          &lt;spring.version&gt;4.3.3.RELEASE&lt;/spring.version&gt;
          &lt;slf4j.version&gt;1.7.21&lt;/slf4j.version&gt;
          &lt;logback-version&gt;1.1.7&lt;/logback-version&gt;
          &lt;metrics-version&gt;3.1.2&lt;/metrics-version&gt;
          &lt;apache-commons-lang3-version&gt;3.5&lt;/apache-commons-lang3-version&gt;
          &lt;junit.version&gt;4.12&lt;/junit.version&gt;
          &lt;mockito.version&gt;2.0.42-beta&lt;/mockito.version&gt;
          &lt;powermock.version&gt;1.6.5&lt;/powermock.version&gt;
          &lt;aspectj.version&gt;1.8.9&lt;/aspectj.version&gt;
          &lt;enunciate-plugin-version&gt;2.8.0&lt;/enunciate-plugin-version&gt;
          &lt;postgres.jdbc.driver.version&gt;9.4.1211&lt;/postgres.jdbc.driver.version&gt;
          &lt;mybatis.version&gt;3.4.1&lt;/mybatis.version&gt;
          &lt;mybatis.spring.version&gt;1.3.0&lt;/mybatis.spring.version&gt;
          &lt;c3p0.version&gt;0.9.5.2&lt;/c3p0.version&gt;
          &lt;commons.beanutils.version&gt;1.9.3&lt;/commons.beanutils.version&gt;
          &lt;aws.java.sdk.bom.version&gt;1.11.123&lt;/aws.java.sdk.bom.version&gt;
          &lt;hibernate.validator.version&gt;5.3.1.Final&lt;/hibernate.validator.version&gt;
          &lt;commons-validator.version&gt;1.5.1&lt;/commons-validator.version&gt;
          &lt;joda.time.version&gt;2.9.5&lt;/joda.time.version&gt;
          &lt;liquibase.version&gt;3.5.3&lt;/liquibase.version&gt;
          &lt;jolokia.version&gt;1.3.5&lt;/jolokia.version&gt;
          &lt;javax.el.version&gt;2.2.4&lt;/javax.el.version&gt;
          &lt;jackson.annotations.version&gt;2.5.4&lt;/jackson.annotations.version&gt;
          &lt;janino.version&gt;3.0.6&lt;/janino.version&gt;
          &lt;open.csv.version&gt;3.9&lt;/open.csv.version&gt;
          &lt;jedis.version&gt;2.9.0&lt;/jedis.version&gt;
      &lt;/properties&gt;
  
      &lt;modules&gt;
          &lt;module&gt;company-api-app&lt;/module&gt;
          &lt;module&gt;company-api-java-client&lt;/module&gt;
          &lt;module&gt;company-api-dtos&lt;/module&gt;
      &lt;/modules&gt;
  
      &lt;build&gt;
          &lt;pluginManagement&gt;
              &lt;plugins&gt;
  
                  &lt;plugin&gt;
                      &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
                      &lt;artifactId&gt;flatten-maven-plugin&lt;/artifactId&gt;
                      &lt;version&gt;1.0.0&lt;/version&gt;
                      &lt;configuration&gt;
                          &lt;updatePomFile&gt;true&lt;/updatePomFile&gt;
                      &lt;/configuration&gt;
                      &lt;executions&gt;
                          &lt;execution&gt;
                              &lt;id&gt;flatten&lt;/id&gt;
                              &lt;phase&gt;process-resources&lt;/phase&gt;
                              &lt;goals&gt;
                                  &lt;goal&gt;flatten&lt;/goal&gt;
                              &lt;/goals&gt;
                          &lt;/execution&gt;
                          &lt;execution&gt;
                              &lt;id&gt;flatten.clean&lt;/id&gt;
                              &lt;phase&gt;clean&lt;/phase&gt;
                              &lt;goals&gt;
                                  &lt;goal&gt;clean&lt;/goal&gt;
                              &lt;/goals&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-compiler-plugin&lt;/artifactId&gt;
                      &lt;version&gt;3.6.1&lt;/version&gt;
                      &lt;configuration&gt;
                          &lt;source&gt;${maven.compiler.source}&lt;/source&gt;
                          &lt;target&gt;${maven.compiler.target}&lt;/target&gt;
                          &lt;encoding&gt;UTF-8&lt;/encoding&gt;
                          &lt;compilerArgument&gt;-Xlint:all&lt;/compilerArgument&gt;
                      &lt;/configuration&gt;
                  &lt;/plugin&gt;
  
                  &lt;plugin&gt;
                      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                      &lt;artifactId&gt;maven-source-plugin&lt;/artifactId&gt;
                      &lt;version&gt;3.0.1&lt;/version&gt;
                      &lt;executions&gt;
                          &lt;execution&gt;
                              &lt;id&gt;bundle-sources&lt;/id&gt;
                              &lt;phase&gt;package&lt;/phase&gt;
                              &lt;goals&gt;
                                  &lt;!-- produce source artifact for main project sources --&gt;
                                  &lt;goal&gt;jar-no-fork&lt;/goal&gt;
                              &lt;/goals&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-jar-plugin&lt;/artifactId&gt;
                      &lt;version&gt;3.0.2&lt;/version&gt;
                      &lt;configuration&gt;
                          &lt;archive&gt;
                              &lt;manifest&gt;
                                  &lt;addDefaultImplementationEntries&gt;true&lt;/addDefaultImplementationEntries&gt;
                              &lt;/manifest&gt;
                          &lt;/archive&gt;
                      &lt;/configuration&gt;
                  &lt;/plugin&gt;
  
                  &lt;plugin&gt;
                      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                      &lt;artifactId&gt;maven-shade-plugin&lt;/artifactId&gt;
                      &lt;version&gt;3.0.0&lt;/version&gt;
                      &lt;configuration&gt;
                      &lt;createDependencyReducedPom&gt;true&lt;/createDependencyReducedPom&gt;
                          &lt;filters&gt;
                              &lt;filter&gt;
                                  &lt;artifact&gt;*:*&lt;/artifact&gt;
                                  &lt;excludes&gt;
                                      &lt;exclude&gt;META-INF/*.SF&lt;/exclude&gt;
                                      &lt;exclude&gt;META-INF/*.DSA&lt;/exclude&gt;
                                      &lt;exclude&gt;META-INF/*.RSA&lt;/exclude&gt;
                                  &lt;/excludes&gt;
                              &lt;/filter&gt;
                          &lt;/filters&gt;
                      &lt;/configuration&gt;
                      &lt;executions&gt;
                          &lt;execution&gt;
                              &lt;phase&gt;package&lt;/phase&gt;
                              &lt;goals&gt;
                                  &lt;goal&gt;shade&lt;/goal&gt;
                              &lt;/goals&gt;
                              &lt;configuration&gt;
                                  &lt;transformers&gt;
                                      &lt;transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" /&gt;
                                      &lt;transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"&gt;
                                          &lt;manifestEntries&gt;
                                              &lt;Main-Class&gt;com.companycyber.clientapi.ClientApiApplication&lt;/Main-Class&gt;
                                          &lt;/manifestEntries&gt;
                                      &lt;/transformer&gt;
                                      &lt;transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"&gt;
                                          &lt;resource&gt;META-INF/spring.handlers&lt;/resource&gt;
                                      &lt;/transformer&gt;
                                      &lt;transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"&gt;
                                          &lt;resource&gt;META-INF/spring.schemas&lt;/resource&gt;
                                      &lt;/transformer&gt;
                                  &lt;/transformers&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-javadoc-plugin&lt;/artifactId&gt;
                      &lt;version&gt;2.10.4&lt;/version&gt;
                      &lt;executions&gt;
                          &lt;execution&gt;
                              &lt;id&gt;attach-javadocs&lt;/id&gt;
                              &lt;goals&gt;
                                  &lt;goal&gt;jar&lt;/goal&gt;
                              &lt;/goals&gt;
                              &lt;configuration&gt;
                                  &lt;additionalparam&gt;-Xdoclint:none&lt;/additionalparam&gt;
                              &lt;/configuration&gt;
                          &lt;/execution&gt;
                      &lt;/executions&gt;
                  &lt;/plugin&gt;
  
                  &lt;plugin&gt;
                      &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
                      &lt;artifactId&gt;aspectj-maven-plugin&lt;/artifactId&gt;
                      &lt;version&gt;1.10&lt;/version&gt;
                      &lt;executions&gt;
                          &lt;execution&gt;
                              &lt;id&gt;compile&lt;/id&gt;
                              &lt;configuration&gt;
                                  &lt;source&gt;${maven.compiler.source}&lt;/source&gt;
                                  &lt;target&gt;${maven.compiler.target}&lt;/target&gt;
                                  &lt;complianceLevel&gt;${maven.compiler.target}&lt;/complianceLevel&gt;
                                  &lt;verbose&gt;false&lt;/verbose&gt;
                                  &lt;outxml&gt;true&lt;/outxml&gt;
                                  &lt;aspectLibraries&gt;
                                      &lt;aspectLibrary&gt;
                                      &lt;groupId&gt;org.springframework&lt;/groupId&gt;
                                          &lt;artifactId&gt;spring-aspects&lt;/artifactId&gt;
                                      &lt;/aspectLibrary&gt;
                                  &lt;/aspectLibraries&gt;
                              &lt;/configuration&gt;
                              &lt;goals&gt;
                                  &lt;goal&gt;compile&lt;/goal&gt;
                              &lt;/goals&gt;
                          &lt;/execution&gt;
                          &lt;execution&gt;
                              &lt;id&gt;test-compile&lt;/id&gt;
                              &lt;configuration&gt;
                                  &lt;source&gt;${maven.compiler.source}&lt;/source&gt;
                                  &lt;target&gt;${maven.compiler.target}&lt;/target&gt;
                                  &lt;complianceLevel&gt;${maven.compiler.target}&lt;/complianceLevel&gt;
                                  &lt;verbose&gt;false&lt;/verbose&gt;
                                  &lt;aspectLibraries&gt;
                                      &lt;aspectLibrary&gt;
                                          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
                                          &lt;artifactId&gt;spring-aspects&lt;/artifactId&gt;
                                      &lt;/aspectLibrary&gt;
                                  &lt;/aspectLibraries&gt;
                              &lt;/configuration&gt;
                              &lt;goals&gt;
                                  &lt;goal&gt;test-compile&lt;/goal&gt;
                              &lt;/goals&gt;
                          &lt;/execution&gt;
                      &lt;/executions&gt;
                      &lt;dependencies&gt;
                          &lt;dependency&gt;
                              &lt;groupId&gt;org.aspectj&lt;/groupId&gt;
                              &lt;artifactId&gt;aspectjtools&lt;/artifactId&gt;
                              &lt;version&gt;${aspectj.version}&lt;/version&gt;
                          &lt;/dependency&gt;
                      &lt;/dependencies&gt;
                  &lt;/plugin&gt;
  
                  &lt;!-- FindBugs Static Analysis --&gt;
                  &lt;plugin&gt;
                      &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
                      &lt;artifactId&gt;findbugs-maven-plugin&lt;/artifactId&gt;
                      &lt;version&gt;3.0.4&lt;/version&gt;
                      &lt;configuration&gt;
                          &lt;effort&gt;Max&lt;/effort&gt;
                          &lt;threshold&gt;Low&lt;/threshold&gt;
                          &lt;failOnError&gt;true&lt;/failOnError&gt;
                          &lt;includeFilterFile&gt;${session.executionRootDirectory}/findbugs-security-include.xml&lt;/includeFilterFile&gt;
                          &lt;excludeFilterFile&gt;${session.executionRootDirectory}/findbugs-security-exclude.xml&lt;/excludeFilterFile&gt;
                          &lt;plugins&gt;
                              &lt;plugin&gt;
                                  &lt;groupId&gt;com.h3xstream.findsecbugs&lt;/groupId&gt;
                                  &lt;artifactId&gt;findsecbugs-plugin&lt;/artifactId&gt;
                                  &lt;version&gt;1.6.0&lt;/version&gt;
                              &lt;/plugin&gt;
                          &lt;/plugins&gt;
                      &lt;/configuration&gt;
                  &lt;/plugin&gt;
  
                  &lt;plugin&gt;
                      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                      &lt;artifactId&gt;maven-antrun-plugin&lt;/artifactId&gt;
                      &lt;version&gt;1.8&lt;/version&gt;
                  &lt;/plugin&gt;
  
                  &lt;plugin&gt;
                      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                      &lt;artifactId&gt;maven-install-plugin&lt;/artifactId&gt;
                      &lt;version&gt;2.5.2&lt;/version&gt;
                  &lt;/plugin&gt;
  
              &lt;/plugins&gt;
          &lt;/pluginManagement&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
                  &lt;artifactId&gt;flatten-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;1.0.0&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;updatePomFile&gt;true&lt;/updatePomFile&gt;
                  &lt;/configuration&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;id&gt;flatten&lt;/id&gt;
                          &lt;phase&gt;process-resources&lt;/phase&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;flatten&lt;/goal&gt;
                          &lt;/goals&gt;
                      &lt;/execution&gt;
                      &lt;execution&gt;
                          &lt;id&gt;flatten.clean&lt;/id&gt;
                          &lt;phase&gt;clean&lt;/phase&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;clean&lt;/goal&gt;
                          &lt;/goals&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  
      &lt;dependencyManagement&gt;
          &lt;dependencies&gt;
  
              &lt;!-- Jersey --&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.glassfish.jersey.core&lt;/groupId&gt;
                  &lt;artifactId&gt;jersey-client&lt;/artifactId&gt;
                  &lt;version&gt;${jersey.version}&lt;/version&gt;
                  &lt;exclusions&gt;
                      &lt;exclusion&gt;
                          &lt;groupId&gt;org.glassfish.hk2.external&lt;/groupId&gt;
                          &lt;artifactId&gt;aopalliance-repackaged&lt;/artifactId&gt;
                      &lt;/exclusion&gt;
                  &lt;/exclusions&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.glassfish.jersey.media&lt;/groupId&gt;
                  &lt;artifactId&gt;jersey-media-json-jackson&lt;/artifactId&gt;
                  &lt;version&gt;${jersey.version}&lt;/version&gt;
              &lt;/dependency&gt;
  
              &lt;!-- Validation --&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
                  &lt;artifactId&gt;hibernate-validator&lt;/artifactId&gt;
                  &lt;version&gt;${hibernate.validator.version}&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;javax.el&lt;/groupId&gt;
                  &lt;artifactId&gt;javax.el-api&lt;/artifactId&gt;
                  &lt;version&gt;${javax.el.version}&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.glassfish.web&lt;/groupId&gt;
                  &lt;artifactId&gt;javax.el&lt;/artifactId&gt;
                  &lt;version&gt;${javax.el.version}&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;commons-validator&lt;/groupId&gt;
                  &lt;artifactId&gt;commons-validator&lt;/artifactId&gt;
                  &lt;version&gt;${commons-validator.version}&lt;/version&gt;
              &lt;/dependency&gt;
  
              &lt;!-- Enunciate --&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;com.webcohesion.enunciate&lt;/groupId&gt;
                  &lt;artifactId&gt;enunciate-core-annotations&lt;/artifactId&gt;
                  &lt;version&gt;${enunciate-plugin-version}&lt;/version&gt;
              &lt;/dependency&gt;
  
              &lt;!-- Joda --&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;joda-time&lt;/groupId&gt;
                  &lt;artifactId&gt;joda-time&lt;/artifactId&gt;
                  &lt;version&gt;${joda.time.version}&lt;/version&gt;
              &lt;/dependency&gt;
  
              &lt;!-- Apache Commons --&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.apache.commons&lt;/groupId&gt;
                  &lt;artifactId&gt;commons-lang3&lt;/artifactId&gt;
                  &lt;version&gt;${apache-commons-lang3-version}&lt;/version&gt;
              &lt;/dependency&gt;
  
              &lt;!-- Unit testing --&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;junit&lt;/groupId&gt;
                  &lt;artifactId&gt;junit&lt;/artifactId&gt;
                  &lt;version&gt;${junit.version}&lt;/version&gt;
                  &lt;scope&gt;test&lt;/scope&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.springframework&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-test&lt;/artifactId&gt;
                  &lt;version&gt;${spring.version}&lt;/version&gt;
                  &lt;scope&gt;test&lt;/scope&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.mockito&lt;/groupId&gt;
                  &lt;artifactId&gt;mockito-core&lt;/artifactId&gt;
                  &lt;version&gt;${mockito.version}&lt;/version&gt;
                  &lt;scope&gt;test&lt;/scope&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.powermock&lt;/groupId&gt;
                  &lt;artifactId&gt;powermock-module-junit4&lt;/artifactId&gt;
                  &lt;version&gt;${powermock.version}&lt;/version&gt;
                  &lt;scope&gt;test&lt;/scope&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.powermock&lt;/groupId&gt;
                  &lt;artifactId&gt;powermock-api-mockito2&lt;/artifactId&gt;
                  &lt;version&gt;${powermock.version}&lt;/version&gt;
                  &lt;scope&gt;test&lt;/scope&gt;
              &lt;/dependency&gt;
  
              &lt;dependency&gt;
                  &lt;groupId&gt;com.amazonaws&lt;/groupId&gt;
                  &lt;artifactId&gt;aws-java-sdk-bom&lt;/artifactId&gt;
                  &lt;version&gt;${aws.java.sdk.bom.version}&lt;/version&gt;
                  &lt;type&gt;pom&lt;/type&gt;
                  &lt;scope&gt;import&lt;/scope&gt;
              &lt;/dependency&gt;
          &lt;/dependencies&gt;
      &lt;/dependencyManagement&gt;
  
      &lt;repositories&gt;
          &lt;repository&gt;
              &lt;id&gt;central&lt;/id&gt;
              &lt;url&gt;https://artifactory.company.loc/artifactory/libs-release/&lt;/url&gt;
          &lt;/repository&gt;
          &lt;repository&gt;
              &lt;id&gt;snapshots&lt;/id&gt;
              &lt;url&gt;https://artifactory.company.loc/artifactory/libs-snapshot/&lt;/url&gt;
          &lt;/repository&gt;
          &lt;repository&gt;
              &lt;id&gt;maven-central&lt;/id&gt;
              &lt;url&gt;https://repo.maven.apache.org/maven2/&lt;/url&gt;
          &lt;/repository&gt;
      &lt;/repositories&gt;
      &lt;pluginRepositories&gt;
          &lt;pluginRepository&gt;
              &lt;snapshots&gt;
                  &lt;enabled&gt;false&lt;/enabled&gt;
              &lt;/snapshots&gt;
              &lt;id&gt;central&lt;/id&gt;
              &lt;name&gt;libs-release&lt;/name&gt;
              &lt;url&gt;https://artifactory.company.loc/artifactory/libs-release/&lt;/url&gt;
          &lt;/pluginRepository&gt;
          &lt;pluginRepository&gt;
              &lt;snapshots /&gt;
              &lt;id&gt;snapshots&lt;/id&gt;
              &lt;name&gt;libs-snapshot&lt;/name&gt;
              &lt;url&gt;https://artifactory.company.loc/artifactory/libs-snapshot&lt;/url&gt;
          &lt;/pluginRepository&gt;
      &lt;/pluginRepositories&gt;
  
      &lt;distributionManagement&gt;
          &lt;repository&gt;
              &lt;id&gt;central&lt;/id&gt;
              &lt;name&gt;artifactory.company.loc-releases&lt;/name&gt;
              &lt;url&gt;https://artifactory.company.loc/libs-release&lt;/url&gt;
          &lt;/repository&gt;
          &lt;snapshotRepository&gt;
              &lt;id&gt;snapshots&lt;/id&gt;
              &lt;name&gt;artifactory.company.loc-snapshots&lt;/name&gt;
              &lt;url&gt;https://artifactory.company.loc/libs-snapshot&lt;/url&gt;
          &lt;/snapshotRepository&gt;
      &lt;/distributionManagement&gt;
  
      &lt;scm&gt;
          &lt;connection&gt;scm:git:ssh://git@git-instance/home/git/company.client-api.git&lt;/connection&gt;
          &lt;developerConnection&gt;scm:git:ssh://git@git-instance/home/git/company.client-api.git&lt;/developerConnection&gt;
          &lt;tag&gt;HEAD&lt;/tag&gt;
      &lt;/scm&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p>dtos (child) pom.xml:</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;parent&gt;
          &lt;artifactId&gt;company-api-parent-pom&lt;/artifactId&gt;
          &lt;groupId&gt;com.company&lt;/groupId&gt;
          &lt;version&gt;${revision}${changelist}&lt;/version&gt;
      &lt;/parent&gt;
  
      &lt;artifactId&gt;company-api-dtos&lt;/artifactId&gt;
  
      &lt;dependencies&gt;
          &lt;!-- Jersey --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.glassfish.jersey.core&lt;/groupId&gt;
              &lt;artifactId&gt;jersey-client&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.glassfish.jersey.media&lt;/groupId&gt;
              &lt;artifactId&gt;jersey-media-json-jackson&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
          &lt;!-- Validation --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
              &lt;artifactId&gt;hibernate-validator&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.el&lt;/groupId&gt;
              &lt;artifactId&gt;javax.el-api&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.glassfish.web&lt;/groupId&gt;
              &lt;artifactId&gt;javax.el&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;commons-validator&lt;/groupId&gt;
              &lt;artifactId&gt;commons-validator&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
          &lt;!-- Enunciate --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.webcohesion.enunciate&lt;/groupId&gt;
              &lt;artifactId&gt;enunciate-core-annotations&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
          &lt;!-- Apache Commons --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.commons&lt;/groupId&gt;
              &lt;artifactId&gt;commons-lang3&lt;/artifactId&gt;
              &lt;version&gt;${apache-commons-lang3-version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;joda-time&lt;/groupId&gt;
              &lt;artifactId&gt;joda-time&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;!-- Unit testing --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;junit&lt;/groupId&gt;
              &lt;artifactId&gt;junit&lt;/artifactId&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.mockito&lt;/groupId&gt;
              &lt;artifactId&gt;mockito-core&lt;/artifactId&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.powermock&lt;/groupId&gt;
              &lt;artifactId&gt;powermock-module-junit4&lt;/artifactId&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.powermock&lt;/groupId&gt;
              &lt;artifactId&gt;powermock-api-mockito2&lt;/artifactId&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;cz.jirutka.validator&lt;/groupId&gt;
              &lt;artifactId&gt;validator-collection&lt;/artifactId&gt;
              &lt;version&gt;2.2.0&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-source-plugin&lt;/artifactId&gt;
              &lt;/plugin&gt;
  
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-javadoc-plugin&lt;/artifactId&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>