Hello, I would like to ask, when you compiled the entire 2.3.0 project, how did the module security-admin-web compile and pass, and I have been reporting the following two errors:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project security-admin-web: Compilation failure: Compilation failure:
[ERROR] /usr/local/ranger/security-admin/src/main/java/org/apache/ranger/security/web/filter/RangerJwtAuthFilter.java:[36,38] error: package org.apache.ranger.authz.handler does not exist
[ERROR] /usr/local/ranger/security-admin/src/main/java/org/apache/ranger/security/web/filter/RangerJwtAuthFilter.java:[37,42] error: package org.apache.ranger.authz.handler.jwt does not exist
[ERROR] /usr/local/ranger/security-admin/src/main/java/org/apache/ranger/security/web/filter/RangerJwtAuthFilter.java:[38,42] error: package org.apache.ranger.authz.handler.jwt does not exist
[ERROR] /usr/local/ranger/security-admin/src/main/java/org/apache/ranger/security/web/filter/RangerJwtAuthFilter.java:[54,41] error: cannot find symbol
[ERROR] symbol: class RangerDefaultJwtAuthHandler
[ERROR] /usr/local/ranger/security-admin/src/main/java/org/apache/ranger/biz/RangerPolicyAdminImpl.java:[41,69] error: cannot find symbol
[ERROR] symbol: class RangerPolicyResourceEvaluator
[ERROR] location: interface RangerPolicyEvaluator
[ERROR] /usr/local/ranger/security-admin/src/main/java/org/apache/ranger/service/RangerServiceDefService.java:[110,109] error: cannot find symbol
[ERROR] symbol: variable OPTION_ENABLE_IMPLICIT_CONDITION_EXPRESSION
[ERROR] location: class RangerServiceDef
[ERROR] /usr/local/ranger/security-admin/src/main/java/org/apache/ranger/biz/ServiceDBStore.java:[2002,1] error: method does not override or implement a method from a supertype
[ERROR] /usr/local/ranger/security-admin/src/main/java/org/apache/ranger/biz/ServiceDBStore.java:[2604,66] error: incompatible types: SearchFilter cannot be converted to Map<String,String>
[ERROR] /usr/local/ranger/security-admin/src/main/java/org/apache/ranger/biz/TagDBStore.java:[1275,54] error: incompatible types: RangerTag cannot be converted to ServiceTags
[ERROR] /usr/local/ranger/security-admin/src/main/java/org/apache/ranger/biz/TagDBStore.java:[1288,56] error: incompatible types: RangerTagDef cannot be converted to ServiceTags
[ERROR] /usr/local/ranger/security-admin/src/main/java/org/apache/ranger/biz/TagDBStore.java:[1329,58] error: incompatible types: RangerTag cannot be converted to ServiceTags
[ERROR] /usr/local/ranger/security-admin/src/main/java/org/apache/ranger/biz/TagDBStore.java:[1343,54] error: incompatible types: RangerServiceResource cannot be converted to ServiceTags
[ERROR] /usr/local/ranger/security-admin/src/main/java/org/apache/ranger/common/RangerServicePoliciesCache.java:[329,27] error: cannot find symbol
[ERROR] symbol: method dedupStrings()
[ERROR] location: variable servicePoliciesFromDb of type ServicePolicies
[ERROR] /usr/local/ranger/security-admin/src/main/java/org/apache/ranger/security/web/filter/RangerJwtAuthWrapper.java:[79,119] error: cannot find symbol
[ERROR] symbol: method canAuthenticateRequest(ServletRequest)
[ERROR] location: class RangerJwtAuthFilter
[ERROR] /usr/local/ranger/security-admin/src/main/java/org/apache/ranger/security/web/filter/RangerJwtAuthFilter.java:[72,31] error: cannot find symbol
[ERROR] symbol: variable RangerJwtAuthHandler
[ERROR] location: class RangerJwtAuthFilter
[ERROR] /usr/local/ranger/security-admin/src/main/java/org/apache/ranger/security/web/filter/RangerJwtAuthFilter.java:[73,31] error: cannot find symbol
[ERROR] symbol: variable RangerJwtAuthHandler
[ERROR] location: class RangerJwtAuthFilter
[ERROR] /usr/local/ranger/security-admin/src/main/java/org/apache/ranger/security/web/filter/RangerJwtAuthFilter.java:[74,31] error: cannot find symbol
[ERROR] symbol: variable RangerJwtAuthHandler
[ERROR] location: class RangerJwtAuthFilter
[ERROR] /usr/local/ranger/security-admin/src/main/java/org/apache/ranger/security/web/filter/RangerJwtAuthFilter.java:[76,31] error: cannot find symbol
[ERROR] symbol: variable RangerJwtAuthHandler
[ERROR] location: class RangerJwtAuthFilter
[ERROR] /usr/local/ranger/security-admin/src/main/java/org/apache/ranger/security/web/filter/RangerJwtAuthFilter.java:[78,12] error: cannot find symbol
[ERROR] symbol: variable super
[ERROR] location: class RangerJwtAuthFilter
[ERROR] /usr/local/ranger/security-admin/src/main/java/org/apache/ranger/security/web/filter/RangerJwtAuthFilter.java:[101,8] error: cannot find symbol
[ERROR] symbol: class RangerAuth
[ERROR] location: class RangerJwtAuthFilter
[ERROR] /usr/local/ranger/security-admin/src/main/java/org/apache/ranger/security/web/filter/RangerJwtAuthFilter.java:[101,32] error: cannot find symbol
[ERROR] symbol: method authenticate(HttpServletRequest)
[ERROR] location: class RangerJwtAuthFilter
[ERROR] /usr/local/ranger/security-admin/src/main/java/org/apache/ranger/biz/RangerTagDBRetriever.java:[303,56] error: incompatible types: RangerTag cannot be converted to ServiceTags
[ERROR] /usr/local/ranger/security-admin/src/main/java/org/apache/ranger/biz/RangerPolicyAdminImpl.java:[277,56] error: cannot find symbol
[ERROR] symbol: method getAdditionalResources()
[ERROR] location: variable policy of type RangerPolicy
[ERROR] /usr/local/ranger/security-admin/src/main/java/org/apache/ranger/biz/RangerPolicyAdminImpl.java:[278,82] error: cannot find symbol
[ERROR] symbol: method getAdditionalResources()
[ERROR] location: variable policy of type RangerPolicy
[ERROR] /usr/local/ranger/security-admin/src/main/java/org/apache/ranger/biz/RangerPolicyAdminImpl.java:[398,79] error: cannot find symbol
[ERROR] symbol: method getAdditionalResources()
[ERROR] location: variable policy of type RangerPolicy
[ERROR] /usr/local/ranger/security-admin/src/main/java/org/apache/ranger/biz/RangerPolicyAdminImpl.java:[562,27] error: method isAccessAllowed in interface RangerPolicyEvaluator cannot be applied to given types;
[ERROR] required: Map<String,RangerPolicyResource>,String,Set,String
[ERROR] found: Map<String,RangerPolicyResource>,List<Map<String,RangerPolicyResource>>,String,Set,String
[ERROR] reason: actual and formal argument lists differ in length
[ERROR] /usr/local/ranger/security-admin/src/main/java/org/apache/ranger/biz/RangerPolicyAdminImpl.java:[594,100] error: cannot find symbol
[ERROR] symbol: method getAdditionalResources()
[ERROR] location: variable policy of type RangerPolicy
[ERROR] /usr/local/ranger/security-admin/src/main/java/org/apache/ranger/biz/RangerPolicyAdminImpl.java:[677,92] error: cannot find symbol
[ERROR] symbol: method getResourceEvaluators()
[ERROR] location: variable evaluator of type RangerPolicyEvaluator
[ERROR] /usr/local/ranger/security-admin/src/main/java/org/apache/ranger/biz/RangerPolicyAdminImpl.java:[677,33] error: cannot find symbol
[ERROR] symbol: class RangerPolicyResourceEvaluator
[ERROR] location: class RangerPolicyAdminImpl
[ERROR] /usr/local/ranger/security-admin/src/main/java/org/apache/ranger/biz/RangerPolicyAdminImpl.java:[698,84] error: cannot find symbol
[ERROR] symbol: method getResourceEvaluators()
[ERROR] location: variable evaluator of type RangerPolicyEvaluator
[ERROR] /usr/local/ranger/security-admin/src/main/java/org/apache/ranger/biz/RangerPolicyAdminImpl.java:[698,25] error: cannot find symbol
[ERROR] symbol: class RangerPolicyResourceEvaluator
[ERROR] location: class RangerPolicyAdminImpl
[ERROR] /usr/local/ranger/security-admin/src/main/java/org/apache/ranger/biz/RangerPolicyAdminImpl.java:[933,92] error: cannot find symbol
[ERROR] symbol: method getAdditionalResources()
[ERROR] location: variable policy of type RangerPolicy
[ERROR] /usr/local/ranger/security-admin/src/main/java/org/apache/ranger/common/RangerServiceTagsCache.java:[113,10] error: cannot find symbol
[ERROR] symbol: method dedupStrings()
[ERROR] location: variable ret of type ServiceTags
[ERROR] /usr/local/ranger/security-admin/src/main/java/org/apache/ranger/common/RangerServiceTagsCache.java:[347,23] error: cannot find symbol
[ERROR] symbol: method dedupStrings()
[ERROR] location: variable serviceTagsFromDb of type ServiceTags
[ERROR] /usr/local/ranger/security-admin/src/main/java/org/apache/ranger/common/RangerUserStoreCache.java:[99,21] error: cannot find symbol
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project security-admin-web: Compilation failure
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:375)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:351)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:171)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:163)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:294)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:960)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.apache.maven.plugin.compiler.CompilationFailureException: Compilation failure
at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute (AbstractCompilerMojo.java:911)
at org.apache.maven.plugin.compiler.CompilerMojo.execute (CompilerMojo.java:129)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:370)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:351)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:171)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:163)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:294)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:960)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[ERROR]
[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 -rf :security-admin-web
Caused by: java.io.IOException: Cannot run program "/usr/local/ranger/security-admin/target/node/node" (in directory "/usr/local/ranger/security-admin/target/jsmain"): error=2, No such file or directory
Caused by: com.github.eirslett.maven.plugins.frontend.lib.ProcessExecutionException: java.io.IOException: Cannot run program "/usr/local/ranger/security-admin/target/node/node" (in directory "/usr/local/ranger/security-admin/target/jsmain"): error=2, No such file or directory
Caused by: com.github.eirslett.maven.plugins.frontend.lib.TaskRunnerException: 'npm install' failed.
If it is convenient, please tell me how to compile and pass, you can put the pom file of this module security-admin-web, thank you!