【发布时间】:2017-04-08 22:42:07
【问题描述】:
我正在使用 maven-ejb-plugin(2.5.1 版)来生成 ejb-client。生成工作正常,但是当我想部署到 nexus 时
mvn deploy ejb:ejb
日志显示ejb的部署和ejb和客户端目标文件夹中的生成
我将插件配置为生成客户端 jar,它在安装时的作用
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ejb-plugin</artifactId>
<version>2.5.1</version>
<configuration>
<ejbVersion>3.1</ejbVersion>
<archive>
<manifestEntries>
<Dependencies>org.infinispan export</Dependencies>
</manifestEntries>
</archive>
<clientIncludes>
<clientInclude>santam/apps/staticlookups/model/**</clientInclude>
<clientInclude>santam/apps/staticlookups/services/**</clientInclude>
</clientIncludes>
<generateClient>true</generateClient>
</configuration>
</plugin>
【问题讨论】:
-
通常你不应该调用ejb的目标。它应该是通过 mvn deploy 构建的一部分...您是否设置了包装
ejb?您是否已配置为创建 ejb 客户端? -
我尝试调用 just deploy,并尝试从父文件夹(而不是 EJB 子文件夹)运行 deploy,这导致 ear 和 war 也被部署到 nexus。但是还是没有client.jar...
标签: java maven jakarta-ee ejb wildfly