我是MAC新手。我需要从本地到maven存储库安装一些罐子。
我遵循的步骤: -
mvn install:install-file -Dfile="\Downloads\monte-screen-recorder.jar" -DgroupId="org.monte" -DartifactId="monte-screen-recorder" -Dversion=0.7.7 -Dpackaging="jar"
SUCCESS消息显示在终端中。但Maven存储库中不存在实际的jar。
INFO] --- maven-install-plugin:2.3.1:install-file (default-cli) @ test ---
[INFO] Installing /Users/admnistrator/Documents/workSpaceIOS/test-automation-library/imageClient.jar to /Users/admnistrator/.m2/repository/com/experitest/client/imageClient/1.0/imageClient-1.0.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.527s
[INFO] Finished at: Thu Nov 17 17:02:07 IST 2016
[INFO] Final Memory: 8M/309M
[INFO] ------------------------------------------------------------------------
请让我知道我在哪里犯了错误。
答案 0 :(得分:0)
[INFO] Installing /Users/admnistrator/Documents/workSpaceIOS/test-automation-library/imageClient.jar to /Users/admnistrator/.m2/repository/com/experitest/client/imageClient/1.0/imageClient-1.0.jar
Maven在您当地的maven repo中安装映像客户端jar文件。所以你必须写错了命令。 你能显示完整的日志(命令+ maven在同一个日志中)吗?
答案 1 :(得分:0)
请改用此中央存储库:
<dependency>
<groupId>com.pojosontheweb</groupId>
<artifactId>monte-repack</artifactId>
<version>1.0.1</version>
</dependency>