views:

18

answers:

0

I've been experimenting with generating pom.xml files using ant and maven-ant-tasks. So far everything has been working splendidly, but I have a problem with the parent attribute.

artifact:pom doesn't support the nested "parent" element.

This was my attempt at using the parent attribute:

    <artifact:pom id="maven-pom-test-service" groupId="com.test.test" artifactId="test-service" version="1.0" name="test-service">
        <parent
            artifactId="test"
            groupId="com.test"
            version="1-SNAPSHOT"
        />

        <dependency
            groupId="com.test.test"
            artifactId="test-function"
            version="1.0-SNAPSHOT"
            type="jar"
            scope="compile"
        />
</artifact:pom>

Is there any way to modify the parent of the pom? I'm also using artifact:writepom to write the pom (not sure if that affects anything).

Thanks in advance for any help you can offer.