Can not publish Kotlin class files to Tomcat server

Hi friends,

In the last post, I said that if I added the [/kotlin_bin] folder into the setting file [.settings/org.eclipse.wst.common.component], the Kotlin class files in the [/kotlin_bin] folder will be deployed into the Tomcat Server

But new problem happened.

The class files in the [/kotlin_bin] folder contain only the class and method declaration information, but the implementation code are not generated in these class files.

So, even these class files are deployed into the Tomcat Server, When I try to start the Tomcat Server, these incomplete class files will cause a java.lang.ClassFormatError with the following error message:

Absent Code attribute in method that is not native or abstract in class file xxxx/xxxx/xxxx

If I run a console app from my project, the kotlin plugin will compile source files and generate class files, then I can copy these class files to the Tomcat Server manually.
But this is very inconvenience because I have to do it over and over again in my development process.

How can I deploy the Kotlin class files of my Web application to the web app server automatically?

Can anyone help me? Thanks very much!