Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos 在Mac上使用JBoss开发Liferay主题_Macos_Ant_Liferay_Jboss7.x - Fatal编程技术网

Macos 在Mac上使用JBoss开发Liferay主题

Macos 在Mac上使用JBoss开发Liferay主题,macos,ant,liferay,jboss7.x,Macos,Ant,Liferay,Jboss7.x,我正在Mac上使用JBoss创建liferay主题。在创建主题的过程中,当我在终端上执行ant deploy时,我会遇到以下错误: Buildfile: /Users/saif/Desktop/Liferay/liferay-plugins-sdk-6.1.1/themes/g2y-b2b-theme/build.xml [copy] Copying 1 file to /usr/share/ant/lib BUILD FAILED /Users/saif/Desktop/Lifer

我正在Mac上使用JBoss创建liferay主题。在创建主题的过程中,当我在终端上执行
ant deploy
时,我会遇到以下错误:

Buildfile:
/Users/saif/Desktop/Liferay/liferay-plugins-sdk-6.1.1/themes/g2y-b2b-theme/build.xml
     [copy] Copying 1 file to /usr/share/ant/lib

BUILD FAILED
/Users/saif/Desktop/Liferay/liferay-plugins-sdk-6.1.1/themes/g2y-b2b-theme/build.xml:5:
The following error occurred while executing this line:
/Users/saif/Desktop/Liferay/liferay-plugins-sdk-6.1.1/themes/build-common-theme.xml:7:
The following error occurred while executing this line:
/Users/saif/Desktop/Liferay/liferay-plugins-sdk-6.1.1/build-common-plugin.xml:5:
The following error occurred while executing this line:
/Users/saif/Desktop/Liferay/liferay-plugins-sdk-6.1.1/build-common.xml:68:
Failed to copy
/Users/saif/Desktop/Liferay/liferay-plugins-sdk-6.1.1/lib/ecj.jar to
/usr/share/ant/lib/ecj.jar due to java.io.FileNotFoundException
/usr/share/ant/lib/ecj.jar (Permission denied)

Total time: 0 seconds

请帮我解决这个问题,然后继续。要在Mac上实现这一点,我应该采取哪些步骤?还请告诉我如何在Mac上设置ANT的环境变量。

当ANT构建主题并需要
ecj.jar
(eclipse java编译器)时,它通常会从一些internet存储库下载它,并将它放在
$ANT_HOME/lib
中。您的
$ANT_HOME
似乎是
usr/share/ANT
,您没有对该目录的写访问权限。手动下载并将其放在那里,或者打开一个构建的目录写入权限(然后再次关闭)


你只需要做一次:当
ecj.jar
在ant的类路径上时,它将被永远使用。

当ant构建你的主题并需要
ecj.jar
(eclipse编译器for java)时,它通常会从一些internet存储库下载它,并将它放在
$ant\u HOME/lib
中。您的
$ANT_HOME
似乎是
usr/share/ANT
,您没有对该目录的写访问权限。手动下载并将其放在那里,或者打开一个构建的目录写入权限(然后再次关闭)


您只需要这样做一次:当
ecj.jar
位于ant的类路径上时,它将被永久使用。

您的用户帐户将无法对/usr/share/ant/lib进行写访问。你能发布build-common.xml的那一部分吗?您制作了多少build.xml,提供了多少?副本的源和目标是否可能混淆?您的用户帐户将无法对/usr/share/ant/lib进行写入访问。你能发布build-common.xml的那一部分吗?您制作了多少build.xml,提供了多少?副本的源和目标是否可能混淆?