parameterization of maven with persistence.xml is not work for hibernate search

36 views Asked by At

I have set up a profile in maven, for example

    <profile>
      <id>dev</id>
      <properties>
        <hibernate.search>//devserver/srchIndexes/</hibernate.search>
      </properties>
    </profile>

in the persistence.xml, I have specified...

property name="hibernate.search.default.indexBase" value="${hibernate.Search}" />

I just want to pass the server/folder location based on DEV/QA/Prod.

However when deploy the war to tomcat, the hibernate search folder is created in the tomcat Folder as ${hibernate.Search}. Passing the value from maven to xml does not work.

I am using this command to to build the project.

mvn -Pdev install -DskipTests=true
0

There are 0 answers