如何设置本地DBpedia镜像

时间:2013-05-24 10:47:24

标签: scala maven intellij-idea java dbpedia

我正在尝试建立一个本地DBpedia信息提取框架,但似乎存在一些我无法处理的问题。我按照Intelli J的官方网站上的说明进行操作,直到我进入最后一步,告诉“选择DBpedia转储提取 - >插件 - > scala - > scala:run”,错误信息如下所示:


    D:\program\jdk\bin\java -Dmaven.home=D:\program\apache-maven-3.0.5 -Dclassworlds.conf=D:\program\apache-maven-3.0.5\bin\m2.conf -Didea.launcher.port=7534 "-Didea.launcher.bin.path=D:\program\IntelliJ IDEA Community Edition 12.1.3\bin" -Dfile.encoding=UTF-8 -classpath "D:\program\apache-maven-3.0.5\boot\plexus-classworlds-2.4.jar;D:\program\IntelliJ IDEA Community Edition 12.1.3\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain org.codehaus.classworlds.Launcher --fail-fast --strict-checksums org.scala-tools:maven-scala-plugin:2.15.2:run
    [INFO] Scanning for projects...
    [INFO]                                                                         
    [INFO] ------------------------------------------------------------------------
    [INFO] Building DBpedia Dump Extraction 3.8
    [INFO] ------------------------------------------------------------------------
    [INFO] 
    [INFO] >>> maven-scala-plugin:2.15.2:run (default-cli) @ dump >>>
    [INFO] 
    [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ dump ---
    [debug] execute contextualize
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] skip non existing resourceDirectory E:\code\Scala\extraction_framework\dump\src\main\resources
    [INFO] 
    [INFO] --- maven-scala-plugin:2.15.2:compile (process-resources) @ dump ---
    [INFO] Checking for multiple versions of scala
    [INFO] includes = [**/*.scala,**/*.java,]
    [INFO] excludes = []
    [INFO] Nothing to compile - all classes are up to date
    [INFO] 
    [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ dump ---
    [INFO] Nothing to compile - all classes are up to date
    [INFO] 
    [INFO] --- maven-scala-plugin:2.15.2:compile (compile) @ dump ---
    [INFO] Checking for multiple versions of scala
    [INFO] includes = [**/*.scala,**/*.java,]
    [INFO] excludes = []
    [INFO] Nothing to compile - all classes are up to date
    [INFO] 
    [INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ dump ---
    [debug] execute contextualize
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] skip non existing resourceDirectory E:\code\Scala\extraction_framework\dump\src\test\resources
    [INFO] 
    [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ dump ---
    [INFO] No sources to compile
    [INFO] 
    [INFO] --- maven-scala-plugin:2.15.2:testCompile (test-compile) @ dump ---
    [INFO] Checking for multiple versions of scala
    [INFO] includes = [**/*.scala,**/*.java,]
    [INFO] excludes = []
    [WARNING] No source files found.
    [INFO] 
    [INFO]  org.dbpedia.extraction.dump.sql.Import
    parsing \home\release\wikipedia\wikipedias.csv
    java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org_scala_tools_maven_executions.MainHelper.runMain(MainHelper.java:161)
        at org_scala_tools_maven_executions.MainWithArgsInFile.main(MainWithArgsInFile.java:26)
    Caused by: java.io.FileNotFoundException: \home\release\wikipedia\wikipedias.csv (ϵͳ�Ҳ���ָ����·����)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.(FileInputStream.java:138)
        at scala.io.Source$.fromFile(Source.scala:91)
        at scala.io.Source$.fromFile(Source.scala:76)
        at org.dbpedia.extraction.util.WikiInfo$.fromFile(WikiInfo.scala:26)
        at org.dbpedia.extraction.util.ConfigUtils$.parseLanguages(ConfigUtils.scala:43)
        at org.dbpedia.extraction.dump.sql.Import$.main(Import.scala:26)
        at org.dbpedia.extraction.dump.sql.Import.main(Import.scala)
        ... 6 more
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 2.104s
    [INFO] Finished at: Fri May 24 18:34:48 CST 2013
    [INFO] Final Memory: 10M/175M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.scala-tools:maven-scala-plugin:2.15.2:run (default-cli) on project dump: wrap: org.apache.commons.exec.ExecuteException: Process exited with an error: -10000(Exit value: -10000) -> [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/MojoExecutionException

    Process finished with exit code 1

我应该怎么做才能解决它?

PS:我在Windows 7操作系统上完成了所有操作,安装了intel j 12社区版,maven 3和jdk 7。如果需要任何其他信息,请告诉我,谢谢。

0 个答案:

没有答案