Hi, tell me, please, how to create a repository on a remote server correctly and add a jar to it for a small command using Maven? Options with Nexus are not allowed ...

Maven put on the server. I tried to add the following command from the local machine to a remote server:

mvn install:install-file -Dfile=/home/andy/IdeaProjects/testmaven/target/test-1.0-SNAPSHOT.jar -DgroupId=com.it -DartifactId=test -Dversion=1.0 -Dpackaging=jar 

Got the following error in the terminal:

 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.5.2:install-file (default-cli) on project standalone-pom: The specified file '/home/andy/IdeaProjects/testmaven/target/test-1.0-SNAPSHOT.jar' not exists -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException 

    0