无法从源代码构建 Keycloak

时间:2021-03-22 22:32:00

标签: java maven keycloak

我正在尝试在我的 Ubuntu 机器上本地运行 Keycloak。我正在关注instructions here。我已经从 github 克隆了 Keycloak codebase 并运行了命令:

mvn clean install

前 10 分钟在终端中发生了很多活动,似乎一切都进行得很顺利,但现在它在以下行中卡住了一个多小时:

[INFO] --- maven-source-plugin:3.1.0:jar-no-fork (attach-sources) @ keycloak-themes ---

更广泛的上下文中的那条线在这里(底部):

[INFO] --------------------< org.keycloak:keycloak-themes >--------------------
[INFO] Building Keycloak Themes 13.0.0-SNAPSHOT                        [16/203]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ keycloak-themes ---
[INFO] Deleting /mnt/c/Users/defaultuser/dev/keycloak/themes/target
[INFO] Deleting /mnt/c/Users/defaultuser/dev/keycloak/themes/src/main/resources/theme/keycloak/common/resources/web_modules (includes = [], excludes = [])
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M2:enforce (enforce-java-version) @ keycloak-themes ---
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M2:enforce (enforce-maven-version) @ keycloak-themes ---
[INFO]
[INFO] --- buildnumber-maven-plugin:1.4:create (get-scm-revision) @ keycloak-themes ---
[INFO]
[INFO] --- frontend-maven-plugin:1.8.0:install-node-and-npm (setup-node) @ keycloak-themes ---
[INFO] Node v12.13.0 is already installed.
[INFO] NPM 6.9.0 is already installed.
[INFO]
[INFO] --- frontend-maven-plugin:1.8.0:npm (npm-install-account2) @ keycloak-themes ---
[INFO] Running 'npm ci --no-optional --ignore-scripts' in /mnt/c/Users/defaultuser/dev/keycloak/themes/src/main/resources/theme/keycloak.v2/account/src
[INFO] npm WARN prepare removing existing node_modules/ before installation
[INFO] added 1093 packages in 92.533s
[INFO]
[INFO] --- frontend-maven-plugin:1.8.0:npm (compile-account2) @ keycloak-themes ---
[INFO] Running 'npm run build --scripts-prepend-node-path' in /mnt/c/Users/defaultuser/dev/keycloak/themes/src/main/resources/theme/keycloak.v2/account/src
[INFO]
[INFO] > keycloak.v2@1.0.0 build /mnt/c/Users/defaultuser/dev/keycloak/themes/src/main/resources/theme/keycloak.v2/account/src
[INFO] > snowpack --optimize && npm run check-types && npm run babel && npm run move-web_modules && npm run copy-pf-resources
[INFO]
[INFO] - snowpack installing...
[INFO] A plugin is directly adding properties to the bundle object in the "generateBundle" hook. This is deprecated and will be removed in a future Rollup version, please use "this.emitFile" instead.
[INFO] ✔ snowpack installed: @patternfly/react-core, @patternfly/react-icons, @patternfly/react-styles, react, react-dom, react-router-dom. [85.56s]
[INFO]
[INFO] > keycloak.v2@1.0.0 check-types /mnt/c/Users/defaultuser/dev/keycloak/themes/src/main/resources/theme/keycloak.v2/account/src
[INFO] > tsc --noImplicitAny --strictNullChecks --jsx react -p ./
[INFO]
[INFO]
[INFO] > keycloak.v2@1.0.0 babel /mnt/c/Users/defaultuser/dev/keycloak/themes/src/main/resources/theme/keycloak.v2/account/src
[INFO] > babel --source-maps --extensions ".js,.ts,.tsx" app/ --out-dir ../resources/
[INFO]
[INFO] Successfully compiled 41 files with Babel.
[INFO]
[INFO] > keycloak.v2@1.0.0 move-web_modules /mnt/c/Users/defaultuser/dev/keycloak/themes/src/main/resources/theme/keycloak.v2/account/src
[INFO] > shx mv web_modules ../../../keycloak/common/resources
[INFO]
[INFO]
[INFO] > keycloak.v2@1.0.0 copy-pf-resources /mnt/c/Users/defaultuser/dev/keycloak/themes/src/main/resources/theme/keycloak.v2/account/src
[INFO] > npm run move-app-css && npm run copy-base-css && npm run copy-fonts && npm run copy-pficon
[INFO]
[INFO]
[INFO] > keycloak.v2@1.0.0 move-app-css /mnt/c/Users/defaultuser/dev/keycloak/themes/src/main/resources/theme/keycloak.v2/account/src
[INFO] > shx mkdir -p ../../../keycloak/common/resources/web_modules/@patternfly/react-core/dist/styles && shx mv app.css ../../../keycloak/common/resources/web_modules/@patternfly/react-core/dist/styles
[INFO]
[INFO]
[INFO] > keycloak.v2@1.0.0 copy-base-css /mnt/c/Users/defaultuser/dev/keycloak/themes/src/main/resources/theme/keycloak.v2/account/src
[INFO] > shx mkdir -p ../../../keycloak/common/resources/web_modules/@patternfly/react-core/dist/styles && shx cp node_modules/@patternfly/react-core/dist/styles/base.css ../../../keycloak/common/resources/web_modules/@patternfly/react-core/dist/styles
[INFO]
[INFO]
[INFO] > keycloak.v2@1.0.0 copy-fonts /mnt/c/Users/defaultuser/dev/keycloak/themes/src/main/resources/theme/keycloak.v2/account/src
[INFO] > shx mkdir -p ../../../keycloak/common/resources/web_modules/@patternfly/react-core/dist/styles/assets/fonts/overpass-webfont && shx cp node_modules/@patternfly/react-core/dist/styles/assets/fonts/overpass-webfont/overpass*.woff2 ../../../keycloak/common/resources/web_modules/@patternfly/react-core/dist/styles/assets/fonts/overpass-webfont
[INFO]
[INFO]
[INFO] > keycloak.v2@1.0.0 copy-pficon /mnt/c/Users/defaultuser/dev/keycloak/themes/src/main/resources/theme/keycloak.v2/account/src
[INFO] > shx mkdir -p ../../../keycloak/common/resources/web_modules/@patternfly/react-core/dist/styles/assets/pficon && shx cp node_modules/@patternfly/react-core/dist/styles/assets/pficon/pficon.woff2 ../../../keycloak/common/resources/web_modules/@patternfly/react-core/dist/styles/assets/pficon
[INFO]
[INFO]
[INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ keycloak-themes ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 857 resources
[INFO] Copying 107 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1-jboss-1:compile (default-compile) @ keycloak-themes ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:3.1.0:testResources (default-testResources) @ keycloak-themes ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /mnt/c/Users/defaultuser/dev/keycloak/themes/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1-jboss-1:testCompile (default-testCompile) @ keycloak-themes ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ keycloak-themes ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:3.1.2:jar (default-jar) @ keycloak-themes ---
[INFO] Building jar: /mnt/c/Users/defaultuser/dev/keycloak/themes/target/keycloak-themes-13.0.0-SNAPSHOT.jar
[INFO]
[INFO] --- maven-source-plugin:3.1.0:jar-no-fork (attach-sources) @ keycloak-themes ---

我已经取消并重新启动,但同样的事情又发生了。

有人可以帮助我了解出了什么问题吗?

0 个答案:

没有答案