我正在创建一个使用HtmlFormEntry的OpenMRS模块。我需要HtmlFormEntry和HtmlFormEntryUI应用程序接口包来构建我的。
也就是说,我在编译时得到错误package org.openmrs.module.htmlformentry does not exist和package org.openmrs.module.htmlformentryui does not exist。
如何定义对htmlformentryui和htmlformentry POM.xml包以及maven openmrs包的依赖关系?
发布于 2017-06-24 05:08:42
HtmlFormEntry
通过this reference中的指令可以轻松地为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
https://stackoverflow.com/questions/44729852
复制相似问题