Maven: How to create assembly with snapshot artifacts without timestamps file name?

后端 未结 2 2023
梦如初夏
梦如初夏 2021-01-31 11:43

I\'ve a repository containing snapshot artifacts with timestamps.

I want to create an assembly, that contains the dependencies. This works fine. But the artifact names c

2条回答
  •  礼貌的吻别
    2021-01-31 12:07

    I faced a similar issue when trying to build a bundle with the assembly plugin which contained a folder with the version number (I'm packaging WSDLs and XSDs).

    The workaround I found is quite simple, I put the actual version number in a property (e.g. 1.0), which makes it available in the bundle.xml file for the assembly plugin, and set the pom version's to:

    ${service.version}-SNAPSHOT
    

    This way the content of my package isn't influenced by the SNAPSHOT marker, in particular it isn't modified when doing the release.

提交回复
热议问题