这里只是一个简单的问题。
我试过了:
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
,但没有提到将文件安装到备用存储库。它是否可能,或者我需要将文件自己从一个存储库移动到另一个存储库?
由于
答案 0 :(得分:1)
只需添加-Dmaven.repo.local=path-to-alternate-repo
e.g。
-Dmaven.repo.local=/tmp/myrepo