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

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

        <plugin>
            <artifactId>maven-assembly-plugin</artifactId>
            <version>3.3.0</version>

            <configuration>
                <descriptorRefs>
                    <descriptorRef>jar-with-dependencies</descriptorRef>
                </descriptorRefs>
                <archive>
                    <manifest>
                        <mainClass>com.great.tech.Client</mainClass>
                        <packageName>com.great.tech.client</packageName>
                        <addClasspath>true</addClasspath>
                    </manifest>
                    <manifestEntries>
                        <Created-By>Great Technologies AG</Created-By>
                        <Version>${project.version}</Version>
                        <Title>Great Tech</Title>
                    </manifestEntries>
                </archive>
                <appendAssemblyId>false</appendAssemblyId>

                <dependencySets>
                    <dependencySet>
                        <excludes>
                            <exclude>**/config.properties</exclude>
                        </excludes>
                    </dependencySet>
                </dependencySets>
            </configuration>

            <executions>
                <execution>
                    <id>make-assembly</id>
                    <phase>package</phase>
                    <goals>
                        <goal>single</goal>
                    </goals>
                </execution>
            </executions>

        </plugin>