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

  • Home
  • SEARCH
  • 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 8388259
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T18:26:09+00:00 2026-06-09T18:26:09+00:00

We use Ant with Ivy and I’d like to embed in our created jars

  • 0

We use Ant with Ivy and I’d like to embed in our created jars and wars the pom.xml and the pom.properties file just as you see if you used Maven. Creating a pom.xml from the ivy.xml file is pretty simple with the <ivy:makepom> task. Getting the artifactId and the gorupId can be done via the <xmlproperty> task. However, how do I create the pom.properties file. Is that necessary?

  • 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-09T18:26:10+00:00Added an answer on June 9, 2026 at 6:26 pm

    Okay, while going through the documentation, I found it was a lot easier than I thought. Ivy generates a lot of properties which can be used. I also found that the pom.xml file only contains the groupId, artifactId and the version, so it’s not that tough to generate.

    Here’s what I did:

    <target name="package" depends="compile">
    
        <!-- Make the pom.xml -->
        <ivy:makepom ivyfile="${ivy.resolved.file}"
            pomfile="${target.dir}/pom.xml"/>
    
        <!-- Make the pom.properties file -->
        <echo file="${target.dir}/pom.properties">
    # Generated by Maven NOT!
    # ${build.date}
    version=${ivy.revision}
    groupId="${ivy.organisation}
    artifactId="${ivy.module}
        </echo>
    
    <!-- Build your JAR or whatever -->
    
        <jar destfile="${target.dir}/{ant.project.name}.jar"
             basedir="${main.destdir}">
             <manifest>
                  <section name="Build-Information">
                      <attribute name="Project" value="${env.JOB_NAME}"/>
                      <attribute name="Build-Number" value="${env.BUILD_NUMBER}"/>
                      <attribute name="Build-Date" value="${build.date}"/>
                  </section>
             </manifest>
             <zipfileset dir="${target.dir}"
                  prefix="$META-INF/maven/${ivy.organisation}/${ivy.module}">
                  <include name="pom.xml"/>
                  <include name="pom.properties"/>
             </zipfileset>
         </jar>
    </target>
    

    This helps make using Ivy pretty compatible with Maven.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to use ant script set readonly for each file in the
At our company, we use a base ant file that is included by everyone
We recently switched from Ant to Buildr for building our projects. We use Ivy
Use 'ant clean test' with the newest android sdk got error: build.xml:622: The following
We use Ant to create a database in our testing environment with the following
I am trying to revise my build process to use ant with apache ivy
I would like to use Ant with some of my PHP projects but I'm
I was looking at an Ant build.xml file this morning and noticed an XML
I am in the process of reviewing the use of Ivy in our application.
I'm trying to learn how to use ivy and would like to setup a

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.