adamw7 / tools

code generation and data oriented tools
MIT License
5 stars 1 forks source link

Fix code generation test on unix #34

Closed adamw7 closed 1 year ago

adamw7 commented 1 year ago

GeneretedCodeTest

adamw7 commented 1 year ago

2023-06-22T12:20:43.8634738Z [INFO] ------------< io.github.adamw7:protogen-maven-plugin-test >------------- 2023-06-22T12:20:43.8639732Z [INFO] Building protogen-maven-plugin-test 0.5 [5/5] 2023-06-22T12:20:43.8643072Z [INFO] from code/protogen-maven-plugin-test/pom.xml 2023-06-22T12:20:43.8645073Z [INFO] --------------------------------[ jar ]--------------------------------- 2023-06-22T12:20:43.8754224Z [INFO] 2023-06-22T12:20:43.8756903Z [INFO] --- protoc-jar-maven-plugin:3.11.4:run (default) @ protogen-maven-plugin-test --- 2023-06-22T12:20:43.8774161Z [INFO] Protoc version: 3.11.4 2023-06-22T12:20:43.8779946Z protoc-jar: protoc version: 3.11.4, detected platform: linux-x86_64 (linux/amd64) 2023-06-22T12:20:43.9092663Z protoc-jar: embedded: bin/3.11.4/protoc-3.11.4-linux-x86_64.exe 2023-06-22T12:20:43.9095459Z protoc-jar: executing: [/tmp/protocjar2728517305557633201/bin/protoc.exe, --version] 2023-06-22T12:20:43.9133121Z libprotoc 3.11.4 2023-06-22T12:20:43.9179742Z [INFO] Protoc command: /tmp/protocjar2728517305557633201/bin/protoc.exe 2023-06-22T12:20:43.9180346Z [INFO] Input directories: 2023-06-22T12:20:43.9181779Z [INFO] /home/runner/work/tools/tools/code/protogen-maven-plugin-test/src/main/proto 2023-06-22T12:20:43.9182305Z [INFO] Output targets: 2023-06-22T12:20:43.9184218Z [INFO] java: /home/runner/work/tools/tools/code/protogen-maven-plugin-test/target/generated-sources/java (add: main, clean: false, plugin: null, outputOptions: null) 2023-06-22T12:20:43.9185159Z [INFO] /home/runner/work/tools/tools/code/protogen-maven-plugin-test/target/generated-sources/java does not exist. Creating... 2023-06-22T12:20:43.9186148Z [WARNING] /home/runner/work/tools/tools/code/protogen-maven-plugin-test/src/main/proto does not exist 2023-06-22T12:20:43.9186972Z [INFO] Adding generated sources (java): /home/runner/work/tools/tools/code/protogen-maven-plugin-test/target/generated-sources/java 2023-06-22T12:20:43.9187702Z [INFO] 2023-06-22T12:20:43.9188346Z [INFO] --- maven-resources-plugin:3.3.1:resources (default-resources) @ protogen-maven-plugin-test --- 2023-06-22T12:20:43.9189363Z [INFO] skip non existing resourceDirectory /home/runner/work/tools/tools/code/protogen-maven-plugin-test/src/main/resources 2023-06-22T12:20:43.9189926Z [INFO] 2023-06-22T12:20:43.9190706Z [INFO] --- maven-compiler-plugin:3.11.0:compile (default-compile) @ protogen-maven-plugin-test --- 2023-06-22T12:20:43.9204270Z [INFO] Nothing to compile - all classes are up to date 2023-06-22T12:20:43.9206853Z [INFO] 2023-06-22T12:20:43.9209000Z [INFO] --- protogen-maven-plugin:0.5:code-generator (default) @ protogen-maven-plugin-test --- 2023-06-22T12:20:44.3651303Z [INFO] Reflections took 5 ms to scan 0 urls, producing 0 keys and 0 values 2023-06-22T12:20:44.3740509Z [INFO] 2023-06-22T12:20:44.3743161Z [INFO] --- build-helper-maven-plugin:3.4.0:add-test-source (add-test-source) @ protogen-maven-plugin-test --- 2023-06-22T12:20:44.3994435Z [INFO] Test Source directory: /home/runner/work/tools/tools/code/protogen-maven-plugin-test/target/generated-test-sources/java added. 2023-06-22T12:20:44.3997837Z [INFO] 2023-06-22T12:20:44.4000066Z [INFO] --- maven-resources-plugin:3.3.1:testResources (default-testResources) @ protogen-maven-plugin-test --- 2023-06-22T12:20:44.4016970Z [INFO] skip non existing resourceDirectory /home/runner/work/tools/tools/code/protogen-maven-plugin-test/src/test/resources 2023-06-22T12:20:44.4020156Z [INFO] 2023-06-22T12:20:44.4022317Z [INFO] --- maven-compiler-plugin:3.11.0:testCompile (default-testCompile) @ protogen-maven-plugin-test --- 2023-06-22T12:20:44.4060964Z [INFO] Changes detected - recompiling the module! :source 2023-06-22T12:20:44.4065230Z [INFO] Compiling 2 source files with javac [debug target 20] to target/test-classes 2023-06-22T12:20:44.4758442Z [INFO] ------------------------------------------------------------- 2023-06-22T12:20:44.4759190Z [ERROR] COMPILATION ERROR : 2023-06-22T12:20:44.4759999Z [INFO] ------------------------------------------------------------- 2023-06-22T12:20:44.4760869Z [ERROR] /home/runner/work/tools/tools/code/protogen-maven-plugin-test/src/test/java/io/github/adamw7/tools/code/usecase/GeneretedCodeTest.java:[5,35] cannot find symbol 2023-06-22T12:20:44.4762259Z symbol: class ComputerBuilder 2023-06-22T12:20:44.4762730Z location: package io.github.adamw7.tools.code 2023-06-22T12:20:44.4763839Z [ERROR] /home/runner/work/tools/tools/code/protogen-maven-plugin-test/src/test/java/io/github/adamw7/tools/code/usecase/GeneretedCodeTest.java:[6,40] package io.github.adamw7.tools.code.test does not exist 2023-06-22T12:20:44.4764484Z [INFO] 2 errors 2023-06-22T12:20:44.4765201Z [INFO] ------------------------------------------------------------- 2023-06-22T12:20:44.4765860Z [INFO] ------------------------------------------------------------------------ 2023-06-22T12:20:44.4766552Z [INFO] Reactor Summary for Tools root pom 0.5: 2023-06-22T12:20:44.4766952Z [INFO] 2023-06-22T12:20:44.4767539Z [INFO] Tools root pom ..................................... SUCCESS [ 0.002 s] 2023-06-22T12:20:44.4768023Z [INFO] Tooling for data ................................... SUCCESS [ 7.482 s] 2023-06-22T12:20:44.4768695Z [INFO] Tooling for code ................................... SUCCESS [ 0.001 s] 2023-06-22T12:20:44.4769287Z [INFO] protogen-maven-plugin .............................. SUCCESS [ 6.602 s] 2023-06-22T12:20:44.4770113Z [INFO] protogen-maven-plugin-test ......................... FAILURE [ 0.614 s] 2023-06-22T12:20:44.4770766Z [INFO] ------------------------------------------------------------------------ 2023-06-22T12:20:44.4784173Z [INFO] BUILD FAILURE 2023-06-22T12:20:44.4785033Z [INFO] ------------------------------------------------------------------------ 2023-06-22T12:20:44.4785733Z [INFO] Total time: 14.823 s 2023-06-22T12:20:44.4786231Z [INFO] Finished at: 2023-06-22T12:20:44Z 2023-06-22T12:20:44.4786999Z [INFO] ------------------------------------------------------------------------ 2023-06-22T12:20:44.4788054Z [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:testCompile (default-testCompile) on project protogen-maven-plugin-test: Compilation failure: Compilation failure: 2023-06-22T12:20:44.4789308Z [ERROR] /home/runner/work/tools/tools/code/protogen-maven-plugin-test/src/test/java/io/github/adamw7/tools/code/usecase/GeneretedCodeTest.java:[5,35] cannot find symbol 2023-06-22T12:20:44.4789962Z [ERROR] symbol: class ComputerBuilder 2023-06-22T12:20:44.4790630Z [ERROR] location: package io.github.adamw7.tools.code 2023-06-22T12:20:44.4791546Z [ERROR] /home/runner/work/tools/tools/code/protogen-maven-plugin-test/src/test/java/io/github/adamw7/tools/code/usecase/GeneretedCodeTest.java:[6,40] package io.github.adamw7.tools.code.test does not exist 2023-06-22T12:20:44.4792412Z [ERROR] -> [Help 1] 2023-06-22T12:20:44.4792767Z [ERROR] 2023-06-22T12:20:44.4793496Z [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 2023-06-22T12:20:44.4794107Z [ERROR] Re-run Maven using the -X switch to enable full debug logging. 2023-06-22T12:20:44.4794734Z [ERROR] 2023-06-22T12:20:44.4795220Z [ERROR] For more information about the errors and possible solutions, please read the following articles: 2023-06-22T12:20:44.4796038Z [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException 2023-06-22T12:20:44.4796508Z [ERROR] 2023-06-22T12:20:44.4797124Z [ERROR] After correcting the problems, you can resume the build with the command 2023-06-22T12:20:44.4797704Z [ERROR] mvn -rf :protogen-maven-plugin-test 2023-06-22T12:20:44.5152508Z ##[error]Process completed with exit code 1.