# Probleme ansible with build Jenkins

**URL:** <https://forum.ansible.com/t/probleme-ansible-with-build-jenkins/31672>\
**Category:** Ansible Project\
**Created:** [November 18, 2019, 10:50am UTC](https://forum.ansible.com/t/probleme-ansible-with-build-jenkins/31672 "2019-11-18T10:50:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karther](https://avatars.discourse-cdn.com/v4/letter/k/3ec8ea/32.png) [@Karther](https://forum.ansible.com/u/Karther)\
**Post date:** [November 18, 2019, 10:50am UTC](https://forum.ansible.com/t/probleme-ansible-with-build-jenkins/31672/1 "2019-11-18T10:50:54Z")

</div>

Hey,

I know it’s a little bit gold but i have maven with component war with this file pom :

```auto
http://maven.apache.org/xsd/maven-4.0.0.xsd">  
  <modelVersion>4.0.0</modelVersion>  
  <groupId>workflow</groupId>  
  <artifactId>Portal</artifactId>  
  <version>${version-prod}</version>
  <packaging>war</packaging>  
  <name>Portal</name>

```

```auto

```

```auto
And on my file pom.xml , i want get my war with this content :

```

```auto

```

```auto
<properties>
        <project.version>2019</project.version>

```

```auto
</properties>

```

```auto

```

```auto
<dependencies>
        <dependency>
            <groupId>workflow</groupId>
            <artifactId>Portal</artifactId>
            <version>${project.version}</version>
            <type>war</type>
        </dependency>
    </dependencies>

```

```auto

```

```auto
And when i build in Jenkins not works but when in my pom of my war there is <version>2019</version> this works.

```

```auto
I want that this works with <version>${version-prod}</version>

```

```auto

```

```auto
Someone have any idea please community ansible ???

```

```auto

```

```auto
Thank you very much !! :)

```

```auto

```

```auto
Regards

```

```auto

```

```auto

```

```auto
Karther

```

```auto

```

---

<div class="post-metadata">

**Author:** ![racke](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/racke/32/4767_2.png) [@racke](https://forum.ansible.com/u/racke)\
**Post date:** [November 18, 2019, 1:20pm UTC](https://forum.ansible.com/t/probleme-ansible-with-build-jenkins/31672/2 "2019-11-18T13:20:36Z")

</div>

> Hey,
> 
> I know it's a little bit gold but i have maven with component war with this file pom :
> 
> [http://maven.apache.org/xsd/maven-4.0.0.xsd&quot;&gt](http://maven.apache.org/xsd/maven-4.0.0.xsd&quot;&gt);  
> &nbsp;&nbsp;\<modelVersion\>4.0.0\</modelVersion\>  
> &nbsp;&nbsp;\<groupId\>workflow\</groupId\>  
> &nbsp;&nbsp;\<artifactId\>Portal\</artifactId\>  
> &nbsp;&nbsp;\<version\>${version-prod}\</version\>  
> &nbsp;&nbsp;\<packaging\>war\</packaging\>  
> &nbsp;&nbsp;\<name\>Portal\</name\>
> 
> And on my file pom.xml , i want get my war with this content :
> 
> \<properties\> \<project.version\>2019\</project.version\>
> 
> \</properties\>
> 
> \<dependencies\> \<dependency\> \<groupId\>workflow\</groupId\> \<artifactId\>Portal\</artifactId\>  
> \<version\>${project.version}\</version\> \<type\>war\</type\> \</dependency\> \</dependencies\>
> 
> And when i build in Jenkins not works but when in my pom of my war there is \<version\>2019\</version\> this works.
> 
> I want that this works with \<version\>${version-prod}\</version\>
> 
> Someone have any idea please community ansible ???

Hello Karther,

I don't see any relationship of your problem to Ansible. Post your playbook please.

Regards  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Racke
