【问题标题】:How to do websphere 7 deployment automation using maven?如何使用 maven 进行 websphere 7 部署自动化?
【发布时间】:2012-08-08 19:41:10
【问题描述】:

大家好
我们的 Maven 脚本目前是为了在 tomcat6(开发)服务器中编译/打包和部署而编写的。这有助于我们自动化构建-部署过程。

展望未来,我们希望使用 MAVEN 脚本自动部署到 WAS7 (Websphere 7) 服务器中。我读过的几篇文章谈到了调用可以执行部署到 websphere 的 ANT 任务。

任何人都可以共享相同的 maven 脚本/标签吗?

【问题讨论】:

    标签: maven deployment websphere websphere-7


    【解决方案1】:

    我不知道这是否适用于 WAS 7,但 IBM 提供了对 WAS 6 和 Maven 集成的支持:

    一家(著名的)法国 IT 咨询公司列出了与著名的 Cargo 插件 的兼容性,允许远程控制服务器:http://blog.xebia.fr/2008/11/05/lintegration-continue-avec-cargo/。但正如您所见(即使您不懂法语 ;D),Websphere 并没有得到很好的支持。

    它可能对你没有帮助,但主要的想法是 Maven 和 WAS 7 的集成对你来说可能比其他服务器更痛苦;)

    【讨论】:

    • 在谷歌浏览器中打开货物插件链接,并从法语转换它!
    【解决方案2】:

    你可以使用这个插件 http://code.google.com/p/websphere-maven-plugin/

    <plugin>
     <groupId>Websphere7AM.plugin</groupId>
     <artifactId>websphere7am-maven-plugin</artifactId>
     <version>1.0.0</version>
     <configuration>
      <defaultCommand>
      <host>localhost</host>
      <port>8880</port>
     </defaultCommand>
     <commands>
      <command>
       <command>INSTALL</command>
       <appName>My Application</appName>
       <earFile>myapp.ear</earFile>
       <target>WebSphere:cell=myhostNode01Cell,node=myhostNode01,server=server1</target>
       <description>Install my app</description>
      </command>
     </commands>
    </configuration>
    <executions>
     <execution>
     <phase>compile</phase>
     <goals>
      <goal>was</goal>
     </goals>
     </execution>
    </executions>
    </plugin>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-11-12
      • 2010-11-27
      • 2010-10-10
      • 1970-01-01
      • 2013-11-04
      • 2020-10-16
      • 2016-09-22
      相关资源
      最近更新 更多