Description of problem: http://koji.fedoraproject.org/koji/getfile?taskID=8705413&name=build.log&offset=-4000 checking for JUnit 4... /usr/share/java/junit.jar checking for included Hamcrest... Not included checking for standalone hamcrest jar.... configure: error: junit does not contain hamcrest; please use a junit jar that includes hamcrest, install a hamcrest jar in the default location (/usr/share/java), specify its path with --with-hamcrest=..., or disable junit with --without-junit RPM build errors: It works before Export internal OSGi packages and mark them with x-internal - Resolves: rhbz#1184144 Version-Release number of selected component (if applicable): junit-4.12-2.fc22
Hamcrest used to be bundled in junit.jar, but it was unbundled starting from version 4.12. Since bundling is not allowed in Fedora, I'm closing this as WONTFIX. I tried building LibreOffice and it seems work if you pass it explicit Hamcrest location using --with-hamcrest=/usr/share/java/hamcrest/core.jar
(LibreOffice finds it via <http://cgit.freedesktop.org/libreoffice/core/commit/?id=8419fa8c28dd9c5f64a72d28d561b3817d781232> "Related rhbz#1185307: One more location to look for Hamcrest jar" now)