-4

Equivalent java code for:

mvn install:install-file -Dfile=c:\kaptcha-{version}.jar -
DgroupId=com.google.code
-DartifactId=kaptcha -Dversion={version} -Dpackaging=jar

Can someone please suggest an equivalent java code for the above lines Maven command.

kritikaTalwar
  • 1,730
  • 1
  • 17
  • 25

1 Answers1

0

I'm not sure whether it is the right idea to do this, but if you really want to execute above command from Maven, why not just use ProcessBuilder and call the external Java command?

J Fabian Meier
  • 33,516
  • 10
  • 64
  • 142
  • I agree process builder is an approch, but it might lead to vulnerabilities .Waht if I use maven invoker with ether for the same purpose – SQL developer Sep 15 '17 at 08:29