Exclude files with maven assembly does not work

前端 未结 1 856
滥情空心
滥情空心 2021-01-17 19:03

I have very simple assembly descriptor



        
相关标签:
1条回答
  • 2021-01-17 19:39

    You need to filter the dependencySet as well. Try updating your assembly descriptor as

    <dependencySet>
        <outputDirectory>/</outputDirectory>
        <useProjectArtifact>true</useProjectArtifact>
        <unpack>true</unpack>
        <scope>runtime</scope>
        <unpackOptions>
            <excludes>
                <exclude>**/dbAccess.*</exclude>
            </excludes>
        </unpackOptions>
    </dependencySet>
    
    0 讨论(0)
提交回复
热议问题