Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8650053
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T13:43:16+00:00 2026-06-12T13:43:16+00:00

There is a Java library I want to use as part of my build,

  • 0

There is a Java library I want to use as part of my build, but it contains an external resources/ directory that has to be visible to the runtime classpath in order to work. I’d like to be able to store it as an artifact inside my Ivy repository, but not sure if Ivy can handle this, and if so, how to rig-up the ivy.xml, ivy-settings.xml files, as well as the repo itself.

My repo is actually an Artifactory server and I store artifacts and their ivy files right next to each other:

http://myrepo.com:8080/artifactory/simple/myrepo/
    google/
        guice/
            3.0/
                guice-3.0.jar
                ivy.xml

Etc. I guess I’m looking for a similar setup here:

http://myrepo.com:8080/artifactory/simple/myrepo/
    fizz/
        buzz/
            1.7/
                buzz-1.7.jar
                resources/
                ivy.xml

…and somehow pull down both the jar and its resources/ directory as part of the Ivy resolve/retrieve pattern, and then place resources/ where I need it to be from there.

Is this possible? Any ideas? Thanks in advance!

Edit – If the fact that resources/ is a directory causes a problem, I don’t mind zipping it up as resources.zip, and then resolving/retrieving it into my project at buildtime, and then unzipping it. That’s just more work to do, if Ivy can’t handle directory-artifacts out of the box.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T13:43:17+00:00Added an answer on June 12, 2026 at 1:43 pm

    You should zip/tar the directory and create the following setup:

    http://myrepo.com:8080/artifactory/simple/myrepo/
        fizz/
            buzz/
                1.7/
                    buzz-1.7.jar
                    resources-1.7.zip
                    ivy-1.7.xml
    

    In your ivy.xml you would then declare each file as a publication of this module like this:

    <?xml version="1.0" encoding="UTF-8"?>
    <ivy-module version="2.0">
        <info organisation="fizz"
            module="buzz"
            revision="1.7"
            status="release"
            publication="20110531150115"
            default="true"
        />
        <configurations>
            <conf name="default" visibility="public"/>
        </configurations>
        <publications>
          <artifact name="buzz"      type="jar" />
          <artifact name="resources" type="zip" />
        </publications>
    </ivy-module>
    

    And if needed you could define separate configurations like:

        <configurations>
                <conf name="default" extends="jar, resources" visibility="public"/>
                <conf name="jar" visibility="public"/>
                <conf name="resources" visibility="public"/>
        </configurations>
        <publications>
          <artifact name="buzz"      type="jar" conf="jar"/>
          <artifact name="resources" type="zip" conf="resources"/>
        </publications>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There's a Java library that I would like to use in my project. My
I found this open-source library that I want to use in my Java application.
Is there a standard Java library that handles common file operations such as moving/copying
Is there any free Java library for extracting text from PDF, that is compatible
There is Java tool (it is called Mallet) http://mallet.cs.umass.edu/download.php which I want to use
I have a Java library in a jar and I want to use the
I want to use java standard library, and as much as I know, its
Is there any java library available to use Windows Azure AppFabric Caching features? I
Is there an easy way without having to use java library to concat two
GWT's serializer has limited java.io.Serializable support, but for security reasons there is a whitelist

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.