Uploaded image for project: 'Ivy'
  1. Ivy
  2. IVY-1444

maven tests artifacts cannot be downloaded because they are mapped to private configurations

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 2.3.0
    • 2.5.0-rc1
    • Maven Compatibility
    • None

    Description

      To run an embedded hadoop server, one has to use hadoops test libraries since version 2.1.0-beta.

      Though fetching those test libraries fails with:

      configuration not public in xxx#yyy;2.1.0-rc2: 'test'. It was
      required from zzz#bbb;working test

      This is because the maven pom.xml converter creates this configuration entry:

      <conf name="test"
      visibility="private"
      description="this scope indicates that the dependency is not
      required for normal use of the application, and is only available for the test
      compilation and execution phases."
      extends="runtime"/>

      This makes it impossible to download test artifacts with ivy. Then the question arises, why are those tests jars in the maven repos anyway?

      Is there any way how to download the actual test artifacts of maven modules?

      Maybe the pom.xml converter needs to be adjusted to generate:

      <conf name="test"
      visibility="public"
      description="this scope indicates that the dependency is not
      required for normal use of the application, and is only available for the test
      compilation and execution phases."
      extends="runtime"/>

      To fix this...

      Attachments

        Issue Links

          Activity

            People

              maartenc Maarten Coene
              subes subes
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: