2014-02-17 36 views
0

我是Liferay入门新手。 这里是我在当地的Liferay实例 但我配置将maven liferay项目部署到基于远程Jboss的Liferay门户

--Liferay 6.1部署在JBoss AS 7.1.1最终 --Maven 3.1.1

我可以轻松地部署我的portlet(Maven项目)中号试图此portlet部署到远程实例

这里是我的pom.xml的一部分

<properties> 
    <liferay.version>6.1.2</liferay.version> 
    <liferay.parent.server>C:\DEV\Env\JBoss</liferay.parent.server> 
<liferay.auto.deploy.dir>${liferay.parent.server}\deploy</liferay.auto.deploy.dir> 
<liferay.app.server.deploy.dir>${liferay.parent.server}\jboss-as-7.1.1.Final\standalone\deployments</liferay.app.server.deploy.dir> 
<liferay.app.server.lib.global.dir>${liferay.parent.server}\jboss-as-7.1.1.Final\modules\com\liferay\portal\main</liferay.app.server.lib.global.dir> 
<liferay.app.server.portal.dir>${liferay.parent.server}\jboss-as-7.1.1.Final\standalone\deployments\ROOT.war</liferay.app.server.portal.dir> 
</properties> 
<build> 
    <plugins> 
     <plugin> 
      <groupId>com.liferay.maven.plugins</groupId> 
      <artifactId>liferay-maven-plugin</artifactId> 
      <version>${liferay.version}</version> 
      <configuration> 
       <autoDeployDir>${liferay.auto.deploy.dir}</autoDeployDir> 
       <appServerDeployDir>${liferay.app.server.deploy.dir}</appServerDeployDir> 
       <appServerLibGlobalDir>${liferay.app.server.lib.global.dir}</appServerLibGlobalDir> 
       <appServerPortalDir>${liferay.app.server.portal.dir}</appServerPortalDir> 
       <liferayVersion>${liferay.version}</liferayVersion> 
       <pluginType>portlet</pluginType> 
      </configuration> 
     </plugin> 
... 
</build> 

我会“liferay.parent.server”为目标的远程目录类似192.16 8.1.2/ENV/JBoss的

我已经工作了很长一段时间 我会非常感谢你的帮助

谢谢

+0

你解决了这个问题吗?我正面临同样的问题 – kristu

回答

0

我记得Liferay不支持JBoss的远程连接器。你可以看到这个文档考虑了用于JBoss的Maven插件enter link description here

-1

当然,你可以通过Maven插件进行远程部署。您可以阅读本指南http://www.dontesta.it/blog/en/blog-2/cms/liferay/liferay-maven-come-fare-il-deploy-remoto-dei-plugin/

在这篇文章中,我们将看到一个可能的解决方案基于行家

插件行家旅行车Maven的插件(或车辆)远程部署的Liferay项目的神器是什么将允许您在远程服务器上复制我们的portlet的WAR,然后Liferay的热部署(我推荐阅读热部署和自动部署)将执行实际安装。清单1显示了项目pom的插件部分中包含的无人机插件配置。

<build> 
    <plugins> 
    <plugin> 
    <groupId>org.codehaus.mojo</groupId> 
    <artifactId>wagon-maven-plugin</artifactId> 
    <version>1.0</version> 
    <configuration> 
     <fromDir>${project.build.directory}/</fromDir> 
     <includes>*.war</includes> 
     <url>scp://${jboss.deploy.username}:${jboss.deploy.password}@${jboss.deploy.hostname}/</url> 
     <toDir>${jboss.deploy.liferay.dir}</toDir> 
    </configuration> 
     <dependencies> 
     <dependency> 
      <groupId>org.apache.maven.wagon</groupId> 
      <artifactId>wagon-ssh</artifactId> 
      <version>2.8</version> 
     </dependency> 
    </dependencies> 
    </plugin> 
    </plugins> 
</build> 
+1

这可能在理论上回答这个问题,但最好在未来的用户中包含答案的基本部分,并提供供参考的链接。 [link-dominated answers](// meta.stackexchange.com/questions/8231)可能通过[link rot](// en.wikipedia.org/wiki/Link_rot)失效。 – Mogsdad