Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

启动报 ui 目录不存在 #26

Open
choleraehyq opened this issue Jun 20, 2019 · 4 comments
Open

启动报 ui 目录不存在 #26

choleraehyq opened this issue Jun 20, 2019 · 4 comments

Comments

@choleraehyq
Copy link

➜  hugegraph-studio-0.9.0 git:(fixbuild) ./bin/hugegraph-studio.sh
10:58:42.932 [main] DEBUG com.baidu.hugegraph.config.OptionSpace ID:  TS: - Registered options for OptionHolder: StudioServerOptions
10:58:42.961 [main] WARN  com.baidu.hugegraph.config.HugeConfig ID:  TS: - The config option 'graph.server.host' is redundant, please ensure it has been registered
10:58:42.961 [main] WARN  com.baidu.hugegraph.config.HugeConfig ID:  TS: - The config option 'graph.server.port' is redundant, please ensure it has been registered
10:58:42.961 [main] WARN  com.baidu.hugegraph.config.HugeConfig ID:  TS: - The config option 'graph.name' is redundant, please ensure it has been registered
10:58:42.961 [main] WARN  com.baidu.hugegraph.config.HugeConfig ID:  TS: - The config option 'client.timeout' is redundant, please ensure it has been registered
10:58:42.961 [main] WARN  com.baidu.hugegraph.config.HugeConfig ID:  TS: - The config option 'data.base_directory' is redundant, please ensure it has been registered
10:58:42.961 [main] WARN  com.baidu.hugegraph.config.HugeConfig ID:  TS: - The config option 'show.limit.data' is redundant, please ensure it has been registered
10:58:42.961 [main] WARN  com.baidu.hugegraph.config.HugeConfig ID:  TS: - The config option 'show.limit.edge.total' is redundant, please ensure it has been registered
10:58:42.962 [main] WARN  com.baidu.hugegraph.config.HugeConfig ID:  TS: - The config option 'show.limit.edge.increment' is redundant, please ensure it has been registered
10:58:42.962 [main] WARN  com.baidu.hugegraph.config.HugeConfig ID:  TS: - The config option 'gremlin.limit_suffix' is redundant, please ensure it has been registered
10:58:42.962 [main] WARN  com.baidu.hugegraph.config.HugeConfig ID:  TS: - The config option 'vertex.vis.font.color' is redundant, please ensure it has been registered
10:58:42.962 [main] WARN  com.baidu.hugegraph.config.HugeConfig ID:  TS: - The config option 'vertex.vis.font.size' is redundant, please ensure it has been registered
10:58:42.962 [main] WARN  com.baidu.hugegraph.config.HugeConfig ID:  TS: - The config option 'vertex.vis.size' is redundant, please ensure it has been registered
10:58:42.962 [main] WARN  com.baidu.hugegraph.config.HugeConfig ID:  TS: - The config option 'vertex.vis.scaling.min' is redundant, please ensure it has been registered
10:58:42.962 [main] WARN  com.baidu.hugegraph.config.HugeConfig ID:  TS: - The config option 'vertex.vis.scaling.max' is redundant, please ensure it has been registered
10:58:42.963 [main] WARN  com.baidu.hugegraph.config.HugeConfig ID:  TS: - The config option 'vertex.vis.shape' is redundant, please ensure it has been registered
10:58:42.963 [main] WARN  com.baidu.hugegraph.config.HugeConfig ID:  TS: - The config option 'vertex.vis.color' is redundant, please ensure it has been registered
10:58:42.963 [main] WARN  com.baidu.hugegraph.config.HugeConfig ID:  TS: - The config option 'edge.vis.color.default' is redundant, please ensure it has been registered
10:58:42.963 [main] WARN  com.baidu.hugegraph.config.HugeConfig ID:  TS: - The config option 'edge.vis.color.hover' is redundant, please ensure it has been registered
10:58:42.963 [main] WARN  com.baidu.hugegraph.config.HugeConfig ID:  TS: - The config option 'edge.vis.color.highlight' is redundant, please ensure it has been registered
10:58:42.963 [main] WARN  com.baidu.hugegraph.config.HugeConfig ID:  TS: - The config option 'edge.vis.font.color' is redundant, please ensure it has been registered
10:58:42.963 [main] WARN  com.baidu.hugegraph.config.HugeConfig ID:  TS: - The config option 'edge.vis.font.size' is redundant, please ensure it has been registered
10:58:42.973 [main] ERROR com.baidu.hugegraph.studio.HugeGraphStudio ID:  TS: - Can't start Studio, directory /Users/cholerae/Documents/javacode/hugegraph-studio/hugegraph-studio-0.9.0/ui doesn't exist
@javeme
Copy link

javeme commented Jun 21, 2019

@choleraehyq 请描述一下出现这个问题的过程,以方便问题分析

@choleraehyq
Copy link
Author

@javeme 我现在怀疑是我 #25 这个修改引入的问题。但是如果我不修改,直接用master 分支,编译会失败。日志是:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.3:run (default) on project studio-dist: An Ant BuildException has occured: exec returned: 1 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.3:run (default) on project studio-dist: An Ant BuildException has occured: exec returned: 1
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    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:305)
    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:956)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
    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.MojoExecutionException: An Ant BuildException has occured: exec returned: 1
    at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks (AbstractAntMojo.java:131)
    at org.apache.maven.plugin.antrun.AntRunMojo.execute (AntRunMojo.java:98)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    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:305)
    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:956)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
    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.tools.ant.BuildException: exec returned: 1
    at org.apache.tools.ant.taskdefs.ExecTask.runExecute (ExecTask.java:636)
    at org.apache.tools.ant.taskdefs.ExecTask.runExec (ExecTask.java:662)
    at org.apache.tools.ant.taskdefs.ExecTask.execute (ExecTask.java:487)
    at org.apache.tools.ant.UnknownElement.execute (UnknownElement.java:288)
    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.apache.tools.ant.dispatch.DispatchUtils.execute (DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform (Task.java:348)
    at org.apache.tools.ant.Target.execute (Target.java:357)
    at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks (AbstractAntMojo.java:118)
    at org.apache.maven.plugin.antrun.AntRunMojo.execute (AntRunMojo.java:98)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    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:305)
    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:956)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
    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]
[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/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :studio-dist

@choleraehyq
Copy link
Author

复现步骤就是直接 clone master 然后跑 mvn package -DskipTests -X。
我的版本:

➜  hugegraph-studio git:(master) mvn --version
Apache Maven 3.6.1 (d66c9c0b3152b2e69ee9bac180bb8fcc8e6af555; 2019-04-05T03:00:29+08:00)
Maven home: /usr/local/Cellar/maven/3.6.1/libexec
Java version: 1.8.0_162, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre
Default locale: zh_CN, platform encoding: UTF-8
OS name: "mac os x", version: "10.14.5", arch: "x86_64", family: "mac"
➜  hugegraph-studio git:(master) javac -version
javac 1.8.0_162

@javeme
Copy link

javeme commented Jun 21, 2019

@choleraehyq 可以参考一下 #4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants