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 testing is part of release:perform that fails without those resources.
How can I tell Maven to copy those unversioned test resources into target/checkout/target/test-classes/. I really would prefer not to skip testing. Those test resource won't come into the public vcs as they have credentials for a webservice.
There seems to be many ways to achieve this. One way is with the maven-resources-plugin and a profile. The release-plugin sets during
release:performthe profilerelease-plugin. You simply have add the maven-resources-plugin into that profile (or a custom profile which is activated by<releaseProfiles>).With org.sonatype.oss:oss-parent it's a bit different, as that parent disables
<useReleaseProfile>but usessonatype-oss-release.