我有一个名为jca-telegram
的项目
当我进入时:
maven clean compile package
项目编译打包没有任何问题。
但是安装命令在我的
$HOME/.m2/repository
目录中复制了错误的文件。target
目录中的列表文件 module-adapter/adapter-rar
:
-rw-rw-r-- 1 mah454 mah454 2049 Mar 27 01:27 module-adapter/adapter-rar/target/telegram-adapter-rar-1.0.jar
-rw-rw-r-- 1 mah454 mah454 659 Mar 27 01:28 module-adapter/adapter-rar/target/telegram-adapter-rar-1.0.jar.asc
-rw-rw-r-- 1 mah454 mah454 1508 Mar 27 01:28 module-adapter/adapter-rar/target/telegram-adapter-rar-1.0.pom
-rw-rw-r-- 1 mah454 mah454 659 Mar 27 01:28 module-adapter/adapter-rar/target/telegram-adapter-rar-1.0.pom.asc
-rw-rw-r-- 1 mah454 mah454 10581392 Mar 27 01:28 module-adapter/adapter-rar/target/telegram-adapter-rar-1.0.rar
这是在
$HOME/.m2/repository
上列出的文件:
-rw-rw-r-- 1 mah454 mah454 2049 Mar 27 01:27 /home/mah454/.m2/repository/ir/moke/jca/telegram-adapter-rar/1.0/telegram-adapter-rar-1.0-javadoc.jar
-rw-rw-r-- 1 mah454 mah454 659 Mar 27 01:28 /home/mah454/.m2/repository/ir/moke/jca/telegram-adapter-rar/1.0/telegram-adapter-rar-1.0-javadoc.jar.asc
-rw-rw-r-- 1 mah454 mah454 1508 Mar 27 01:10 /home/mah454/.m2/repository/ir/moke/jca/telegram-adapter-rar/1.0/telegram-adapter-rar-1.0.pom
-rw-rw-r-- 1 mah454 mah454 659 Mar 27 01:28 /home/mah454/.m2/repository/ir/moke/jca/telegram-adapter-rar/1.0/telegram-adapter-rar-1.0.pom.asc
-rw-rw-r-- 1 mah454 mah454 2049 Mar 27 01:27 /home/mah454/.m2/repository/ir/moke/jca/telegram-adapter-rar/1.0/telegram-adapter-rar-1.0.rar
-rw-rw-r-- 1 mah454 mah454 659 Mar 27 01:28 /home/mah454/.m2/repository/ir/moke/jca/telegram-adapter-rar/1.0/telegram-adapter-rar-1.0.rar.asc
实际上我想将大小为
telegram-adapter-rar-1.0.rar
的10581392
安装到m2目录但是maven将telegram-adapter-rar-1.0.jar
复制到m2然后将这个文件重命名为telegram-adapter-rar-1.0.rar
.
如何解决这个问题?
注意:您可以在 github