0

I'm doing a simple configuration with Jenkins to generate my deploy, the pom file has been configured to create WAR and JAR file. What I want now is to upload automatically the JAR file to my Maven repository (using Archiva currently), but until now I can't find properly information for doing this. The routine is trying to upload the WAR file instead.

KESO
  • 335
  • 2
  • 5
  • 17
  • Usually you define in your parent pom a distributionManagement and in your build you simply say `mvn deploy`..? – khmarbaise Feb 16 '18 at 20:09
  • you can upload your artifacts to any artifact registry such as nexus, jfrog etc by issuing `mvn deploy`? – Muatik Feb 16 '18 at 22:34
  • Usually, both files will be uploaded, but the jar file gets a classifier. What are you doing to generate the jar? – J Fabian Meier Feb 17 '18 at 16:25
  • @khmarbaise my pom has war, so what you suggest is to change this to jar instead? – KESO Feb 19 '18 at 22:26

0 Answers0