<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><span class="gmail-">
&gt;&gt;<br>
&gt;&gt; It looks like the Feature Pack plugin is expecting the module.xml<br>
&gt;&gt; files to be statically committed into the same directory structure as<br>
&gt;&gt; were they need to end up, but since the slot id needs to be part of<br>
&gt;&gt; such path, looks like I can&#39;t use it? Should I pre-process the module<br>
&gt;&gt; resources with the assembly plugin?<br>
&gt;<br>
&gt;<br>
&gt; Yes, at the moment there is no way to handle this. In general in WF we just<br>
&gt; use the slot main, and we don&#39;t vary any part of a module name based on a<br>
&gt; build parameter.<br>
<br>
</span>Right, I&#39;m aware that WildFly uses &quot;main&quot; consistently, but since I&#39;m<br>
having the impression these tools have a wider scope, I guess such<br>
features might be introduced?<br>
<br>
If I were able to package all the Hibernate libraries and our<br>
dependencies into feature packs that should also simplify and speedup<br>
the build of WildFly itself, but I need the slots too for the above<br>
reasons.<br>
<br>
For the record, the slots system - and the aliases as well - have been<br>
extremely useful for many of our other projects, so thanks again for<br>
that.<br>
<span class="gmail-"><br></span></blockquote><div><br></div><div>There is nothing stopping you from using slots, its just that at the moment there is no support for the slot name to be dynamic.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><span class="gmail-">
&gt;&gt;<br>
&gt;&gt; I was hoping for the feature-pack-build.xml to have a way to define<br>
&gt;&gt; modules by giving it an identifier (possibly having parameters), point<br>
&gt;&gt; them to a template xml (optionally filtered), and not having to deal<br>
&gt;&gt; with the copy-to paths explicitly. It seems odd to have to copy the<br>
&gt;&gt; jar files and other resources into a matching structure, maybe this<br>
&gt;&gt; could be automated by the plugin?<br>
&gt;<br>
&gt;<br>
&gt; You don&#39;t have to copy the jar files, the plugin does it automatically. They<br>
&gt; are laid out the way they are at the moment because it just seemed to be the<br>
&gt; simplest way to do it at the time. We did not need another layer of<br>
&gt; indirection as generally each module has its own unique module.xml so if we<br>
&gt; used a templating approach each template would be unique anyway.<br>
<br>
</span>I&#39;m quite confused on how that&#39;s working, where it&#39;s inferring the<br>
details from; I guess I&#39;ll experiment a bit more but I&#39;m not<br>
understanding how the tool would know which jars I mean to include in<br>
each module.<br></blockquote><div><br></div><div>It traverses the modules directory, and looks at each module.xml. Each module lists its resource as a maven group and artifact property, somthing like:</div><div><div><br></div><div>        &lt;artifact name=&quot;${org.hibernate:hibernate-core}&quot;/&gt;</div></div><div><br></div><div>When it assembles the feature pack it looks for the version of hibernate core that is declared in the pom, and inserts that version into the feature pack. At provisioning time it will either:</div><div><br></div><div>- Replace the name with the actual GAV if this is a &#39;thin&#39; server</div><div>- Replace the artifact tag with a &lt;resource&gt; tag and copy the relevant jar into the directory if it is a fat server</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<span class="gmail-"><br>
&gt;&gt; Or perhaps I should look at the whole &quot;feature pack&quot; way of doing<br>
&gt;&gt; things in a different way; are we supposed to only ever use the &quot;main&quot;<br>
&gt;&gt; slot in a feature pack, and allow the consumer to override/filter such<br>
&gt;&gt; ids at provisioning time?<br></span></blockquote><div><br></div><div>The slot should not matter, there is nothing really special about the main slot from the point of view of the plugin.</div><div><br></div><div>Stuart</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><span class="gmail-">
&gt;<br>
&gt;<br>
&gt; You can use whatever slots you want, but at the moment the assumption is<br>
&gt; that you will know what those slots are in advance.<br>
<br>
</span>Sounds great, I&#39;ll go on digging a bit deeper :) Is there some guide<br>
beyond the README? All I know is based on the readme and the usage I<br>
found in the wildfly/wildfly repository, but that&#39;s way more complex<br>
than what I&#39;m trying to build.<br>
<br>
Thanks!<br>
<span class="gmail-HOEnZb"><font color="#888888">Sanne<br>
</font></span><div class="gmail-HOEnZb"><div class="gmail-h5"><br>
&gt;<br>
&gt; Stuart<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Thanks,<br>
&gt;&gt; Sanne<br>
&gt;&gt; ______________________________<wbr>_________________<br>
&gt;&gt; wildfly-dev mailing list<br>
&gt;&gt; <a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a><br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/wildfly-dev</a><br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br></div></div>