You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Wouter van Reeven (JIRA)" <ji...@apache.org> on 2015/10/16 18:50:05 UTC

[jira] [Commented] (IVY-1536) How to make sure dependencies are added to a pom.xml file with the makepom target

    [ https://issues.apache.org/jira/browse/IVY-1536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14960996#comment-14960996 ] 

Wouter van Reeven commented on IVY-1536:
----------------------------------------

The contents of the template:

${ivy.pom.license}
${ivy.pom.header}
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

    <modelVersion>4.0.0</modelVersion>
    <groupId>${ivy.pom.groupId}</groupId>
    <artifactId>${ivy.pom.artifactId}</artifactId>
    <packaging>${ivy.pom.packaging}</packaging>
    <version>${ivy.pom.version}</version>
    <name>${ivy.pom.name}</name>
    <description>${ivy.pom.description}</description>
    <url>${ivy.pom.url}</url>
</project>


> How to make sure dependencies are added to a pom.xml file with the makepom target
> ---------------------------------------------------------------------------------
>
>                 Key: IVY-1536
>                 URL: https://issues.apache.org/jira/browse/IVY-1536
>             Project: Ivy
>          Issue Type: Question
>          Components: Documentation
>    Affects Versions: 2.4.0
>         Environment: Java 8, MacOSX
>            Reporter: Wouter van Reeven
>
> When I call the makepom target without the templateFile parameter, the dependencies declared in ivy.xml get added to the pom.xml file. However, as soon as I start using a template, they no longer get added. I read that the dependencies in the ivy.xml file automatically get added if no dependencies element is present, or they get added to an existing dependencies element in the template. But neither seems to work. I'll add my template to this issue. 
> Can you please help me to get this working? Many thanks in advance.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)