You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by jiangshachina <ji...@gmail.com> on 2006/09/11 04:17:48 UTC

Install file to other repositories?

Hello,
I have set localRepository parameter in Maven_Home/conf/settings.xml.
For install files, I use command
mvn install:install-file -Dfile=<path-to-file> -DgroupId=<group-id>
-DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=<packaging>
Defaultly, the file will be install to local repository.

If I use command
mvn install:install-file -Dfile=<path-to-file> -DgroupId=<group-id>
-DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=<packaging>
-DlocalRepository=<another-local-repository>
I still install files to the local repo set in settings.xml, but the
another-local-repository set in the upper command.
-- 
View this message in context: http://www.nabble.com/Install-file-to-other-repositories--tf2249926.html#a6240205
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Install file to other repositories?

Posted by jiangshachina <ji...@gmail.com>.
Hi,
Thanks for your reply.
I have no experience of searching bugs at JIRA.
I have tried several times. But my every search would be followed by a great
of issue :(

But, I think the bug is so abvious, many people may have found it ^_^

a cup of Java, cheers!
Sha Jiang


Wayne Fay wrote:
> 
> It might be a bug -- sounds like the localRepo setting cannot be
> overridden on the CLI like many/most other properties. This may be on
> purpose, or it may be an accident, unsure.
> 
> Check JIRA for a bug report/enhancement request and vote/watch it, or
> file one if you can't find one already posted.
> 
> Wayne
> 
> On 9/10/06, jiangshachina <ji...@gmail.com> wrote:
>>
>> Hello,
>> I have set localRepository parameter in Maven_Home/conf/settings.xml.
>> For install files, I use command
>> mvn install:install-file -Dfile=<path-to-file> -DgroupId=<group-id>
>> -DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=<packaging>
>> Defaultly, the file will be install to local repository.
>>
>> If I use command
>> mvn install:install-file -Dfile=<path-to-file> -DgroupId=<group-id>
>> -DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=<packaging>
>> -DlocalRepository=<another-local-repository>
>> I still install files to the local repo set in settings.xml, but the
>> another-local-repository set in the upper command.
>> --
>> View this message in context:
>> http://www.nabble.com/Install-file-to-other-repositories--tf2249926.html#a6240205
>> Sent from the Maven - Users forum at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Install-file-to-other-repositories--tf2249926.html#a6240927
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Install file to other repositories?

Posted by Wayne Fay <wa...@gmail.com>.
It might be a bug -- sounds like the localRepo setting cannot be
overridden on the CLI like many/most other properties. This may be on
purpose, or it may be an accident, unsure.

Check JIRA for a bug report/enhancement request and vote/watch it, or
file one if you can't find one already posted.

Wayne

On 9/10/06, jiangshachina <ji...@gmail.com> wrote:
>
> Hello,
> I have set localRepository parameter in Maven_Home/conf/settings.xml.
> For install files, I use command
> mvn install:install-file -Dfile=<path-to-file> -DgroupId=<group-id>
> -DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=<packaging>
> Defaultly, the file will be install to local repository.
>
> If I use command
> mvn install:install-file -Dfile=<path-to-file> -DgroupId=<group-id>
> -DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=<packaging>
> -DlocalRepository=<another-local-repository>
> I still install files to the local repo set in settings.xml, but the
> another-local-repository set in the upper command.
> --
> View this message in context: http://www.nabble.com/Install-file-to-other-repositories--tf2249926.html#a6240205
> Sent from the Maven - Users forum at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org