how to deploy my artifact on to my nexus?

Just try

   mvn deploy

that will deploy your artifact to the nexus repo manager.

Have you configured the distributionManagement section ?


Repository element should also be specified. Snippet:pom.xml

<distributionManagement>
    <repository>
      <id>internal.repo</id>
      <name>MyCo Internal Repository</name>
      <url>http://Nexus url</url>
    </repository>
  </distributionManagement>

And if you want to add it to the snapshot repository, you need the following configuration inside your pom.xml

<distributionManagement>
    <repository>
         <id>nexus-site</id>
         <name>MyCo Internal Repository</name>
         <url>http://Nexus url</url>
    </repository>
    <snapshotRepository>
         <id>nexus-site</id>
         <name>Your Snapshot Repository</name>
         <url>http://Nexus url</url>
    </snapshotRepository>
</distributionManagement>