【发布时间】:2015-07-15 19:22:52
【问题描述】:
我有一个 Eclipse 基础 ejb 项目,我刚刚将其转换为 maven 模块。它采用 Web 应用程序布局(Tomee 首选)。所以,在pom.xml中,打包类型设置为war,maven正确生成了war文件。但是我在让 maven 在打包战争时也创建一个 ejb-client jar 方面并不是很成功。我将此添加到 pom.xml 但它似乎没有做任何事情:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ejb-plugin</artifactId>
<version>2.5</version>
<executions>
<execution>
<id>BossClient</id>
<phase>compile</phase>
<configuration>
<ejbVersion>3.1</ejbVersion>
<generateClient>true</generateClient>
<clientIncludes>
<clientInclude>/com/**</clientInclude>
</clientIncludes>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
知道如何在打包战争时让 maven 生成 ejb-client 吗?
【问题讨论】:
标签: maven-3