0 Replies Latest reply on Feb 7, 2018 12:06 PM by Tom Stiemerling

    How to set properties in persistence.xml?

    Tom Stiemerling Newbie

      I want to add a reference to a maven property in my persistence.xml:

       

      <jar-file>lib/something-${project.version}.jar</jar-file>

       

      The property can be set in the maven build using a maven resource filter in the pom.xml.

      But, when building the Arquillian test war I am not sure how this can be easily achieved,

      unless in a very painful manual way by doing a string replace on the file before

      adding it as a resource.

       

      Does anyone have any better solutions?