Upload an Artifact Manually

From the Upload view, you can upload artifacts manually to the project’s Maven repository without installing Maven on your computer. You must be a project owner or member to upload an artifact to the project Maven repository.

  1. In the left navigator, click Maven Maven.
  2. On the right side of the page, click Upload.
  3. In the Upload Artifacts section, use the drag-and-drop operation to drop files to the drop area, or click the select artifact files link, browse, and select the files.
  4. In the table below the Upload Artifacts section, if necessary, update the Classifier field of the selected artifact.

    If you’re uploading only one artifact, you can leave the classifier field empty. If you’re uploading multiple artifacts, provide the classifier value for each artifact. The classifier helps to distinguish artifacts that were built from the same POM file but differ in their content. The classifier string is appended to the artifact name, after the version number.

    For example, if you’re uploading artifacts with identical names but different extensions (such as fileX-1.0.jar and fileX-1.0.pdf), you may provide classifiers, such as main and documentation for these files. After the files are uploaded, they are renamed to fileX-1.0-main.jar and fileX-1.0-documentation.pdf.

  5. After you add the artifacts, you must specify their Maven coordinates manually or from a POM file. These coordinates are used when uploading artifacts to the project’s Maven repository.

    If you want to specify the artifacts’ Maven coordinates manually, note the following:

    • The auto-suggest list of GroupId, Version, and ArtifactId are based on Maven indexes. If no index data is available, the auto-suggest list isn’t displayed.

    • By default, the Generate POM check box is selected. The upload process deploys the artifact and generates the default POM file, maven-metadata.xml, and associated sha1/md5 checksum files. If maven-metadata.xml already exists, it’s updated.

      If you deselect the check box, the upload process deploys the artifact to the target deployment path based on Maven attributes. The POM file and the maven-metadata.xml file aren’t generated.

  6. Click Start Upload.

    You can track the transfer status and its progress in the drop area of the Upload Artifacts section. To cancel the upload process, click Cancel Upload. The upload process will also be cancelled if the page is refreshed or closed.