-2

I am new to Maven and I am trying to add a custom jar to my local repository. In my command I run the following:

C:\Users\tj>mvn install:install-file -Dfile= <C:\Users\tj\neon\couponsBasic.jar> -DgroupId=<com.coupons> -DartifactId=<coupons> -Dversion=<1.0> -Dpackaging=<jar> -DgeneratePom=true 

The jar is in that location but my response is:

The system cannot find the file specified.

Is there something that I am missing here? Should I save the file directly into the M2 folder? Any help would be greatly appreciated.

Steve O
  • 5,224
  • 1
  • 24
  • 26
N Javasky
  • 1
  • 1

1 Answers1

0

remove < and >

C:\Users\tj>mvn install:install-file -Dfile=C:\Users\tj\neon\couponsBasic.jar -DgroupId=com.coupons -DartifactId=coupons -Dversion=1.0 -Dpackaging=jar -DgeneratePom=true 
Jens
  • 67,715
  • 15
  • 98
  • 113
  • When I remove < and > I get the following error message '[INFO] Scanning for projects... Downloading: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml (13 KB at 12.9 KB/sec) [INFO] BUILD FAILURE [ERROR] No plugin found for prefix 'C' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo]' – N Javasky Jul 05 '16 at 09:30