简体   繁体   English

有没有一种简单的方法可以将intellij用于liferay主题开发?

[英]Is there an easy way to use intellij for liferay theme development?

I recently switched from eclipse and netbeans to intellij, but I have also liferay stuff to do and intelliJ seems to lack a decent liferay integration. 我最近从eclipse和netbeans切换到了intellij,但是我还有liferay要做的事情,intelliJ似乎缺乏不错的liferay集成。

Does someone know how to use intelliJ for that, with as much of intelliJs comfort as possible :-/ 有人知道如何使用智能,并尽可能地提高智能舒适度:-/

As the themes are no simple java project the import stuff doesn't seem to recognize it properly... 由于主题不是简单的Java项目,因此导入的东西似乎无法正确识别...

You could look into the maven integration for Liferay (depending on the version of Liferay you're using - the more recent the version, the better the maven integration) and just import a pure maven project. 您可以研究Liferay的Maven集成(取决于您使用的Liferay的版本-版本越新,则Maven集成越好),而只需导入一个纯Maven项目即可。 The layout of this differs a bit from the usual ant-based SDK. 其布局与通常的基于ant的SDK有所不同。

But of course you can also use the pure Ant buildfiles you find in the plugins sdk. 但是当然,您也可以使用在sdk插件中找到的纯Ant构建文件。 As there's typically no java in a theme, it doesn't make a lot of differences. 由于主题中通常没有Java,因此差别不大。

Not wanting to start IDE wars here, but you also might consider Liferay IDE (or Developer Studio, it's EE-Version) for theme-related development. 不想在这里引发IDE大战,但您也可以考虑使用Liferay IDE(或Developer Studio,它是EE版本)进行主题相关的开发。 As there's no Java development done in themes, the conflict of changing tools should be handleable. 由于没有在主题中进行Java开发,因此更改工具的冲突应该可以处理。 I wouldn't want to work in both IDEs for Java development again (been there, done that), but for themes I can imagine just going the easy route - it's mainly CSS that you edit. 我不想再在两个IDE中都进行Java开发(到那儿完成了),但是对于主题,我可以想象只是走了一条简单的路线-主要是您编辑的CSS。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM