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 857977
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T08:28:55+00:00 2026-05-15T08:28:55+00:00

When specifing a dependencies using ant ivy, is there a way to exclude a

  • 0

When specifing a dependencies using ant ivy, is there a way to exclude a particular package?

eg: I am putting a dependency to MyJar.jar

it has packages

com.test.one
com.test.one.first
com.test.one.second
com.test.two
etc.

I want to exclude the package com.text.one.first.

If there is a way, how can i do that?

  • 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-05-15T08:28:55+00:00Added an answer on May 15, 2026 at 8:28 am

    Ivy downloads modules that contain one or more jar files (called artifacts) and which might in turn declare dependencies on other modules.

    The exclude directive can be used to prevent the download of certain artifacts

    <dependency name="myjar" rev="1.0">
      <exclude module="idontlikethismodule"/>
    </dependency>
    

    What ivy cannot do is open up a jar and only download certain packages.

    If that is your requirement then I’d suggest downloading the jar and then repackaging it using the ANT unzip and jar commands.

    Something like:

    <ivy:retrieve pattern="lib/[artifact].[ext]"/>
    <unzip src="lib/myjar.jar" dest="build/unzip"/>
    <jar destfile="build/mynewjar.jar" basedir="build/unzip" excludes="com.text.one.first"/>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Ivy to manage the dependencies on my project. So far, I've specified
Are there ant plugins that wrap maven so that I can make use of
My colleague insists on explicitly specifying the namespace in code as opposed to using
How would I Export tables specifying only certain fields? I am using mysql 5.0
I'm working on a database that tracks files and dependencies in projects. Briefly, I
I'm trying setup a subset of boost and get it properly compiled using bjam,
I'm specifying my doctype as xhtml strict, but it's being sent over the wire
I'm specifying a color hex code as the background-color of a really long div.
What is the web config syntax for specifying a WCF WebService Proxy's Default Target
I'm looking for examples of specifying files in a tree structure, for example, for

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.