Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ruby-on-rails-3/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Maven-如何去掉模块名称中的模块版本?_Maven_Maven 3_Maven Dependency Plugin_Maven Deploy Plugin - Fatal编程技术网

Maven-如何去掉模块名称中的模块版本?

Maven-如何去掉模块名称中的模块版本?,maven,maven-3,maven-dependency-plugin,maven-deploy-plugin,Maven,Maven 3,Maven Dependency Plugin,Maven Deploy Plugin,我有几个模块的pom。检查此模块的一个文件时: ./sources/target/build/xxxxx/xxxxx-2.13-jar-with-dependencies.jar ./compiled/target/build/xxxxx/xxxxx-2.13-jar-with-dependencies.jar 所需结果如下(无版本): 我尝试了不同的方法,如,,,,,但它们似乎都不起作用,我使用其中大多数方法得到的结果是: ./sources/target/xxxxx-jar-with-de

我有几个模块的pom。检查此模块的一个文件时:

./sources/target/build/xxxxx/xxxxx-2.13-jar-with-dependencies.jar
./compiled/target/build/xxxxx/xxxxx-2.13-jar-with-dependencies.jar
所需结果如下(无版本):

我尝试了不同的方法,如
,但它们似乎都不起作用,我使用其中大多数方法得到的结果是:

./sources/target/xxxxx-jar-with-dependencies.jar
./sources/target/build/xxxxx/xxxxx-2.13-jar-with-dependencies.jar
./target/xxxxx-jar-with-dependencies.jar
./compiled/target/xxxxx-jar-with-dependencies.jar
./compiled/target/build/xxxxx/xxxxx-2.13-jar-with-dependencies.jar

这是我需要的结果,但不是我想要的文件。

当你说你尝试了
finalName
时,你是否尝试了Maven Assembly one:?但你到底想重命名什么?战争中包含的
jar
?耳朵里的容器?完全是别的吗?我不是100%确定。因为我使用这个模块作为模块和依赖项。这可能是你的问题。您可以使用此模块作为依赖项发布POM吗?
./sources/target/xxxxx-jar-with-dependencies.jar
./sources/target/build/xxxxx/xxxxx-2.13-jar-with-dependencies.jar
./target/xxxxx-jar-with-dependencies.jar
./compiled/target/xxxxx-jar-with-dependencies.jar
./compiled/target/build/xxxxx/xxxxx-2.13-jar-with-dependencies.jar