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?
We use Ant with Ivy and I’d like to embed in our created jars
Share
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.xmlfile only contains thegroupId,artifactIdand theversion, so it’s not that tough to generate.Here’s what I did:
This helps make using Ivy pretty compatible with Maven.