cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco + IntelliJ

modestas
Champ in-the-making
Champ in-the-making
Hi,

Need advice of how to configure alfresco for development on IntelliJ.

By default if you install alfresco community edition it provides all needed jar`s for development (alfresco-4.2.f/tomcat/webapps/alfresco/WEB-INF/lib), but does not provide src files.

So i have a question of how i should setup my working environment?  Maybe i should use a maven "way"?

Can you guys give me some advices/best practices of how to setup my working environment on IntelliJ.

Any comment is very welcome and appreciated!

respectfully,
Modestas
4 REPLIES 4

oleh
Champ in-the-making
Champ in-the-making
Are you using the community edition of IntelliJ IDEA or the ultimate?

In any case, Maven is the way to to. Have a look at Jeff Potts' tutorial here: http://ecmarchitect.com/alfresco-developer-series-tutorials/maven-sdk/tutorial/tutorial.html

This will allow you to run your customizations on top of an embedded Tomcat and it's really easy to use.

Create a new project with Maven and open it up in IDEA. Look for the "Maven projects" window, make sure to enable the "amp-to-war" profile. Create a run configuration that does
mvn integration-test

Make sure it activates the amp-to-war profile aswell. Also set some VM arguments so Alfresco has enough memory to run (also done from the run configuration). Set it to something like "-Xms256m -Xmx2g -XXSmiley TongueermSize=300m"

It can be a bit tricky to get right, but you can create a really good development enviroment with IDEA.

gluck113
Star Contributor
Star Contributor

Oleh, thanks for the information! Just for intellij 2016.2 the run configuration looks like:

mrogers
Star Contributor
Star Contributor
The source files are in the SDKif you choose not to use maven.   The sdk is tied into eclipse but I'm sure it's not too much of an effort to use the source files from within IntelliJ.

yogeshpj
Star Contributor
Star Contributor

For Source files you can also import SDK. Please refer the link Importing SDK projects into IntelliJ IDEA | Alfresco Documentation