Eclipse配置Lifery SDK步骤与错误解决。
第一步、我们先去官网下载我们要用的东西
1.Eclipse
2.SDK
3.Tomcat
这是官网下载地址--》https://www.liferay.com/zh/downloads
下面是图片说明
这是Eclipse下载说明


SDK下载图片

Tomcat下载
官网只有最新的Tomcat所以我们去这个下载地址:https://sourceforge.net/projects/lportal/files/Liferay%20Portal/

第二步、在Eclipse上配置Liferay
先配置Tomcat




然后配置sdk





在这一步之后可能会出现两个错误如果没有出现不用理会。
错误一
Invalid SDK settings.Configure app.server.parent.dir property in build.Robbin.properties(这个就是下面新建的文件名) to point to Liferay home

解决方法:
在SDK目录下面新建如下文件 这个文件名字就是上面标红的文件名

文件内容如下里面的路径根据自己的liferay Tomcat的路径修改
#Managed by Liferay IDE (remove this comment to prevent future updates)
#Sun Oct 09 15:13:19 CST 2016
app.server.tomcat.lib.global.dir=D\:\\Liferay\\liferay-portal-6.2-ce-ga4\\tomcat-7.0.42\\lib\\ext
app.server.tomcat.deploy.dir=D\:\\Liferay\\liferay-portal-6.2-ce-ga4\\tomcat-7.0.42\\webapps
app.server.parent.dir=D\:\\Liferay\\liferay-portal-6.2-ce-ga4
app.server.tomcat.dir=D\:\\Liferay\\liferay-portal-6.2-ce-ga4\\tomcat-7.0.42
app.server.type=tomcat
app.server.tomcat.portal.dir=D\:\\Liferay\\liferay-portal-6.2-ce-ga4\\tomcat-7.0.42\\webapps\\ROOT
错误二
[Console output redirected to file:D:\Temp\.metadata\.plugins\com.liferay.ide.sdk.core\sdk.log]
Buildfile: D:\Liferay\liferay-plugins-sdk-6.2\portlets\build.xml
[get] Getting: http://mirrors.lax.liferay.com/cdn.repository.liferay.com/nexus/content/repositories/liferay-snapshots-ce/com/liferay/org.apache.ivy/2.4.0.LIFERAY-PATCHED-1-SNAPSHOT/org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar
[get] To: C:\Users\Robbin\.liferay\mirrors\cdn.repository.liferay.com\nexus\content\repositories\liferay-snapshots-ce\com\liferay\org.apache.ivy\2.4.0.LIFERAY-PATCHED-1-SNAPSHOT\org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar
[get] Error getting http://mirrors.lax.liferay.com/cdn.repository.liferay.com/nexus/content/repositories/liferay-snapshots-ce/com/liferay/org.apache.ivy/2.4.0.LIFERAY-PATCHED-1-SNAPSHOT/org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar to C:\Users\Robbin\.liferay\mirrors\cdn.repository.liferay.com\nexus\content\repositories\liferay-snapshots-ce\com\liferay\org.apache.ivy\2.4.0.LIFERAY-PATCHED-1-SNAPSHOT\org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar
[get] Getting: http://cdn.repository.liferay.com/nexus/content/repositories/liferay-snapshots-ce/com/liferay/org.apache.ivy/2.4.0.LIFERAY-PATCHED-1-SNAPSHOT/org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar
[get] To: C:\Users\Robbin\.liferay\mirrors\cdn.repository.liferay.com\nexus\content\repositories\liferay-snapshots-ce\com\liferay\org.apache.ivy\2.4.0.LIFERAY-PATCHED-1-SNAPSHOT\org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar BUILD FAILED
D:\Liferay\liferay-plugins-sdk-6.2\portlets\build.xml:5: The following error occurred while executing this line:
D:\Liferay\liferay-plugins-sdk-6.2\build-common-plugins.xml:5: The following error occurred while executing this line:
D:\Liferay\liferay-plugins-sdk-6.2\build-common.xml:60: The following error occurred while executing this line:
D:\Liferay\liferay-plugins-sdk-6.2\build-common-ivy.xml:130: The following error occurred while executing this line:
D:\Liferay\liferay-plugins-sdk-6.2\build-common-ivy.xml:81: HTTP Authorization failure Total time: 1 second


解决方法:
Error getting http://mirrors.lax.liferay.com/cdn.repository.liferay.com/nexus/content/repositories/liferay-snapshots-ce/com/liferay/org.apache.ivy/2.4.0.LIFERAY-PATCHED-1-SNAPSHOT/org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar
to
C:\Users\Robbin\.liferay\mirrors\cdn.repository.liferay.com\nexus\content\repositories\liferay-snapshots-ce\com\liferay\org.apache.ivy\2.4.0.LIFERAY-PATCHED-1-SNAPSHOT\org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar
上面标红的是报错信息意思就是说从上面的地址下载org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar 然后放到下面的地址去。
我们试着用上面的地址发现根本打不开,然后我们又来试
http://cdn.repository.liferay.com/nexus/content/repositories/liferay-snapshots-ce/com/liferay/org.apache.ivy/2.4.0.LIFERAY-PATCHED-1-SNAPSHOT/org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar
这个地址也打不开。
我们就直接使用https://repository.liferay.com这个地址 搜索内容 org.apache.ivy
这是百度网盘地址:org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar--->链接:http://pan.baidu.com/s/1nvjQeCD 密码: nekb

如果没有配置MAVEN,可以按照下图方式进行下载

下载下载放到提示的目录就可以了,我的目录是:
C:\Users\Robbin\.liferay\mirrors\cdn.repository.liferay.com\nexus\content\repositories\liferay-snapshots-ce\com\liferay\org.apache.ivy\2.4.0.LIFERAY-PATCHED-1-SNAPSHOT\org.apache.ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar
然后再次上面配置SDK的步骤,会弹出一个框要等很长时间。

如果还是报错或者很慢就使用下面的方法。
在SDK目录下新建.ivy如果有了就不建了。


在.ivy里面放【ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar】和 cache

ivy-2.4.0.LIFERAY-PATCHED-1-SNAPSHOT.jar是我们刚才下载的。
cache 这个文件它会自动生成。这是百度网盘下载地址---》链接: http://pan.baidu.com/s/1qY71DFm 密码: djt3
接下来就是成功的图片了

结束:第二个错误还行网上有解决方法,第一个错误我在网上找了一圈好象没有人遇到,所以解决起来有点费时所以在这儿记录一下。
Eclipse配置Lifery SDK步骤与错误解决。的更多相关文章
- Linux/CentOS 配置Mysql-server过程和遇到错误解决方法
第一步:下载mysql-server 方法1.wget url(你所要下载的链接,可以从mysq官网查找)到当前目录下 方法2.到mysql官网下载包之后通过xftp传到linux 第二步:解压tar ...
- Mac 配置Apache Php编译ssl错误解决
终端 Php编译错误解决 //错误信息 unable to connect to ssl://gateway.sandbox.push.apple.com:2195 (Unknown error) i ...
- Eclipse打开xml文件报校验错误解决办法
XML文件在Eclipse中报校验错误: The content of element type "web-app" must match "(icon?,display ...
- eclipse 配置android sdk和maven
首先下载 ADT-22.2.0.rar eclipse-jee-kepler-R-win32-x86_64.zip android SDK4.2.zip 分别解压在一个盘 将ADT里面的两个目录内容相 ...
- 使用IDEA将代码托管到GitHub步骤和错误解决
一.下载并安装Git版本控制工具 下载地址:https://git-scm.com/downloads 注册GitHub账号:https://github.com/ 为什么托管到GitHub要下载Gi ...
- MyEclipse的 at com.genuitec.eclipse.ast.deploy.core.Deployment.<init>错误解决办法
我们使用myeclipse自动部署web项目时会设置服务器的位置,而部署的相关配置会存储在myeclipse工作目录下的“/.metadata/.plugins/org.eclipse.core.ru ...
- eclipse 配置 Tomcat 遇到的问题以及解决办法
Eclipse是一个开发JSP的很好的工具,而笔者在配置Tomcat服务器的时候遇到了一些小问题,在这里给大家总结一些经验,希望能帮助同样遇到这些问题的广大同行们能够简单轻松地解决这些问题~ 笔者在以 ...
- Xampp配置本地域名及常见错误解决
本地域名配置 1.计算机-->C盘-->Windows-->System32-->drivers-->etc-->hosts 127.0.0.1 loc ...
- Eclipse配置Tomcat,访问404错误
我从官网上面下载的tomcat6,直接启动发现正常使用,但是在Eclipse绑定后启动,访问localhost:8080,本来应该是tomcat的主页,但是却报了404错误. 百度搜索了一下,原来是t ...
随机推荐
- repeater 相关问题
1.如果添加控件会显示代码有问题,把双引号(“)改为单引号(‘)就可以了
- Match:Power Strings(POJ 2406)
字符串前缀的阶 题目大意:求前缀的阶 和POJ1961是一样的,KMP的Next数组的应用,不要用STL,不要一个一个读入字符(IO永远是最慢的) #include <iostream> ...
- jquery.dataTable分页
jsp页面,引入几个js <link type="text/css" rel="stylesheet" href="/library/css/b ...
- 51nod 1070 Bash游戏 V4 (斐波那契博弈)
题目:传送门. 有一堆个数为n(n>=2)的石子,游戏双方轮流取石子,规则如下: 1)先手不能在第一次把所有的石子取完,至少取1颗: 2)之后每次可以取的石子数至少为1,至多为对手刚取的石子数的 ...
- Java中常见数据结构:list与map -底层如何实现
1:集合 2 Collection(单列集合) 3 List(有序,可重复) 4 ArrayList 5 底层数据结构是数组,查询快,增删慢 6 线程不安全,效率高 7 Vector 8 底层数据结构 ...
- Mac系统下使用VirtualBox虚拟机安装win7--第二步 创建win7系统
第二步 创建win7系统 启动 Virtual Box 以后,点击窗口左上角的“新建”按钮,如图所示
- web项目没有run on server时..
文章转载至:http://blog.csdn.net/hongchangfirst/article/details/7722703 web项目没有run on server 1.首先确保正确安装Tom ...
- CLR via C#(01)-.NET平台下代码是怎么跑起来的
1. 源代码编译为托管模块 程序在.NET框架下运行,首先要将源代码编译为托管模块.CLR是一个可以被多种语言所使用的运行时,它的很多特性可以用于所有面向它的开发语言.微软开发了多种语言的编译器,编译 ...
- ***PHP中error_reporting()用法详解(含codeigniter框架中屏蔽错误提示的解决方案)
php中我们对错误的处理会常用到error_reporting函数了,大家可以看到最多的是error_reporting(E_ALL ^ E_NOTICE)了,这个到底什么意思呢,下面我来来看看. e ...
- Delphi操作XML简介
参考:http://www.delphifans.com/InfoView/Article_850.html Delphi 7支持对XML文档的操作,可以通过 TXMLDocument类来实现对XML ...