Hi Jo,
when I am trying to install our jar by command :
====================================================
mvn install:install-JTKSortSuite_400.jar -DgroupId=JTKSortSuite 
-DartifactId=JTKSortSuite -Dversion=4.0 -Dfile=C:\branches\testApp\lib 
-Dpackaging=jar -DgeneratePom=true
==========================================================
 
It gives following error:
 
[INFO] Searching repository for plugin with prefix: 'install'.
[INFO] -------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] -------------------------------------------------------------------
[INFO] Required goal not found: install:install-JTKSortSuite_400.jar
 
my jar JTKSortSuite_400.jar is located at C:\branches\testApp\lib .  Can u 
suggest where I am wrong.  
 
Thanks
Vinay


----- Original Message ----
From: Jo Vandermeeren <[EMAIL PROTECTED]>
To: Maven Users List <[email protected]>
Sent: Tuesday, 20 June, 2006 2:43:31 PM
Subject: Re: external jar dependency


Hi Vinay,

To install your own non-maven project or third party proprietary libraries,
you might want to consider the install plugin.
It will install the jar in your local maven repository and create a POM for
it, so your projects can depend on them and won't try to download them from
a public repository..

For each jar you want to depend on in maven projects, execute this snippet:

mvn install:install-file
      -DgroupId=<your_group_name>
      -DartifactId=<*your_artifact_name*>
      -Dversion=<SNAPSHOT>
      -Dfile=<*path_to_your_far*>
      -Dpackaging=jar
      -DgeneratePom=true


Regards,
Jo

Reply via email to