Try installing into your local repository by running the following command:

mvn install:install-file -Dfile=your-artifact.jar -DgroupId=some.group
-DartifactId=your-artifact -Dversion=your-version -Dpackaging=jar

On Thu, May 19, 2011 at 1:40 PM, uday shankar <[email protected]> wrote:

> Hi,
> I deployed an external jar(not Maven jar, but a jar created in our project)
> to the local repository.
> but after deploying when I tried running the command mvn package, the jar
> was not being picked up from the local repo. Error : unable to resolve
> dependency.
>
> Steps which I used to deploy the jar intot he local repo :
> 1. I copied the jar into my local system
> 2. wrote the groupid, artifactid and version info in the dependency tag and
> placed it in the pom.xml
> 3. passed the same values of groupid , artifactid and version as parametres
> in the mvn install:install command.
>
> Please help
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/Problem-in-delpoying-an-external-jar-to-the-local-repo-tp4410234p4410234.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to