title: How to remove timestamp from artifacts uploaded to maven2 repository on nexus?
body: <p>I am uploading a few artifacts through a Jenkins pipeline on a Nexus repository, the repository is maven2 hosted. I use the following block in Jenkins to upload artifacts:</p>
  
  <pre><code>nexusArtifactUploader (
              artifacts: [
                      [artifactId: 'artifact-part1',
                      classifier: '',
                      file: "build/libs/artifact-part1.jar",
                      type: 'jar'],
                      [artifactId: 'artifact-part2',
                      classifier: '',
                      file: "build/libs/artifact-part2.jar",
                      type: 'jar']
                  ],
                  credentialsId: 'nexus_cred',
                  groupId: "$group", nexusUrl: "$nexusUrl:8082",
                  nexusVersion: 'nexus3',
                  protocol: 'http',
                  repository: 'project_dev',
                  version: "$version-SNAPSHOT"
          )
  
  </code></pre>
  
  <p>It gets uploaded to nexus but the file name has a suffix of timestamp. I am not mentioning the timestamp anywhere, I am not sure how it gets added. This is how it looks:</p>
  
  <p><a href="https://i.stack.imgur.com/i5bMT.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/i5bMT.jpg" alt="enter image description here"></a></p>
  
  <p>I don't wan't the timestamp to be added. Adding the timestamp creates multiple versions, I would like to know if there is any way of removing the timestamp so that only one version is saved. What can I do?</p>