How to copy unversioned test resources during release:perform?

后端 未结 2 626
温柔的废话
温柔的废话 2021-01-29 00:33

My Question is very similar to \"Maven doesn't copy untracked resources while releasing\". I have test resources which are not under version control. As tes

2条回答
  •  北海茫月
    2021-01-29 01:20

    Just as a quick reply :

    You SHOULD not include unversionned resources. This is not Maven philisophy ... indeed you MUST not :).

    maven and maven-release-plugin aimed to provide repeatable build. You CANNOT ensure that your build will ever deliver the same result if you rely on unversioned, let say uncontroled, resources.

    For later purposes, credentials can be encrypted easily :

    • https://maven.apache.org/guides/mini/guide-encryption.html
    • http://blog.sonatype.com/2009/10/maven-tips-and-tricks-encrypting-passwords/

提交回复
热议问题