<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<style type="text/css">
<!--

/*
  The original subSilver Theme for phpBB version 2+
  Created by subBlue design
  http://www.subBlue.com

  NOTE: These CSS definitions are stored within the main page body so that you can use the phpBB2
  theme administration centre. When you have finalised your style you could cut the final CSS code
  and place it in an external file, deleting this section to save bandwidth.
*/


 /* General page style. The scroll bar colours only visible in IE5.5+ */
body {
        background-color: #E5E5E5;
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 11;
        color: #000000;
}

/* General font families for common tags */
font,th,td,p { font-family: Verdana, Arial, Helvetica, sans-serif }
p, td                { font-size : 11; color : #000000; }
a:link,a:active,a:visited { color : #006699; }
a:hover                { text-decoration: underline; color : #DD6900; }
hr        { height: 0px; border: solid #D1D7DC 0px; border-top-width: 1px;}
h1,h2                { font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; font-size : 22px; font-weight : bold; text-decoration : none; line-height : 120%; color : #000000;}


/* This is the border line & background colour round the entire page */
.bodyline        { background-color: #FFFFFF; border: 1px #98AAB1 solid; }


/* General text */
.gen { font-size : 12px; }
.genmed { font-size : 11px; }
.gensmall { font-size : 10px; line-height: 12px}
.gen,.genmed,.gensmall { color : #000000; }
a.gen,a.genmed,a.gensmall { color: #006699; text-decoration: none; }
a.gen:hover,a.genmed:hover,a.gensmall:hover        { color: #DD6900; text-decoration: underline; }


/* Forum title: Text and link to the forums used in: index.php */
.forumlink                { font-weight: bold; font-size: 12px; color : #006699; }
a.forumlink         { text-decoration: none; color : #006699; }
a.forumlink:hover{ text-decoration: underline; color : #DD6900; }


/* The content of the posts (body of text) */
.postbody { font-size : 12px; line-height: 18px}
a.postlink:link        { text-decoration: none; color : #006699 }
a.postlink:visited { text-decoration: none; color : #5493B4; }
a.postlink:hover { text-decoration: underline; color : #DD6900}


/* Quote & Code blocks */
.code {
        font-family: Courier, 'Courier New', sans-serif; font-size: 11px; color: #006600;
        background-color: #FAFAFA; border: #D1D7DC; border-style: solid;
        border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
}

.quote {
        font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #444444; line-height: 125%;
        background-color: #FAFAFA; border: #D1D7DC; border-style: solid;
        border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
}

-->
</style>
</head>
        <body>

        <div class="postbody">Hi,<br />
<br />
thank you for your answers, it's always good to have feedback !<br />
<br />
Unfortunatly, the solutions you both mentioned cannot help me because of the specific needs for my project (that I can't discuss on an open forum like this one).<br />
<br />
I found a solution that uses the maven-resources-plugin. In a few words, I moved my jbi.xml file from 'src/main/jbi' to 'scr/main/pre-jbi' and I configured maven to filter the files from 'src/main/pre-jbi' one to 'src/main/jbi' before the petals-maven-plugin is started.<br />
<br />
Here's my pom.xml<br />
</span><table width="90%" cellspacing="1" cellpadding="3" border="0" align="center"><tr>           <td><span class="genmed"><b>Code:</b></span></td>        </tr>        <tr>          <td class="code"><br />
&nbsp; &#40;...&#41;<br />
&nbsp; <!--<br />
&nbsp; &nbsp; &nbsp;- Properties &#40;may be override at runtime by <br />
&nbsp; &nbsp; &nbsp;-&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#40;passing -Dagr_name=arg_value paramters to the command line&#41;<br />
&nbsp; &nbsp; &nbsp;--><br />
&nbsp; <properties><br />
&nbsp; &nbsp; <node_id>126</node_id><br />
&nbsp; </properties><br />
<br />
<br />
&nbsp; <!--<br />
&nbsp; &nbsp; &nbsp;- Build<br />
&nbsp; &nbsp; &nbsp;--><br />
&nbsp; <build><br />
<br />
&nbsp; &nbsp; <pluginManagement><br />
&nbsp; &nbsp; &nbsp; <plugins><br />
&nbsp; &nbsp; &nbsp; &nbsp; <groupId>org.apache.maven.plugins</groupId><br />
&nbsp; &nbsp; &nbsp; &nbsp; <artefactId>maven-resources-plugin</artefactId><br />
&nbsp; &nbsp; &nbsp; &nbsp; <version>2.3</version><br />
&nbsp; &nbsp; &nbsp; </plugins><br />
&nbsp; &nbsp; </pluginManagement><br />
<br />
&nbsp; &nbsp; <plugins><br />
&nbsp; &nbsp; &nbsp; &nbsp; <!--<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;- JBI pre-processing<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;- Used to pre-process the jbi.xml in 'src/main/pre-jbi' so that <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;- the $&#123;node_id&#125; can be set in the endpoint name. <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--><br />
&nbsp; &nbsp; &nbsp; <plugin><br />
&nbsp; &nbsp; &nbsp; &nbsp; <groupId>org.apache.maven.plugins</groupId><br />
&nbsp; &nbsp; &nbsp; &nbsp; <artifactId>maven-resources-plugin</artifactId><br />
&nbsp; &nbsp; &nbsp; &nbsp; <version>2.3</version><br />
&nbsp; &nbsp; &nbsp; &nbsp; <executions><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <execution><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <id>copy-resources</id><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <phase>validate</phase><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <goals><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <goal>copy-resources</goal><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </goals><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <configuration><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <outputDirectory>$&#123;basedir&#125;/src/main/jbi</outputDirectory><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <resources><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <resource><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <directory>src/main/pre-jbi</directory><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <includes><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <include>**/*</include><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </includes><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <filtering>true</filtering><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </resource><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </resources><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </configuration><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </execution><br />
&nbsp; &nbsp; &nbsp; &nbsp; </executions><br />
&nbsp; &nbsp; &nbsp; </plugin><br />
<br />
&nbsp; &nbsp; &nbsp; <!-- to make sure all the src/main.jbi is cleaned --><br />
&nbsp; &nbsp; &nbsp; <plugin><br />
&nbsp; &nbsp; &nbsp; &nbsp; <artifactId>maven-clean-plugin</artifactId><br />
&nbsp; &nbsp; &nbsp; &nbsp; <configuration><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <filesets><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <fileset><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <directory>src\main\jbi</directory><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <includes><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <include>**/*</include><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </includes>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </fileset><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </filesets><br />
&nbsp; &nbsp; &nbsp; &nbsp; </configuration><br />
&nbsp; &nbsp; &nbsp; </plugin><br />
<br />
&nbsp; &nbsp; &nbsp; <plugin><br />
&nbsp; &nbsp; &nbsp; &nbsp; <groupId>org.ow2.petals</groupId><br />
&nbsp; &nbsp; &nbsp; &nbsp; <artifactId>maven-petals-plugin</artifactId><br />
&nbsp; &nbsp; &nbsp; &nbsp; <version>1.4</version><br />
&nbsp; &nbsp; &nbsp; &nbsp; <extensions>true</extensions><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <configuration><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <verbose>true</verbose><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <host>localhost</host><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <port>7700</port><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <username>petals</username><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <password>petals</password><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <protocol>file</protocol><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </configuration><br />
&nbsp; &nbsp; &nbsp; </plugin><br />
<br />
&nbsp; </build><br />
&nbsp; &#40;...&#41;<br />
</td>        </tr></table><span class="postbody"><br />
<br />
And in my my 'src/main/pre-jbi/jbi.xml', I changed the endpoint name to 'myEndPointName_${node_id}'.<br />
<br />
<br />
Cheers,<br />
<br />
Vincent</div>
        <br /><div class="gensmall"><br />
<br />
<br />
-------------------- m2f --------------------<br />
<br />
Read this forum topic online here:<br />
<a href="http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=654#654" target="_blank">http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=654#654</a><br />
<br />
-------------------- m2f --------------------</div>
        </body>
</html>