The whole scala project for udf is here:
Flink_SQL_Client_UDF Folder Scala
My opration to register the udf is like this:
①mvn scala:compile package