mavenmaven-2maven-3nexus

how to deploy my artifact on to my nexus?


I am using nexus open source as my repository manager for Maven 3.0.3

Maven is able to create artifact *.jar.

Now, I would like to know how I can push the generated artifact *.jar to the nexus repo manager, so that other dependent modules can pull from it.

I referred to this guide.

In settings.xml, I have

    <server>     
            <id>nexus-site</id>
            <username>admin</username>
            <password>xxxx</password>
    </server>

It fails.

How can invoke my deployment from mvn command or how to deploy my artifact on to my nexus?


Solution

  • Just try

    mvn deploy
    

    that will deploy your artifact to the nexus repo manager.

    Have you configured the distributionManagement section ?