The platform is shipped with the cuba.license
free license file, available in the root of the
classpath. The cuba.licensePath application property points to it
by default.
If you have purchased a commercial license, you can use it in the application by one of the following ways.
-
If you are going to use the application within one organization, or you have an embedded license, include the license file into your application distribution. Add the license file into the core module source code folder. The file name or path should be different from
/cuba.license
:modules/core/src/ myapp-cuba.license app.properties
Configure the
cuba.licensePath
application property in theapp.properties
file of the core module:cuba.licensePath = /myapp-cuba.license
-
If you are going to use the application in different organizations, you have to obtain a separate file for each of them. In this case you can place the license files into configuration directories of the installed applications:
tomcat/conf/app-core/ myapp-cuba.license local.app.properties
Set the
cuba.licensePath
application property in thelocal.app.properties
file:cuba.licensePath = /myapp-cuba.license