RFR: 6945: Create build script for Windows
Marcus Hirt
hirt at openjdk.java.net
Fri Oct 30 23:28:52 UTC 2020
On Fri, 30 Oct 2020 23:24:37 GMT, Marcus Hirt <hirt at openjdk.org> wrote:
>> Build script for windows mimics behavior of the *nix one
>>
>> Special handling for Jetty server with killing it at the end of the action
>
> Hi JP!
>
> I get the following when just running the script on a newly cloned repo:
> C:\Users\Marcus\git\jmcreviews\jpbempel\jmc>build.bat --packageJmc
> 0:22:13,99 building p2:site - logging output to C:\Users\Marcus\git\jmcreviews\jpbempel\jmc\build_-1-3_ 02213.1.p2_site.log
> WARNING: An illegal reflective access operation has occurred
> WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass (file:/C:/Users/Marcus/.m2/repository/org/codehaus/groovy/groovy-all/2.4.8/groovy-all-2.4.8.jar) to method java.lang.Object.finalize()
> WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.CachedClass
> WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
> WARNING: All illegal access operations will be denied in a future release
> 0:22:24,91 run jetty - logging output to C:\Users\Marcus\git\jmcreviews\jpbempel\jmc\build_-1-3_ 02213.2.jetty.log
> Waiting for jetty server to start
>
> Waiting for 0 seconds, press a key to continue ...
> C:\Users\Marcus\git\jmcreviews\jpbempel\jmc\build_-1-3_:[INFO] Scanning for projects...
> C:\Users\Marcus\git\jmcreviews\jpbempel\jmc\build_-1-3_:[INFO]
> C:\Users\Marcus\git\jmcreviews\jpbempel\jmc\build_-1-3_:[INFO] ---------------< org.openjdk.jmc:external-dependencies >----------------
> C:\Users\Marcus\git\jmcreviews\jpbempel\jmc\build_-1-3_:[INFO] Building external-dependencies 8.0.0-SNAPSHOT
> C:\Users\Marcus\git\jmcreviews\jpbempel\jmc\build_-1-3_:[INFO] --------------------------------[ war ]---------------------------------
> C:\Users\Marcus\git\jmcreviews\jpbempel\jmc\build_-1-3_:[INFO] ------------------------------------------------------------------------
> C:\Users\Marcus\git\jmcreviews\jpbempel\jmc\build_-1-3_:[INFO] BUILD FAILURE
> C:\Users\Marcus\git\jmcreviews\jpbempel\jmc\build_-1-3_:[INFO] ------------------------------------------------------------------------
> C:\Users\Marcus\git\jmcreviews\jpbempel\jmc\build_-1-3_:[INFO] Total time: 0.183 s
> C:\Users\Marcus\git\jmcreviews\jpbempel\jmc\build_-1-3_:[INFO] Finished at: 2020-10-31T00:20:57+01:00
> C:\Users\Marcus\git\jmcreviews\jpbempel\jmc\build_-1-3_:[INFO] ------------------------------------------------------------------------
> C:\Users\Marcus\git\jmcreviews\jpbempel\jmc\build_-1-3_:[ERROR] Unknown lifecycle phase "02038.2.jetty.log". You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1]
> C:\Users\Marcus\git\jmcreviews\jpbempel\jmc\build_-1-3_:[ERROR]
> C:\Users\Marcus\git\jmcreviews\jpbempel\jmc\build_-1-3_:[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> C:\Users\Marcus\git\jmcreviews\jpbempel\jmc\build_-1-3_:[ERROR] Re-run Maven using the -X switch to enable full debug logging.
> C:\Users\Marcus\git\jmcreviews\jpbempel\jmc\build_-1-3_:[ERROR]
> C:\Users\Marcus\git\jmcreviews\jpbempel\jmc\build_-1-3_:[ERROR] For more information about the errors and possible solutions, please read the following articles:
> C:\Users\Marcus\git\jmcreviews\jpbempel\jmc\build_-1-3_:[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/LifecyclePhaseNotFoundException
> FINDSTR: Cannot open 02213.2.jetty.log
> 0:22:25,17 jetty server up and running
> 0:22:25,17 installing core artifacts - logging output to C:\Users\Marcus\git\jmcreviews\jpbempel\jmc\build_-1-3_ 02213.3.install.log
> installing core artifacts failed!
C:\Users\Marcus>more C:\Users\Marcus\git\jmcreviews\jpbempel\jmc\build_-1-3_ 02458.3.install.log
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------< org.openjdk.jmc:external-dependencies >----------------
[INFO] Building external-dependencies 8.0.0-SNAPSHOT
[INFO] --------------------------------[ war ]---------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.207 s
[INFO] Finished at: 2020-10-31T00:25:10+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Unknown lifecycle phase "02458.2.jetty.log". You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/LifecyclePhaseNotFoundException
Cannot access file C:\Users\Marcus\02458.3.install.log
-------------
PR: https://git.openjdk.java.net/jmc/pull/147
More information about the jmc-dev
mailing list