【问题标题】:Build error using rascal-maven-plugin (Undefined module vis::Render)使用 rascal-maven-plugin 构建错误(未定义模块 vis::Render)
【发布时间】:2021-06-01 06:20:36
【问题描述】:

我试图在一个项目中使用rascal-maven-plugin 来获得一个持续集成的过程,也就是说,不依赖于Eclipse 来知道是否有问题。 使用插件的构建过程一直都很顺利,除非它找到使用Rascal Visualisation library 的模块(rsc 文件)。 我收到以下错误:

[ERROR]   lang/jimple/toolkit/CallGraph.rsc:017:07: Undefined module `vis::Render`
[ERROR]   lang/jimple/toolkit/CallGraph.rsc:017:07: Reference to name `vis::Render` cannot be resolved

所以,我尝试包含一个库,我认为(通过查看 rascal git repo)可能是带有 Vis 代码的库:rascal_eclipse

我已将其添加到位于 META-INF 目录中的 RASCAL.MF 文件中。该行正是下面的那一行:

   Require-Libraries: |lib://rascal_eclipse|

即使这样,我仍然遇到同样的错误(在 Eclipse 中,模块运行良好)。

我怎样才能让这个构建工作?

谢谢。

【问题讨论】:

    标签: eclipse maven build rascal


    【解决方案1】:

    缺少的重要一点是 pom 需要依赖 rascal-eclipse 项目。使用您的 Require-Libraries 声明可能会成功。

    我认为您可能是第一个尝试对 Eclipse 之外的 rascal-eclipse 进行 pom 依赖的人;如果您需要答案,请联系我们?

    【讨论】:

    • 我尝试将 rascal_eclipse 作为依赖项添加到 pom 文件中,但 URL nexus.usethesource.io/content/repositories/public/org/rascalmpl/… 内部没有任何库。尝试过 rascal-update-site 并且这个依赖于 rascal-eclipse-ide 也没有找到。我错过了什么吗?或者回购已经过时了?谢谢。
    • 我认为我们陷入了困境。 rascal eclipse jar 不会作为我们 nexus 上的普通 mvn jar 发布。原因是如果没有 Eclipse 更新站点,它就无法工作(您无法运行它)。我必须在团队中讨论这个问题。与此同时,我没有看到解决方法。感谢您指出这一点!
    猜你喜欢
    • 1970-01-01
    • 2013-05-01
    • 2016-09-27
    • 2013-10-25
    • 1970-01-01
    • 2011-07-24
    • 2020-01-05
    • 1970-01-01
    • 2021-02-07
    相关资源
    最近更新 更多