liferay sdk下载 \IDE下载 \ Tomcat 安装细节不在此赘述

网上有很多.

只讲核心关键坑点

进入2016年,从Liferay6.2.5 ga6版本开始,到7.0 ga3,在ivy环节对国内用户会造成很大困扰,一直卡住,无法使用IDE新建liferay portlet工程.

看遍国内的论坛和博客,没有什么帮助.

看到这里很有帮助:

https://web.liferay.com/zh/community/forums/-/message_boards/message/74382032

关键点1 : 修改 build.wx.properties 文件,一定要配正确路径

app.server.parent.dir = D:\\liferay62\\bundles

app.server.tomcat.dir = D:\\liferay62\\bundles\\tomcat-7.0.
app.server.tomcat.deploy.dir = D:\\liferay62\\bundles\\tomcat-7.0.\\webapps
app.server.tomcat.lib.global.dir = D:\\liferay62\\bundles\\tomcat-7.0.\\lib\\ext
app.server.tomcat.manager.user = tomcat
app.server.tomcat.manager.password = tomcat
app.server.tomcat.portal.dir = D:\\liferay62\\bundles\\tomcat-7.0.\\webapps\\ROOT

没这个build.wx.properties文件?查查cmd => echo %username% 换成自己的PC name

关键点2:修改 build.wx.properties 原有的ivy相关设置,地址就根本不对了

官方搞这么个乌龙,实在无语

ivy.home = ${sdk.dir}/.ivy
ivy.jar.url = http://repo1.maven.org/maven2/org/apache/ivy/ivy/${ivy.version}/ivy-${ivy.version}.jar ivy.log.level = quiet
ivy.pom.developer.name = Brian Wing Shun Chan
ivy.pom.developer.organization = Liferay,Inc.
ivy.pom.developer.organizationUrl = http://www.liferay.com
ivy.pom.license.name = LGPL 2.1
ivy.pom.license.url = http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt
ivy.pom.scm.connection = scm:git:git@github.com:liferay/liferay-plugins.git
ivy.pom.scm.developerConnection = scm:git:git@github.com:liferay/liferay-plugins.git
ivy.pom.scm.url = http://github.com/liferay/liferay-plugins
ivy.resolve.transitive.dependencies = true
ivy.resolve.transitive.dependencies.test = true ivy.version = 2.4.

关键点3:修改ivy-settings.xml,换成这样:

原来的liferay-public  maven仓库地址根本不行, 国内原来速度飞快的开源中国仓库也关了,气愤阿!

现在是找不到下载速度快的地址了

<ivysettings>
<settings defaultResolver="default" /> <resolvers>
<ibiblio m2compatible="true" name="liferay-public" root="https://repo1.maven.org/maven2/" />
<ibiblio m2compatible="true" name="local-m2" root="file://${user.home}/.m2/repository" /> <chain dual="true" name="default">
<resolver ref="local-m2" /> <resolver ref="liferay-public" />
</chain>
</resolvers>
</ivysettings>

ivy cache下载过程大概需要20分钟,之后就可以在eclipse开发了

Liferay7 BPM门户开发之1:Liferay7开发环境准备的更多相关文章

  1. Liferay7 BPM门户开发之3: Activiti开发环境搭建

    下载地址: http://activiti.org/download.html 源码: https://github.com/Activiti/Activiti 环境准备(检查项): JDK 1.7 ...

  2. Liferay7 BPM门户开发之37: Liferay7下的OSGi Hook集成开发

    hook开发是Liferay客制扩展的一种方式,比插件灵活,即可以扩展liferay门户,也能对原有特性进行更改,Liferay有许多内置的服务,比如用hook甚至可以覆盖Liferay服务. 可作为 ...

  3. Liferay7 BPM门户开发之15: Liferay开发体系简介

    Liferay SDK 开发体系 主要分6种: Portlet Hook Theme Layout Templates Web Modules Ext Portlet :类似于servlet的web组 ...

  4. Liferay7 BPM门户开发之34: liferay7对外服务类生成(RestService Get Url)

    在liferay7中开发不依赖Service Builder的对外服务类,非常简洁,只需要2点注解: 在类的前部定义: @ApplicationPath("/PathXXX") 方 ...

  5. Liferay7 BPM门户开发之22: Liferay7模型监听器(Model Listeners)

    Model Listeners实现ModelListener接口,用于持久化时的AOP处理 一些使用场景: Audit Listener: 在一个独立而分离的数据库,做信息更新的审计: Cache C ...

  6. Liferay7 BPM门户开发之25: Liferay7应用程序配置(APPLICATION CONFIGURATION)

    首先有几个概念需要明确.1.第一个概念是这里的应用程序配置不是写XML之类的配置文件,是类似字典的类型化配置这意味着应用程序配置不只是一个字符串键值对的列表.值还可以有类型,如整数列表,字符串列表,一 ...

  7. Liferay7 BPM门户开发之24: Liferay7应用程序安全

    整理中...... Resources, Roles, and PermissionsPortal Access Control List (PACL) Custom SSO Providers Au ...

  8. Liferay7 BPM门户开发之17: Portlet 生命周期

    Portlet 生命周期 init() =〉 render() =〉 processAction() =〉 processEvent() =〉 serveResource() =〉destroy() ...

  9. Liferay7 BPM门户开发之10: 通用流程实现从Servlet到Portlet(Part1)

    开发目的: 实现通用流程自动化处理(即实现不需要hardcode代码的bpm统一处理后台,仅需要写少量前端html form代码和拖拽设计BPM定义) 既可独立运行或可依托于Liferay或依托其它门 ...

随机推荐

  1. 2018.10.26 NOIP模拟 图(最小生成树+线段树合并)

    传送门 首先最开始说的那个一条路径的权值就是想告诉你两个点之间的贡献就是瓶颈边的权值. 那么肯定要用最小生成树算法. 于是我考场上想了30min+30min+30min+的树形dpdpdp 发现转移是 ...

  2. 2018.10.25 bzoj3928: [Cerc2014] Outer space invaders(区间dp)

    传送门 区间dpdpdp好题. 首先肯定需要把坐标离散化. 然后在数轴上面区间dpdpdp. 对于当前区间,区间中最大的数一定会被选. 于是我们记f[i,j]f[i,j]f[i,j]表示所有左端点在i ...

  3. spring mvc项目中导出excel表格简单实现

    查阅了一些资料,才整理出spring mvc 项目导出excel表格的实现,其实很是简单,小计一下,方便以后查阅,也希望帮助有需要的朋友. 1.导入所需要依赖(Jar包).我使用的是maven,所以坐 ...

  4. ejb servlet demo

    官方文档: http://docs.oracle.com/javaee/6/tutorial/doc/gijre.html package converter.ejb; import java.mat ...

  5. C#控件之:进度条(ProgressBar)

    一.重绘进度条 public class CustomProgressBar:ProgressBar { public CustomProgressBar() { this.SetStyle(Cont ...

  6. 关于Lambda

    1. 查询时,包含关联子对象.如: 数据库中包含表Father和Son,映射实体如下: public class Father { public string Name{get;set;} publi ...

  7. javascript 模块化编程

    The module pattern is a common JavaScript coding pattern. It’s generally well understood, but there ...

  8. Codeforces791A Bear and Big Brother

    A. Bear and Big Brother time limit per test 1 second memory limit per test 256 megabytes input stand ...

  9. POJ2536 Gopher II(二分图最大匹配)

    Gopher II Time Limit: 2000MS   Memory Limit: 65536K Total Submissions: 9005   Accepted: 3724 Descrip ...

  10. 中大 9095. Islands

    9095. Islands 限制条件 时间限制: 2 秒, 内存限制: 256 兆 题目描述 Whenever it rains, Farmer John's field always ends up ...