Give this item a 24 hour so everybody can reply on that.

On 6/6/07, Karan Malhi <[EMAIL PROTECTED]> wrote:

The maven assembly plugin 2.2-beta-1 does not filter copied files. We
would need to revert back to version 2.1. Also, version 2.1 does not
filter filesets, so we would need to convert all <fileSet> elements to
<files> element. The reason  filtering is required is because in the
snapshot zip of openejb-standalone, the openejb.bat has a reference to
${pom.version} and this reference is not resolved to the version of
the current pom since filtering is broken.

I am a new user to maven, but have been able to spend some time to
figure out this problem. there are also a couple of JIRA's on the
maven assembly plugin module.

Below is a section of my bin.xml , (this works). I have added
src/main/resources/openejb.conf for the beans and logs directory also,
just because i needed a file, but this is not the final bin.xml.

Should we revert back to 2.1 and the structure below? Are there any
issues in working with 2.1 till this issue in 2.2 is fixed?
  <files>

      <file>
      <source>src/main/resources/openejb.bat</source>
      <outputDirectory>bin/</outputDirectory>
      <lineEnding>dos</lineEnding>
      <fileMode>0755</fileMode>
      <filtered>true</filtered>
      </file>
      <file>
      <source>src/main/resources/openejb</source>
      <outputDirectory>bin/</outputDirectory>
      <lineEnding>unix</lineEnding>
      <fileMode>0755</fileMode>
      <filtered>true</filtered>
    </file>
    <file>
      <source>src/main/resources/openejb.conf</source>
      <outputDirectory>conf/</outputDirectory>
    </file>
    <file>
      <source>src/main/resources/openejb.conf</source>
      <outputDirectory>logs/</outputDirectory>
    </file>
    <file>
      <source>src/main/resources/openejb.conf</source>
      <outputDirectory>beans/</outputDirectory>
    </file>
    </files>

If we do want version 2.2, then we could add a ANT copy plugin and
could use ant filters instead. Basically ant could copy the files in a
temporary folder after applying the filter and maven could pick up the
filtered files and bundle them in the assembly
--
Karan Malhi




--
Thanks
- Mohammad Nour

Reply via email to