In Fedora rawhide maven-plugin-testing was updated to upstream
maven-plugin-testing is used by many Maven plugins as a test
dependency. maven-plugin-testing depends on several maven core
components, such as maven-core or aether-api. In previous version
of maven-plugin-testing these dependencies had scope "compile"
which meant these components were pulled in during plugin tests
time. Since version 2.1 these scopes were changed from "compile"
This can possibly result in some FTBFS, but the solution is quite
simple. It is enough to add respective dependency with scope "test"
to failing package. For example:
# maven-core has scope "provided" in Plugin Testing Harness, so we
# need to provide it or tests will fail to compile. This works for
# upstream because upstream uses a different version of Plugin Testing
# Harness in which scope of maven-core dependency is "compile".
I'm building a project using maven-local.
My pom file has dependency to hamcrest-core and hamcrest-library version 1.2.1
My spec file has
In my local box (f17) it resolved correctly. But when I try to build it in mock targeting rawhide, it always resolve to hamcrest (which is 1.1 and fail to compile)
I've tried to add a depmap with -Dmaven.local.depmap.file as below, still no luck. Any one know why is that and how can I force it to reference hamcrest12 package? Thanks.
============= local dep map ===================
Senior Software Engineer
Engineering - Internationalisation
Red Hat, Asia-Pacific Pty Ltd
Level 1, 193 North Quay
Office: +61 7 3514 8278
Fax: +61 7 3514 8199