Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在maven构建工具中为ejb创建存根文件_Maven_Ejb_Stub_Continuum - Fatal编程技术网

在maven构建工具中为ejb创建存根文件

在maven构建工具中为ejb创建存根文件,maven,ejb,stub,continuum,Maven,Ejb,Stub,Continuum,团队 我们的项目使用EJB,WAS6.1是我们的服务器,在部署代码时,我需要在EAR中显示存根文件(Maven生成)。为了实现这一点,我在pom.xml中使用了was6插件 <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>was6-maven-plugin</artifactId> <execut

团队

我们的项目使用EJB,WAS6.1是我们的服务器,在部署代码时,我需要在EAR中显示存根文件(Maven生成)。为了实现这一点,我在pom.xml中使用了was6插件

<plugins>
  <plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>was6-maven-plugin</artifactId>
        <executions>
        <execution>
           <goals>
                    <goal>ejbdeploy</goal>
            </goals>
         </execution>
        </executions>
    </plugin>

    <plugin>
        <artifactId>maven-ejb-plugin</artifactId>
        <configuration>
        <archive>
        <manifest>
               <addClasspath>true</addClasspath>
                     <classpathPrefix>lib/</classpathPrefix>
        </manifest>
        </archive>
        </configuration>
    </plugin>
</plugins>

org.codehaus.mojo
was6 maven插件
ejbdeploy
maven ejb插件
真的
解放党/
为此,我们需要设置环境变量“WAS_HOME”

但我们无法在continuum build server中设置wasHome,因此我们得到构建错误-“wasHome未定义”

这还有别的办法吗?
-为所有ejb类创建存根文件,而不在maven中使用WAS 6 maven插件。

WAS6_HOME环境变量是WAS6 maven插件用于了解Websphere所在位置的默认值, 但人们经常使用wasHome属性来表示这一点

从这里可以在pom或设置文件和Maven概要文件中使用Maven属性

另一方面,您可以在不使用maven插件的情况下生成EJB存根,但您始终需要知道websphere安装在何处


关于

为了实现这一点,我们可以在was6服务器安装配置xml中设置参数
(ejbdeploy=true)
它成功了

谢谢你的回复