0

我正在创建一个使用 HtmlFormEntry 的 OpenMRS 模块。我需要 HtmlFormEntry 和 HtmlFormEntryUI api 包来构建我的。

也就是说,我在编译时遇到了package org.openmrs.module.htmlformentry does not exist错误 package org.openmrs.module.htmlformentryui does not exist

如何定义对htmlformentryuihtmlformentryopenmrs 包的依赖关系并进入 maven POM.xml

4

1 回答 1

1

HtmlFormEntry

使用此参考HtmlFormEntry中的说明可以轻松完成添加依赖项:

   <properties>
      ...
        <htmlformentryModuleVersion>3.1</htmlformentryModuleVersion>
      ...
    </properties>

    <dependencies>
        ....
        <dependency>
            <groupId>org.openmrs.module</groupId>
            <artifactId>htmlformentry-api</artifactId>
            <version>${htmlformentryModuleVersion}</version>
            <scope>provided</scope>
        </dependency>
        ....
    </dependencies>

请注意,我已将版本号更新为3.1. 它现在可能已经显着增加。检查https://github.com/openmrs/openmrs-module-htmlformentry/releases以找到您要使用的版本。

HtmlFormEntryUI

基于此,我们可以推断HtmlFormEntryUI

   <properties>
      ...
      <htmlformentryuiModuleVersion>1.6.0</htmlformentryuiModuleVersion>
      ...
    </properties>

    <dependencies>
        ....
        <dependency>
            <groupId>org.openmrs.module</groupId>
            <artifactId>htmlformentryui-api</artifactId>
            <version>${htmlformentryuiModuleVersion}</version>
            <scope>provided</scope>
        </dependency>
        ....
    </dependencies>

版本:https ://github.com/openmrs/openmrs-module-htmlformentryui/releases

于 2017-06-23T21:08:41.520 回答