Graylog2 / graylog-project

Packaging/development helper for Graylog
22 stars 24 forks source link

mvn compile fails out of the box #19

Closed jsmucr closed 3 years ago

jsmucr commented 4 years ago

I'm trying to create a new output plugin and I followed the README to prepare the whole setup. However the path ends here: https://github.com/Graylog2/graylog-project#initial-build

More specifically:

C:\user\App\Java\jdk8\bin\java.exe -Dmaven.multiModuleProjectDirectory=C:\user\git\graylog-project "-Dmaven.home=C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.1.2\plugins\maven\lib\maven3" "-Dclassworlds.conf=C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.1.2\plugins\maven\lib\maven3\bin\m2.conf" "-Dmaven.ext.class.path=C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.1.2\plugins\maven\lib\maven-event-listener.jar" "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.1.2\lib\idea_rt.jar=1375:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.1.2\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.1.2\plugins\maven\lib\maven3\boot\plexus-classworlds-2.6.0.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.1.2\plugins\maven\lib\maven3\boot\plexus-classworlds.license" org.codehaus.classworlds.Launcher -Didea.version=2020.2.2 compile
[INFO] Scanning for projects...
[WARNING] The project org.graylog.plugins:graylog-plugin-collector:jar:4.0.0-SNAPSHOT uses prerequisites which is only intended for maven-plugin projects but not for non maven-plugin projects. For such purposes you should use the maven-enforcer-plugin. See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html
[WARNING] The project org.graylog.plugins:graylog-plugin-aws:jar:4.0.0-SNAPSHOT uses prerequisites which is only intended for maven-plugin projects but not for non maven-plugin projects. For such purposes you should use the maven-enforcer-plugin. See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html
[WARNING] The project org.graylog.plugins:graylog-plugin-threatintel:jar:4.0.0-SNAPSHOT uses prerequisites which is only intended for maven-plugin projects but not for non maven-plugin projects. For such purposes you should use the maven-enforcer-plugin. See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] Graylog Parent POM                                                 [pom]
[INFO] Graylog Project Parent POM                                         [pom]
[INFO] Graylog                                                            [jar]
[INFO] Graylog Plugin Parent POM                                          [pom]
[INFO] graylog-storage-elasticsearch6                                     [jar]
[INFO] graylog-storage-elasticsearch7                                     [jar]
[INFO] Graylog Binary Distribution Tarball                                [jar]
[INFO] Graylog Plugin with Web support Parent POM                         [pom]
[INFO] graylog-plugin-collector                                           [jar]
[INFO] graylog-plugin-aws                                                 [jar]
[INFO] graylog-plugin-threatintel                                         [jar]
[INFO] graylog-plugin-integrations                                        [jar]
[INFO] graylog-project                                                    [pom]
[INFO] runner                                                             [jar]
[INFO] full-backend-tests                                                 [pom]
[INFO] graylog-plugin-archetype                               [maven-archetype]
[INFO] 
[INFO] ---------------------< org.graylog:graylog-parent >---------------------
[INFO] Building Graylog Parent POM 4.0.0-SNAPSHOT                        [1/16]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] 
[INFO] -----------------< org.graylog:graylog-project-parent >-----------------
[INFO] Building Graylog Project Parent POM 4.0.0-SNAPSHOT                [2/16]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] 
[INFO] --- forbiddenapis:2.5:check (forbidden-apis-src) @ graylog-project-parent ---
[INFO] Skipping execution for packaging "pom"
[INFO] 
[INFO] --------------------< org.graylog2:graylog2-server >--------------------
[INFO] Building Graylog 4.0.0-SNAPSHOT                                   [3/16]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.4:create (default) @ graylog2-server ---
[INFO] Executing: cmd.exe /X /C "git rev-parse --verify HEAD"
[INFO] Working directory: C:\user\git\graylog-project-repos\graylog2-server\graylog2-server
[INFO] Storing buildNumber: cd1c2f708f6c17ada9ec074014d2a1a97a378e09 at timestamp: 1601983810023
[INFO] Storing buildScmBranch: master
[INFO] 
[INFO] --- antlr4-maven-plugin:4.8-1:antlr4 (antlr) @ graylog2-server ---
[INFO] ANTLR 4: Processing source directory C:\user\git\graylog-project-repos\graylog2-server\graylog2-server\src\main\antlr4
[INFO] Processing grammar: org\graylog\plugins\pipelineprocessor\parser\RuleLang.g4
[INFO] 
[INFO] --- build-helper-maven-plugin:3.0.0:parse-version (parse-version) @ graylog2-server ---
[INFO] 
[INFO] --- frontend-maven-plugin:1.9.1:install-node-and-yarn (install node and yarn) @ graylog2-server ---
[INFO] Installing node version v12.13.1
[INFO] Copying node binary from C:\Users\smuj\.m2\repository\com\github\eirslett\node\12.13.1\node-12.13.1-win-x64.exe to C:\user\git\graylog-project-repos\graylog2-server\graylog2-web-interface\node\node.exe
[INFO] Installed node locally.
[INFO] Installing Yarn version v1.19.2
[INFO] Unpacking C:\Users\smuj\.m2\repository\com\github\eirslett\yarn\1.19.2\yarn-1.19.2.tar.gz into C:\user\git\graylog-project-repos\graylog2-server\graylog2-web-interface\node\yarn
[INFO] Installed Yarn locally.
[INFO] 
[INFO] --- frontend-maven-plugin:1.9.1:yarn (yarn install) @ graylog2-server ---
[INFO] Running 'yarn install' in C:\user\git\graylog-project-repos\graylog2-server\graylog2-web-interface
[INFO] yarn install v1.19.2
[INFO] [1/4] Resolving packages...
[INFO] warning Resolution field "jquery@3.4.1" is incompatible with requested version "jquery@3.5.1"
[INFO] warning Resolution field "upath@1.0.5" is incompatible with requested version "upath@^1.1.1"
[INFO] warning Resolution field "jsdom@15.2.1" is incompatible with requested version "jsdom@^11.5.1"
[INFO] [2/4] Fetching packages...
[INFO] info fsevents@2.1.3: The platform "win32" is incompatible with this module.
[INFO] info "fsevents@2.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
[INFO] info fsevents@1.2.13: The platform "win32" is incompatible with this module.
[INFO] info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
[INFO] info fsevents@2.1.2: The platform "win32" is incompatible with this module.
[INFO] info "fsevents@2.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
[INFO] [3/4] Linking dependencies...
[INFO] warning " > @fortawesome/react-fontawesome@0.1.9" has unmet peer dependency "react@16.x".
[INFO] warning " > @react-bootstrap/pagination@1.0.0" has unmet peer dependency "react@^15.3.0".
[INFO] warning " > @react-bootstrap/pagination@1.0.0" has unmet peer dependency "react-bootstrap@>=0.30.10".
[INFO] warning " > @react-bootstrap/pagination@1.0.0" has unmet peer dependency "react-dom@^15.3.0".
[INFO] warning "@react-bootstrap/pagination > react-prop-types@0.4.0" has unmet peer dependency "react@>=0.14.0".
[INFO] warning "graylog-web-plugin > reflux@0.2.13" has incorrect peer dependency "react@>=0.12.2 <0.15.0".
[INFO] warning "graylog-web-plugin > styled-components@5.1.1" has unmet peer dependency "react-is@>= 16.8.0".
[INFO] warning "react-overlays > prop-types-extra@1.1.1" has unmet peer dependency "react@>=0.14.0".
[INFO] warning "react-select > react-transition-group@2.9.0" has unmet peer dependency "react@>=15.0.0".
[INFO] warning "react-select > react-transition-group@2.9.0" has unmet peer dependency "react-dom@>=15.0.0".
[INFO] warning " > babel-plugin-styled-components@1.10.7" has unmet peer dependency "styled-components@>= 2".
[INFO] warning " > eslint-config-graylog@1.3.0" has unmet peer dependency "eslint@^5.16.0".
[INFO] warning " > loadable-components@2.2.3" has unmet peer dependency "react@^15.0.0 || ^16.0.0".
[INFO] warning " > react-ace@9.1.1" has unmet peer dependency "react@^0.13.0 || ^0.14.0 || ^15.0.1 || ^16.0.0".
[INFO] warning " > react-ace@9.1.1" has unmet peer dependency "react-dom@^0.13.0 || ^0.14.0 || ^15.0.1 || ^16.0.0".
[INFO] warning "react-color > @icons/material@0.2.4" has unmet peer dependency "react@*".
[INFO] warning " > react-day-picker@7.4.8" has unmet peer dependency "react@~0.13.x || ~0.14.x || ^15.0.0 || ^16.0.0".
[INFO] warning " > react-dnd@11.1.3" has unmet peer dependency "react@>= 16.9.0".
[INFO] warning " > react-dnd@11.1.3" has unmet peer dependency "react-dom@>= 16.9.0".
[INFO] warning " > react-resizable@1.10.1" has unmet peer dependency "react@0.14.x || 15.x || 16.x".
[INFO] warning " > react-resizable@1.10.1" has unmet peer dependency "react-dom@0.14.x || 15.x || 16.x".
[INFO] warning " > react-isolated-scroll@0.1.1" has unmet peer dependency "react@^0.14.0 || ^15.0.0-0 || ^16.0.0-0".
[INFO] warning " > react-leaflet@2.6.1" has unmet peer dependency "react@^16.8.0".
[INFO] warning " > react-leaflet@2.6.1" has unmet peer dependency "react-dom@^16.8.0".
[INFO] warning " > react-mops@2.0.0-beta.0" has unmet peer dependency "react@>=16.9".
[INFO] warning " > react-overlays@0.7.4" has unmet peer dependency "react@^0.14.9 || >=15.3.0".
[INFO] warning " > react-overlays@0.7.4" has unmet peer dependency "react-dom@^0.14.9 || >=15.3.0".
[INFO] warning " > react-plotly.js@2.4.0" has unmet peer dependency "react@>0.13.0".
[INFO] warning " > react-portal@4.2.1" has unmet peer dependency "react@^15.0.0-0 || ^16.0.0-0 || ^17.0.0-0".
[INFO] warning " > react-select@2.4.3" has unmet peer dependency "react@^15.3.0 || ^16.0.0".
[INFO] warning " > react-select@2.4.3" has unmet peer dependency "react-dom@^15.3.0 || ^16.0.0".
[INFO] warning "react-select > react-input-autosize@2.2.2" has unmet peer dependency "react@^0.14.9 || ^15.3.0 || ^16.0.0-rc || ^16.0".
[INFO] warning " > react-sizeme@2.6.12" has unmet peer dependency "react@^0.14.0 || ^15.0.0-0 || ^16.0.0".
[INFO] warning " > react-sizeme@2.6.12" has unmet peer dependency "react-dom@^0.14.0 || ^15.0.0-0 || ^16.0.0".
[INFO] warning " > react-sortable-hoc@1.11.0" has unmet peer dependency "prop-types@^15.5.7".
[INFO] warning " > react-sortable-hoc@1.11.0" has unmet peer dependency "react@^0.14.0 || ^15.0.0 || ^16.0.0".
[INFO] warning " > react-sortable-hoc@1.11.0" has unmet peer dependency "react-dom@^0.14.0 || ^15.0.0 || ^16.0.0".
[INFO] warning " > react-ultimate-pagination@1.2.0" has unmet peer dependency "react@^0.14.0 || ^15.0.0 || ^16.0.0".
[INFO] warning " > react-ultimate-pagination@1.2.0" has unmet peer dependency "react-dom@^0.14.0 || ^15.0.0 || ^16.0.0".
[INFO] warning " > react-window@1.8.5" has unmet peer dependency "react@^15.0.0 || ^16.0.0".
[INFO] warning " > react-window@1.8.5" has unmet peer dependency "react-dom@^15.0.0 || ^16.0.0".
[INFO] warning " > @testing-library/react@10.4.6" has unmet peer dependency "react@*".
[INFO] warning " > @testing-library/react@10.4.6" has unmet peer dependency "react-dom@*".
[INFO] warning " > enzyme-adapter-react-16@1.15.2" has unmet peer dependency "react@^16.0.0-0".
[INFO] warning " > enzyme-adapter-react-16@1.15.2" has unmet peer dependency "react-dom@^16.0.0-0".
[INFO] warning "enzyme-adapter-react-16 > enzyme-adapter-utils@1.13.0" has unmet peer dependency "react@0.13.x || 0.14.x || ^15.0.0-0 || ^16.0.0-0".
[INFO] warning "enzyme-adapter-react-16 > react-test-renderer@16.12.0" has unmet peer dependency "react@^16.0.0".
[INFO] warning "enzyme-adapter-react-16 > enzyme-adapter-utils > airbnb-prop-types@2.15.0" has unmet peer dependency "react@^0.14 || ^15.0.0 || ^16.0.0-alpha".
[INFO] warning " > eslint-loader@4.0.2" has unmet peer dependency "eslint@^6.0.0 || ^7.0.0".
[INFO] warning " > estraverse-fb@1.3.2" has unmet peer dependency "estraverse@*".
[INFO] warning " > extract-text-webpack-plugin@3.0.2" has incorrect peer dependency "webpack@^3.1.0".
[INFO] warning " > jest-environment-enzyme@7.1.2" has unmet peer dependency "react@^0.13.0 || ^0.14.0 || ^15.0.0 || >=16.x".
[INFO] warning " > jest-styled-components@7.0.2" has unmet peer dependency "styled-components@>= 5".
[INFO] warning " > react-styleguidist@11.0.8" has unmet peer dependency "react@>=16.8".
[INFO] warning " > react-styleguidist@11.0.8" has unmet peer dependency "react-dom@>=16.8".
[INFO] warning "react-styleguidist > markdown-to-jsx@6.11.4" has unmet peer dependency "react@>= 0.14.0".
[INFO] warning "react-styleguidist > react-group@3.0.2" has unmet peer dependency "react@>=16.0.0".
[INFO] warning "react-styleguidist > react-icons@3.9.0" has unmet peer dependency "react@*".
[INFO] warning "react-styleguidist > react-simple-code-editor@0.10.0" has unmet peer dependency "react@^16.0.0".
[INFO] warning "react-styleguidist > react-simple-code-editor@0.10.0" has unmet peer dependency "react-dom@^16.0.0".
[INFO] [4/4] Building fresh packages...
[INFO] Done in 301.74s.
[INFO] 
[INFO] --- frontend-maven-plugin:1.9.1:yarn (yarn run build) @ graylog2-server ---
[INFO] Running 'yarn run build' in C:\user\git\graylog-project-repos\graylog2-server\graylog2-web-interface
[INFO] yarn run v1.19.2
[INFO] $ cross-env disable_plugins=true webpack --config webpack.bundled.js
[INFO] Running in production mode
[INFO] Building vendor bundle.
[INFO] Hash: dda4c05eaf1e0d9701f98e398538bd8c49a7d9b5
[INFO] Version: webpack 4.43.0
[INFO] Child vendor:
[INFO]     Hash: dda4c05eaf1e0d9701f9
[INFO]     Time: 21552ms
[INFO]     Built at: 2020-10-06 13:35:46
[INFO]                                          Asset      Size  Chunks                                Chunk Names
[INFO]                 vendor.375d64c4c6571efe6ba2.js  1.22 MiB       0  [emitted] [immutable]  [big]  vendor
[INFO]     vendor.375d64c4c6571efe6ba2.js.LICENSE.txt  4.78 KiB          [emitted]                     
[INFO]     Entrypoint vendor [big] = vendor.375d64c4c6571efe6ba2.js
[INFO]      [25] ./node_modules/moment/locale sync ^\.\/.*$ 3.16 KiB {0} [built]
[INFO]     [338] dll vendor 12 bytes {0} [built]
[INFO]     [354] (webpack)/buildin/module.js 497 bytes {0} [built]
[INFO]     [359] (webpack)/buildin/harmony-module.js 573 bytes {0} [built]
[INFO]     [613] (webpack)/buildin/global.js 472 bytes {0} [built]
[INFO]         + 651 hidden modules
[INFO]     
[INFO]     WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
[INFO]     This can impact web performance.
[INFO]     Assets: 
[INFO]       vendor.375d64c4c6571efe6ba2.js (1.22 MiB)
[INFO]     
[INFO]     WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
[INFO]     Entrypoints:
[INFO]       vendor (1.22 MiB)
[INFO]           vendor.375d64c4c6571efe6ba2.js
[INFO]     
[INFO]     
[INFO]     WARNING in webpack performance recommendations: 
[INFO]     You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
[INFO]     For more info visit https://webpack.js.org/guides/code-splitting/
[INFO] Child app:
[INFO]     Hash: 8e398538bd8c49a7d9b5
[INFO]     Time: 174560ms
[INFO]     Built at: 2020-10-06 13:38:41
[INFO]      673 assets
[INFO]     Entrypoint app = app.8e398538bd8c49a7d9b5.js app.8e398538bd8c49a7d9b5.js.map
[INFO]     Entrypoint builtins = builtins.8e398538bd8c49a7d9b5.js builtins.8e398538bd8c49a7d9b5.js.map
[INFO]     Entrypoint polyfill = polyfill.8e398538bd8c49a7d9b5.js polyfill.8e398538bd8c49a7d9b5.js.map
[INFO]     [0] multi ./src/injection/builtins.js 28 bytes {d998e7bb-32} [built]
[INFO]     [1] multi @babel/polyfill 28 bytes {d998e7bb-33} [built]
[INFO]     [1VnJesae] ./src/injection/StoreProvider.jsx 1.37 KiB {d998e7bb-31} {d998e7bb-32} [built]
[INFO]     [21p8kIWv] ./src/injection/CombinedProvider.js 2.09 KiB {d998e7bb-31} {d998e7bb-32} [built]
[INFO]     [4KF7VOU5] delegated ./node_modules/reflux/src/index.js from dll-reference __vendor 42 bytes {d998e7bb-31} {d998e7bb-32} [built]
[INFO]     [6aqzefQH] delegated ./node_modules/timers-browserify/main.js from dll-reference __vendor 42 bytes {d998e7bb-31} {d998e7bb-32} [built]
[INFO]     [95eaLShZ] ./src/index.jsx + 128 modules 451 KiB {d998e7bb-31} [built]
[INFO]         | ./src/index.jsx 1.17 KiB [built]
[INFO]         | ./src/webpack-entry.js 446 bytes [built]
[INFO]         | ./src/routing/AppFacade.jsx 2.55 KiB [built]
[INFO]         | ./src/contexts/CustomizationProvider.jsx 824 bytes [built]
[INFO]         | ./src/views/bindings.jsx 15 KiB [built]
[INFO]         | ./src/theme/GlobalThemeStyles.jsx 9.19 KiB [built]
[INFO]         | ./src/pages/ServerUnavailablePage.jsx 6.28 KiB [built]
[INFO]         | ./src/contexts/CustomizationContext.js 293 bytes [built]
[INFO]         | ./src/views/logic/searchtypes/messages/index.js 126 bytes [built]
[INFO]         | ./src/views/logic/fieldactions/AddToTableActionHandler.js 1010 bytes [built]
[INFO]         | ./src/views/logic/fieldactions/AddToAllTablesActionHandler.js 654 bytes [built]
[INFO]         | ./src/views/logic/valueactions/AddToQueryHandler.js 4.36 KiB [built]
[INFO]         | ./src/views/logic/fieldactions/AggregateActionHandler.js 1.18 KiB [built]
[INFO]         | ./src/views/logic/fieldactions/ChartActionHandler.js 2.13 KiB [built]
[INFO]         | ./src/views/logic/searchtypes/events/EventHandler.js 5.11 KiB [built]
[INFO]         |     + 114 hidden modules
[INFO]     [B1JLyk3Y] ./src/views/logic/aggregationbuilder/Series.js 6.05 KiB {d998e7bb-31} [built]
[INFO]     [CL+pbkWF] ./src/views/hooks/BindSearchParamsFromQuery.js 2.53 KiB {d998e7bb-31} [built]
[INFO]     [CzyxmveH] delegated ./node_modules/styled-components/dist/styled-components.browser.esm.js from dll-reference __vendor 42 bytes {d998e7bb-31} [built]
[INFO]     [ILDPzkX3] ./src/views/Constants.js 1.26 KiB {d998e7bb-31} {d998e7bb-32} [built]
[INFO]     [Y/FKx0zi] delegated ./node_modules/react-dom/index.js from dll-reference __vendor 42 bytes {d998e7bb-31} [built]
[INFO]     [ivGQtwpr] delegated ./node_modules/react/index.js from dll-reference __vendor 42 bytes {d998e7bb-31} [built]
[INFO]     [kx12hYYX] ./src/theme/GraylogThemeProvider.jsx + 4 modules 18.1 KiB {d998e7bb-31} [built]
[INFO]         | ./src/theme/GraylogThemeProvider.jsx 4.42 KiB [built]
[INFO]         | ./src/theme/UseCurrentThemeMode.jsx 5.31 KiB [built]
[INFO]         | ./src/hooks/usePrefersColorScheme.js 2.98 KiB [built]
[INFO]         |     + 2 hidden modules
[INFO]     [s1qejPic] ./src/injection/builtins.js + 1 modules 14.4 KiB {d998e7bb-32} [built]
[INFO]         | ./src/injection/builtins.js 85 bytes [built]
[INFO]         | ./src/injection/registerBuiltinStores.js 14.4 KiB [built]
[INFO]         + 2288 hidden modules
[INFO]     
[INFO]     ERROR in ./node_modules/graylog-web-plugin/plugin.js
[INFO]     Module not found: Error: Can't resolve './lib/PluginManifest' in 'C:\user\git\graylog-project-repos\graylog2-server\graylog2-web-interface\node_modules\graylog-web-plugin'
[INFO]      @ ./node_modules/graylog-web-plugin/plugin.js 2:18-49
[INFO]      @ ./src/index.jsx
[INFO]     
[INFO]     ERROR in ./node_modules/graylog-web-plugin/plugin.js
[INFO]     Module not found: Error: Can't resolve './lib/PluginStore' in 'C:\user\git\graylog-project-repos\graylog2-server\graylog2-web-interface\node_modules\graylog-web-plugin'
[INFO]      @ ./node_modules/graylog-web-plugin/plugin.js 3:15-43
[INFO]      @ ./src/index.jsx
[INFO]     Child HtmlWebpackCompiler:
[INFO]          2 assets
[INFO]         Entrypoint HtmlWebpackPlugin_0 = __child-HtmlWebpackPlugin_0
[INFO]         Entrypoint HtmlWebpackPlugin_1 = __child-HtmlWebpackPlugin_1
[INFO]         [1S/p2sYH] ./node_modules/html-webpack-plugin/lib/loader.js!./templates/module.json.template 471 bytes {d998e7bb-1} [built]
[INFO]         [i/dVZhsi] ./node_modules/html-webpack-plugin/lib/loader.js!./templates/index.html.template 1.15 KiB {d998e7bb-0} [built]
[INFO] error Command failed with exit code 2.
[INFO] error Command failed with exit code 2.info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for graylog-project 4.0.0-SNAPSHOT:
[INFO] 
[INFO] Graylog Parent POM ................................. SUCCESS [  0.006 s]
[INFO] Graylog Project Parent POM ......................... SUCCESS [  0.172 s]
[INFO] Graylog ............................................ FAILURE [08:40 min]
[INFO] Graylog Plugin Parent POM .......................... SKIPPED
[INFO] graylog-storage-elasticsearch6 ..................... SKIPPED
[INFO] graylog-storage-elasticsearch7 ..................... SKIPPED
[INFO] Graylog Binary Distribution Tarball ................ SKIPPED
[INFO] Graylog Plugin with Web support Parent POM ......... SKIPPED
[INFO] graylog-plugin-collector ........................... SKIPPED
[INFO] graylog-plugin-aws ................................. SKIPPED
[INFO] graylog-plugin-threatintel ......................... SKIPPED
[INFO] graylog-plugin-integrations ........................ SKIPPED
[INFO] graylog-project .................................... SKIPPED
[INFO] runner ............................................. SKIPPED
[INFO] full-backend-tests ................................. SKIPPED
[INFO] graylog-plugin-archetype ........................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  08:41 min
[INFO] Finished at: 2020-10-06T13:38:41+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.9.1:yarn (yarn run build) on project graylog2-server: Failed to run task: 'yarn run build' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 2 (Exit value: 2) -> [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/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :graylog2-server

How do I fix that? Windows 10 + JDK 8

malcyon commented 4 years ago

I'm not sure what's going on here. It builds fine for me on Linux. I don't think it's been tested much on Windows, so it may be related to that.

It kind of looks like this old issue:

https://github.com/Graylog2/graylog2-server/issues/7731

malcyon commented 4 years ago

Try building it in an Ubuntu VM.

jsmucr commented 4 years ago

mvn compile under WSL succeeded. mvn install did not. However now I'm struggling with the graylog-project command (graylog-project run particularly). Is there any manual for it? My attempts to run graylog-project run dev fail with message

couldn't run script ./bin/dev.sh: fork/exec ./bin/dev.sh: no such file or directory
AdamWyzgol commented 4 years ago

Do you have nodejs and yarn installed? It looks like it can't build forntend

malcyon commented 3 years ago

@jsmucr Are you still having issues building Graylog? Looks like this ticket is getting old.

I think the only documentation on the run dev command is in the inline help.

graylog-project-cli run help

It spins up a graylog dev server using docker-compose, along with mongodb and elasticsearch containers. I'm not sure why it wouldn't see the script. It's in the runner/bin/ directory.

malcyon commented 3 years ago

Actually, I see the problem with run dev. The scripts that the cli is trying to run are missing. @bernd Is it okay for me to add these? The cli can't call runner/bin/dev.sh because it isn't there.

bernd commented 3 years ago

@juju2112 I think we can eventually add the runner/ folder to this project. Let's talk about it once you have time.

malcyon commented 3 years ago

Closing this issue out, as it's fairly old. I have opened a new issue for the runner issue:

https://github.com/Graylog2/graylog-project/issues/22