kb-dk/kb-util

Rebuild ResolverTest

Closed this issue · 1 comments

tokee commented

If a maintainer performs a mvn package followed by a mvn release:prepare and a mvn release:perform, the unit test fails and no release is rolled. If a mvn clean release:prepare is used instead, the release goes through.

The problem is that a release make a check out under target/ and that the ResolverTest finds multiple instances of the same test files, if a clean has not been performed first.

The fix is not trivial as part of the ResolverTestis to resolve relatively from the current folder for the application. Maybe a unique file could be created by the tests?

Solved elsewhere.