Hi Friends,
How to add the jar files to central repository from my local machine by using command prompt.

I was run the below command but it is showing some error.


mvn deploy:deploy-file -DgroupId=com.ptc -DartifactId=TCSchema -Dversion= -Dpackaging=jar -Dfile=TCSchema.jar -Durl=http://stash.nov.com:8081/nexus/content/groups/public


[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:
deploy-file (default-cli) on project standalone-pom: Failed to deploy artifacts:
Could not transfer artifact com.ptc.devenv:TCSchema:jar: from/to remo
te-repository (http://stash.nov.com:8081/nexus/cont...es/releases/):
Failed to transfer file: http://stash.nov.com:8081/nexus/content/repositories/re
leases/com/ptc/devenv/TCSchema/ Return code i
s: 401, ReasonPhrase: Unauthorized. -> [Help 1]

Can anybody please help me how to resolve the above error.