Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Automating upload of artifacts in Nexus using Maven

Tags:

maven-2

nexus

Am trying to automate the process of uploading an artifact generated by Maven into a Nexus hosted repository (like a maven goal, which will upload the generated jar into a specified repository in Nexus). Is this possible? In the Nexus docs they have talked only about manual uploading.

I also looked at the nexus maven plugins and nothing like this is specified.

Thanks in advance

like image 764
Manoj Avatar asked Jun 07 '10 13:06

Manoj


People also ask

How do you upload artifacts to Nexus repository?

First load of the Nexus repository manager admin console. The first thing you need to do is provide the Maven group, artifact, version and packaging attributes for the deployment artifact you are about to upload. After doing so, use the Select Artifacts to Upload button to browse to the JAR file of interest.


1 Answers

You have to use mvn deploy to deploy your artifacts via WebDAV (declare the Nexus DAV URL in the distributionManagement section).

See also

  • Getting started with Nexus Maven Repo Manager
  • 13.3. Configuring Maven for Site Deployment (this link if for site deployment but it's similar)
like image 179
Pascal Thivent Avatar answered Nov 02 '22 02:11

Pascal Thivent