You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Igor Zapletnev <ig...@gmail.com> on 2013/04/17 21:15:27 UTC
Install 3rd party jar manually
Hi all,
I am trying to install 3rd party jar in the non default repo:
> mvn install:install-file -Dfile=myjar.jar
-DlocalRepositoryPath="file:///Users/user/my_custom_repo"
-DgroupId=myGroupId -DartifactId=myArtifactId -Dversion=0.0.1-SNAPSHOT
-Dpackaging=jar
my_custom_repo - it is an empty folder, and I want to create m2 repo in
this empty folder with one artifact (myArtifactId).
But this artifact will be installed in
the /Users/user/.m2/repository/myGroupId/file:/my_custom_repo/myArtifactId
Is it clear way?
Re: Install 3rd party jar manually
Posted by Igor Zapletnev <ig...@gmail.com>.
Thanks, repository path without file scheme works properly.
On Thu, Apr 18, 2013 at 9:57 PM, Wayne Fay <wa...@gmail.com> wrote:
> >> mvn install:install-file -Dfile=myjar.jar
> > -DlocalRepositoryPath="file:///Users/user/my_custom_repo"
> > -DgroupId=myGroupId -DartifactId=myArtifactId
> -Dversion=0.0.1-SNAPSHOT
> > -Dpackaging=jar
> ...
> > But this artifact will be installed in
> > the
> /Users/user/.m2/repository/myGroupId/file:/my_custom_repo/myArtifactId
>
> Perhaps drop the file:// stuff and just specify ="/Users..."?
> Otherwise perhaps specify the alternate repo path in settings.xml,
> either your primary one or an alternative specificed with -s.
>
> Wayne
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: Install 3rd party jar manually
Posted by Wayne Fay <wa...@gmail.com>.
>> mvn install:install-file -Dfile=myjar.jar
> -DlocalRepositoryPath="file:///Users/user/my_custom_repo"
> -DgroupId=myGroupId -DartifactId=myArtifactId -Dversion=0.0.1-SNAPSHOT
> -Dpackaging=jar
...
> But this artifact will be installed in
> the /Users/user/.m2/repository/myGroupId/file:/my_custom_repo/myArtifactId
Perhaps drop the file:// stuff and just specify ="/Users..."?
Otherwise perhaps specify the alternate repo path in settings.xml,
either your primary one or an alternative specificed with -s.
Wayne
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org