This should be:

mvn install:install-file -DgroupId=JTKSortSuite -DartifactId=JTKSortSuite -Dversion=4.0 -Dfile=C:\branches\testApp\lib\JTKSortSuite_400.jar -Dpackaging=jar -DgeneratePom=true

but you should probably change your groupId/artifactId to something different (e.g. groupId=JTK artifactId=SortSuite)

----- Original Message ----- From: "Vinay Kumar" <[EMAIL PROTECTED]>
To: "Maven Users List" <users@maven.apache.org>
Sent: Tuesday, June 20, 2006 11:17 AM
Subject: Re: external jar dependency


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 <users@maven.apache.org>
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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to