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 ...
随机推荐
- JSON数据格式
JSON 数据格式 JSON(JavaScript Object Notation) 是一种轻量级的数据交换格式.JSON采用完全独立于语言的文本格式,这些特性使JSON成为理想的数据交换语言.易于人 ...
- oracle,mysql对敏感,关键字等处理
oracle用"" 比如,处理字段中间有空格,
- 对map创建出来的值顺序排序问题
TreeMap 在用Ajax动态创建checkBox时,而把值放在了HashMap中,hashMap是无序的,因此你动态创建出来的顺序是乱的,比如你想要的顺序是1.2.3.4但出来的结果可能是 3.2 ...
- 【python】lxml
来源:http://lxml.de/tutorial.html lxml是python中处理xml的一个非常强大的库,可以非常方便的解析和生成xml文件.下面的内容翻译了链接中的一部分 1.生成空xm ...
- php策略模式的研究
<?php abstract class Moshi{ private $num; public $price; const Ted=1; const Sed=2 ...
- 解决jetty7.0.pre5启动时报ClassNotFoundException: javax.interceptor.InvocationContext异常的问题
一.背景介绍:最近项目在使用maven命令行运行jetty服务器时出现ClassNotFoundException: javax.interceptor.InvocationContext异常 二.环 ...
- ios安装cocoaPods
1. 安装 a. 查看源 i. gem sources -l b. 删除源 i. sudo gem sources -r https://rubygems.org/ c. 设置源 i. s ...
- iOS应用架构谈(二):View层的组织和调用方案(上)
OS客户端应用架构看似简单,但实际上要考虑的事情不少.本文作者将以系列文章的形式来回答iOS应用架构中的种种问题,本文是其中的第二篇,主要讲View层的组织和调用方案.上篇主要讲View层的代码结构. ...
- August 29th 2016 Week 36th Monday
Every has the capital to dream. 每个人都有做梦的本钱. Your vision, our mission. That is an advertisment of UMo ...
- 数的统计count(bzoj1036)
Description 一棵树上有n个节点,编号分别为1到n,每个节点都有一个权值w.我们将以下面的形式来要求你对这棵树完成一些操作: I. CHANGE u t : 把结点u的权值改为t II. Q ...