0

我尝试使用新的 Tycho 功能来重命名生成的工件。zip 文件在 target/products 目录下正确重命名,但是当 Maven 将它们安装到 C:\.m2 时,它们将具有原始名称。

<configuration>
    <products>
        <product>
            <id>my.product.id</id>
            <archiveFileName>xyz</archiveFileName>
        </product>
    </products> 
</configuration>

结果在目标/产品目录中:xyz-win32.win32.x86.zip

结果为 C:\.m2...\:my.product.id-win32.win32.x86.zip

还有其他地方可以配置吗?

4

1 回答 1

3

After several days of thinking, I have the solution, that there is no solution. It's not possible to rename the artifact in the maven repository. How would maven find the artifact in case of a renamed zip file.

The only place to rename the zip file is in the target directory and work on from this place.

于 2012-05-11T09:52:49.940 回答