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.

Command:

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


Error:


[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:10.1.40.14 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/10.1.40.14/TCSchema-10.1.40.14.jar. Return code i
s: 401, ReasonPhrase: Unauthorized. -> [Help 1]



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


Regards,
Sandeep