Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Icon missing when packaging for production and deploying on standalone container as tomcat #763

Open
Klaudeta opened this issue Mar 27, 2019 · 1 comment

Comments

@Klaudeta
Copy link

When application is packaged for production as a war and deployed on tomcat, the icon can not be found and app is showing a different one as in the pictures
Screenshot 2019-03-27 at 11 42 33
Screenshot 2019-03-27 at 22 30 00

@Klaudeta
Copy link
Author

When packaged as a war, Flow is searching for the icon as if it is located in the root directory of the app. A fix for the issue is to have the maven-war-plugin copy the content of META-INF/resource in the root directory of the app while being packaged as war.

<webResources>
 <resource>
   <directory>src/main/resources/META-INF/resources</directory>
   <targetPath>.</targetPath>
   <filtering>true</filtering>
</resource>
</webResources>

Adding this inside configuration of the maven-war-plugin of the production profile fixes the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant