jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Signup
Maven 2.x Install Plugin
  • Maven 2.x Install Plugin
  • MINSTALL-71

localRepositoryPath ignored

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.2
  • Fix Version/s: 2.3
  • Component/s: install:install-file
  • Labels:
    None
  • Environment:
    Hide
    Windows XP
    Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
    Java version: 1.6.0_16
    Java home: C:\Program Files\Java\jdk1.6.0_16\jre
    Default locale: fr_FR, platform encoding: Cp1252
    OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
    Show
    Windows XP Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200) Java version: 1.6.0_16 Java home: C:\Program Files\Java\jdk1.6.0_16\jre Default locale: fr_FR, platform encoding: Cp1252 OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
  • Number of attachments :
    0

Description

Using CLI I want to install an artifact in an other repository than the on defined in my settings.xml. Here is the command line I use :

mvn -X org.apache.maven.plugins:maven-install-plugin:2.2:install-file -DlocalRepositoryPath=D:\RPE_WS\fake_repo -Dfile=inst_test-0.0.1.jar -DpomFile=pom.xml -DcreateChecksum=true

where D:\RPE_WS\fake_repo is an empty directory

The last part of the output is:

...
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-install-plugin:2.2:inst
all-file' -->
[DEBUG] (f) createChecksum = true
[DEBUG] (f) file = D:\RPE_WS\mvn_install_test\inst_test-0.0.1.jar
[DEBUG] (f) generatePom = false
[DEBUG] (f) localRepository = Repository[local|file://C:\Documents and Setting
s\gt218354\.m2\repository]
[DEBUG] (s) localRepositoryPath = D:\RPE_WS\fake_repo
[DEBUG] (f) pomFile = D:\RPE_WS\mvn_install_test\pom.xml
[DEBUG] (f) repositoryLayout = default
[DEBUG] – end configuration –
[INFO] [install:install-file

{execution: default-cli}

]
[INFO] Installing D:\RPE_WS\mvn_install_test\inst_test-0.0.1.jar to C:\Documents
and Settings\userid\.m2\repository\com\plop\test\inst_test\0.0.1\inst_test-0
.0.1.jar
[INFO] Creating Checksums...
[DEBUG] Installing checksum for C:\Documents and Settings\userid\.m2\repository\com\plop\test\inst_test\0.0.1\inst_test-0.0.1.jar
[INFO] Installing D:\RPE_WS\mvn_install_test\pom.xml to C:\Documents and Setting
s\userid\.m2\repository\com\plop\test\inst_test\0.0.1\inst_test-0.0.1.pom
[INFO] Creating Checksums...
[DEBUG] Installing checksum for C:\Documents and Settings\userid\.m2\repositor
y\com\plop\test\inst_test\0.0.1\inst_test-0.0.1.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Thu Nov 26 12:02:57 CET 2009
[INFO] Final Memory: 3M/6M
[INFO] ------------------------------------------------------------------------

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
No work has yet been logged on this issue.

People

  • Assignee:
    Unassigned
    Reporter:
    Rémi Perrot
Vote (0)
Watch (0)

Dates

  • Created:
    26/Nov/09 5:24 AM
    Updated:
    26/Nov/09 5:45 AM
    Resolved:
    26/Nov/09 5:45 AM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.