0

I'm must verify a maven local dependency into a python script. I succeed to do it on linux using this command (from this thread).

mvn dependency:get -Dartifact=g:a:v -o -DrepoUrl=file://~/.m2/repository

My problem is that I'm working with a team using Windows, Linux and Mac, under Windows I'm unable to execute this command, the repo path is the one from mvn configuration maybe the problem is coming from the way I'm calling it as parameter.

mvn dependency:get -Dartifact=g:a:v -o -DrepoUrl=file://C:\Users\user\.m2\repository

Is someone already use this command on Windows and have any hints to solve this problem ? Thank you .

Banana Bash
  • 85
  • 1
  • 4
  • What error do you get when you call the command on the Windows command line? – J Fabian Meier Feb 23 '18 at 14:36
  • I got a "Building failure" and maven error output is about the plugin "dependency" -> [ERROR] No plugin found for prefix 'dependency' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\Users\user\.m2\repository), central (https://repo.maven.apache.org/maven2)] -> [Help 1] – Banana Bash Feb 25 '18 at 11:30

1 Answers1

0

Finally I reached a solution.

I'm not sure to understand but on windows firstly I must run :

mvn dependency:get

before running :

mvn dependency:get -Dartifact=g:a:v -o

I think the problem about 'dependency plugin' is solved by the first command.

Banana Bash
  • 85
  • 1
  • 4