apache / apisix-java-plugin-runner

APISIX Plugin Runner in Java
https://apisix.apache.org/
Apache License 2.0
128 stars 95 forks source link

request help: can't create jar file #203

Closed Cheol-Soon-Choi closed 1 year ago

Cheol-Soon-Choi commented 1 year ago

Issue description

According to the reference document(https://github.com/apache/apisix-java-plugin-runner/blob/main/docs/en/latest/installation-guide.md), it is not possible to create an executable jar file.

my step is

  1. Clone the java-plugin-runner-demo-1 repo presented as an example(https://github.com/tzssangglass/java-plugin-runner-demo-1)
  2. After implementing the custom filter, run /mvnw package.
  3. (mac)no next step

@tzssangglass How can I create a spring jar file that implements a custom filter?

Environment

Cheol-Soon-Choi commented 1 year ago

@tzssangglass

mac log [INFO] ------------------------------------------------------- [INFO] T E S T S [INFO] ------------------------------------------------------- [INFO] Running com.example.demo.DemoApplicationTests

. _ _ /\ / '_ () \ \ \ \ ( ( )\ | ' | '| | ' \/ ` | \ \ \ \ \/ _)| |)| | | | | || (| | ) ) ) ) ' |__| .|| ||| |\, | / / / / =========|_|==============|__/=//// :: Spring Boot :: (v2.7.1)

2022-10-17 09:02:01.737 INFO 4311 --- [ main] c.e.d.DemoApplicationTests : Starting DemoApplicationTests using Java 11.0.11 on ccsqpt.local with PID 4311 (started by ccs in /Users/ccs/java-plugin-runner-demo-1) 2022-10-17 09:02:01.740 INFO 4311 --- [ main] c.e.d.DemoApplicationTests : No active profile set, falling back to 1 default profile: "default" 2022-10-17 09:02:02.922 INFO 4311 --- [ main] c.e.d.DemoApplicationTests : Started DemoApplicationTests in 1.745 seconds (JVM running for 3.738) 2022-10-17 09:02:03.479 WARN 4311 --- [ main] o.a.a.p.r.s.ApplicationRunner : java runner is listening on the socket file: /tmp/runner.sock

tzssangglass commented 1 year ago

I have update tzssangglass/java-plugin-runner-demo-1, pls read: https://github.com/tzssangglass/java-plugin-runner-demo-1#user-guide