how to depoly Vaadin chart app to heroku

I am trying to deploy my Vaadin chart app to Heroku. I can locally build and run it by IDE and all works fine.

I have free developer license saved into my home directory. When I tried to deploy it to Heroku by Heroku cli. It tried to build a maven project. Then it fails with the error as:-

[ERROR]
License for Vaadin Charts 4 not found. Go to vaadin.com/pro for more details.

I follow doc as:- https://vaadin.com/docs/v8/framework/addons/addons-cval.html.

mvn -Dvaadin…developer.license=L1cen5e-c0de package. If I try it, it gives error as:- [ERROR]
Unknown lifecycle phase ".vaadin.charts.developer.license=xxMY_KEYxxxx

I tried also this:- https://github.com/vaadin/maven-plugin/issues/49

So how to deploy or add license info for Vaadin chart app while deploying to Heroku?

Make sure you don’t have any extra dots or similar in your commandline - yours looks a bit broken.
mvn -Dvaadin.vaadin.charts.developer.license=xxxx-xxx-xxx-xxxx-xxxxx package
works here.

Better approach is to use the license file. Note that the JVM checks in the home directory of the executing user. Assuming Heroku has a dedicated account you need to put the license there.

I managed to succfully run the mvn command by placing ’ ’ as this:

mvn ‘-Dvaadin.charts.developer.license=L1cen5e-c0de’ package

But still, this did not help the deployment to Heroku. Heroku is still failing as [ERROR]
License for Vaadin Charts 4 not found. Go to vaadin.com/pro for more details.

So I have to send the license file to the Heroku home directory. I don’t know how to transfer license file to the Heroku home directory. Hopefully, somebody could tell how to do it? It will be really helpful. Thanks in advance!