<settings>
 <servers>
  <server>
   <id>sonatype-nexus-snapshots</id>
   <username>${env.SONATYPE_USERNAME}</username>
   <password>${env.SONATYPE_PASSWORD}</password>
  </server>
 </servers>
</settings>

<settings>
 <servers>
  <server>
   <id>sonatype-nexus-staging</id>
   <username>${env.SONATYPE_USERNAME}</username>
   <password>${env.SONATYPE_PASSWORD}</password>
  </server>
  <server>
   <id>sonatype-nexus-snapshots</id>
   <username>${env.SONATYPE_USERNAME}</username>
   <password>${env.SONATYPE_PASSWORD}</password>
  </server>
 </servers>
</settings>

Allow publishing artifacts to sonatype staging
Allow publishing artifacts to sonatype staging
