[fedora-java] maven-plugin-testing update in rawhide could cause FTBFS

Mikolaj Izdebski mizdebsk at redhat.com
Mon Mar 11 16:39:16 UTC 2013


In Fedora rawhide maven-plugin-testing was updated to upstream
version 2.1.

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"
to "provided".

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".
  %pom_add_dep org.apache.maven:maven-core::test

--
Mikolaj Izdebski


More information about the java-devel mailing list