how to deploy my artifact on to my nexus?

BalaB picture BalaB · Dec 7, 2011 · Viewed 57.6k times · Source

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?

Answer

khmarbaise picture khmarbaise · Dec 7, 2011

Just try

   mvn deploy

that will deploy your artifact to the nexus repo manager.

Have you configured the distributionManagement section ?