0

这里只是一个简单的问题。

我试过了:

mvn install:install-file 
-DaltDeploymentRepository=../releases 
-Dfile=gcm-server.jar
-Dsources=gcm-server-sources.jar
-DgroupId=com.google.android.gcm
-DartifactId=gcm-server
-Dversion=1.0.2
-DpomFile=gcm.pom
-Dpackaging=jar
-DcreateChecksum=true

但我得到以下信息:

[INFO] --- maven-install-plugin:2.3.1:install-file (default-cli) @ standalone-pom ---
[INFO] Installing /home/sebastien/Bureau/gcm-server-repository/deployer/gcm-server.jar to /home/sebastien/.m2/repository/com/google/android/gcm/gcm-server/1.0.2/gcm-server-1.0.2.jar
[INFO] Installing /home/sebastien/Bureau/gcm-server-repository/deployer/gcm.pom to /home/sebastien/.m2/repository/com/google/android/gcm/gcm-server/1.0.2/gcm-server-1.0.2.pom
[INFO] Installing /home/sebastien/Bureau/gcm-server-repository/deployer/gcm-server-sources.jar to /home/sebastien/.m2/repository/com/google/android/gcm/gcm-server/1.0.2/gcm-server-1.0.2-sources.jar

有没有办法将文件安装到另一个本地 Maven 存储库?我已经检查过,install:install-file但它没有提到将文件安装到备用存储库。是否有可能,或者我需要自己将文件从一个存储库移动到另一个存储库?

谢谢

4

1 回答 1

1

Just add -Dmaven.repo.local=path-to-alternate-repo

e.g.

-Dmaven.repo.local=/tmp/myrepo
于 2012-08-16T16:29:37.623 回答