Uploaded image for project: 'PUBLIC - Liferay IDE'
  1. PUBLIC - Liferay IDE
  2. IDE-1912

Liferay IDE deployment differs from mvn WAR - missing POM property



      When I drag-and-drop my portlet project onto the Liferay EE server in the servers view, the exploded webapp that is copied into the Liferay webapps directory is different than the generated WAR file from a clean maven build.

      I have configured resource filtering in the build configuration in my POM:

      ...and I set this property in the global POM properties:

      In src/main/resources, I have a properties file called internal.properties:

      When I do "mvn clean install", maven correctly filters the property file. In the target/WEB-INF/classes directory (and in the zipped-up war file) I see that "internal.properties" has the correct values:

      BUT if I drag-and-drop the Eclipse project onto the Liferay EE server in the Servers View, the property file is not interpolated. I check the EE server's tomcat/webapps directory and I see that the property file is there, but the contents differ:

      The Liferay IDE filtered the ${version} substitution but not my custom property from the POM.

      I tried deleting the app from the EE server (verifying that it was removed from webapps) but this did not resolve my issue.

      P.S. In my test, I hard-coded the property value in the project's POM, but in reality I want to use a property generated by the buildnumber-maven-plugin during the 'initialize' maven lifecycle phase. I cut this other plugin out of my config in order to eliminate it as a source of problems before reporting the issue.




            • Votes:
              0 Vote for this issue
              0 Start watching this issue


              • Created:
                Days since last comment:
                5 years, 21 weeks ago


                Version Package