【问题标题】:Error loading the netbeans module with maven使用 maven 加载 netbeans 模块时出错
【发布时间】:2015-10-29 10:07:50
【问题描述】:

当我尝试运行主模块时,我收到一个名为 Model-Configuration 的子模块的以下警告

Warning - could not install some modules: 
Model Configuration - The module named org.netbeans.modules.gsf.testrunner/1 was needed and not found. 
15 further modules could not be installed due to the above problems.

我已经在Model-Configuration的pom中指定了依赖如下。

  <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>nbm-maven-plugin</artifactId>
        <extensions>true</extensions>
        <configuration>
              <moduleDependencies>
                   <dependency>
                       <id>org.netbeans.modules:org-netbeans-modules-gsf-testrunner</id>
                       <type>impl</type>
                       <explicitValue>org.netbeans.modules.gsf.testrunner/1 = 201508041349</explicitValue>
                   </dependency>
             </moduleDependencies>
         </configuration>
   </plugin>
<dependencies>
        <dependency>
            <groupId>org.netbeans.modules</groupId>
            <artifactId>org-netbeans-modules-gsf-testrunner</artifactId>
            <exclusions>
                <exclusion>
                    <artifactId>org-netbeans-modules-options-editor</artifactId>
                    <groupId>org.netbeans.modules</groupId>
                </exclusion>
            </exclusions>               
        </dependency>
<dependencies>

知道如何解决这个问题吗? 谢谢。

编辑:

这里实际上我的目的是从 netbeans 平台 RELEASE802 更新到 RELEASE81-BETA。 org.netbeans.modules.gsf.testrunner 依赖似乎是迄今为止唯一的问题。省略所有使用此依赖项的类时,应用程序运行良好,不会出现模块安装失败。

【问题讨论】:

  • 这看起来像是 Netbeans 的 proelbme...而不是 maven...

标签: java maven netbeans netbeans-platform netbeans-plugins


【解决方案1】:

我相信你的问题是这一行:

<explicitValue>org.netbeans.modules.gsf.testrunner/1 = 201508041349</explicitValue>

这声明了对模块的实现依赖,并将其有效地绑定到 8.0 版本的工件。但是在运行时你没有 8.0 版本而是 8.1 并且不满足依赖关系。

升级到 8.1-BETA 时,您需要找到该工件的 8.1-BETA 清单并在此处复制并粘贴它的实现。

【讨论】:

  • 我似乎找不到 gsf.testrunner 8.1-BETA 的清单。我在哪里可以找到它?或者它不适用于 8.1-BETA ?
  • 不知道,也许它已经消失了,也许它被重命名了。您可能需要咨询 NetBeans 开发人员(提交问题)
【解决方案2】:

@mkleint 是正确的,这是实现版本的问题,但我找不到 8.1-BETA 的解决方法。无论如何,现在 8.1 已经发布,并且随着 8.1 的发布,以下工作正常

<explicitValue>org.netbeans.modules.gsf.testrunner/2 = 201510222201</explicitValue>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-08-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多