java – maven-assembly-plugin: use during development and but pack as on jar-with-dependencies

I’ve got two configuration files (with usernames and passwords for the database for the testing phase) in srcmainresources{,} During the development and my own testing I would like use On packaging the project, I’d like to include as in the single jar with dependencies. How can I tell this directly in the single pom.xml? I tried to exclude with this section, but even that didn’t work:


                        <Created-By>Great Technologies AG</Created-By>
                        <Title>Great Tech</Title>