cancel
Showing results for 
Search instead for 
Did you mean: 

How to build and deploy alfresco 5.2 on intellij with maven?

brucezhou
Champ on-the-rise
Champ on-the-rise

Hello world,

I am new to afresco. I want to build and deploy alfresco 5.2 on intellij with maven and run alfresco with url http://localhost:8080/share.

I have finished these steps:

  1. Setup the prerequisite platform (JDK 6, Tomcat (or JBoss), MySQL (or a better supported database, such as PostgreSQL)) and support programs (ImageMagick, SWF Tools, OpenOffice)
  2. Checkout the Alfresco sources from SVN with IDEA
  3. Solution package dependency

What can I do next?

Best Regards.

8 REPLIES 8

kalpesh_c2
Star Collaborator
Star Collaborator

Hi Bruce,

For Alfresco Development, you can use alfresco SDK.

For alfresco SDK, you just need maven and java.

After maven is installed, you can refer to this video for alfresco SDK

Video Link : 1119
In that video, there is "Remote Archetype Catalog". It is not available in IntelliJ by default. You need to add simple plugin which is "Maven Archetype Catalogs"

Let me know if you have any further query with this.

Thanks,

Kalpesh

ContCentric

Hi Kalpesh,
Thanks for your reply.
i have builded and deployed alfresco source code successfully on intellij with maven,which source code svn url is http://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/HEAD.

after builded it ,it generate afresco.war in this path "workspace/idea/alfresco/projects/web-client/target/alfresco.war".

then i run the web-client project successfully ,  i can access to alfresco with url http://localhost:8080/alfresco。it seems that alfresco repository deployment is successful.

so my questiones are:

1,what is the differece between Alfresco Repository AMP  and the way i used about alfresco repository deployment?

2,if i want to run share,Do I need to deploy share amp archetype?

kaynezhang
World-Class Innovator
World-Class Innovator

Alfresco Module Package (AMP) can be installed to an Alfresco server in order to extend alfresco.
if you want to install share war ,you need to install share-services amp into alfresco.

Hi,

The AMPs are the default packaging for the alfresco projects.

However, you can deploy your projects in the form of JAR, too. If you are using separate archetype for both share and repository, you need to have installed both archetypes on your IDE.

Whenever you want to deploy only repository part of your alfresco project, you need to deploy only the Alfresco AMP, same as if you want to deploy only share side customization, you need to deploy only Share AMP.

For example- content models and workflows are the part of the repository but their UI/forms would be the part of the share, so in this case, you need to deploy both the amps.

NOTE: Alfresco repository will run on http://localhost:8080/ and Share will run on http://localhost:8081 by default.

Thanks,

Kalpesh

ContCentric

Hi kalpesh,

i have installed share-services amp into alfresco.

my share services version is 5.2.0,but share amp is only 5.1.

when Creating a Share extension project ,the step in "Choose org.alfresco.maven.archetype,  alfresco-amp-archetype",i choose the  newest version  2.2,at last share amp is only 5.1.

warning when i log in.

You're using Share Services version 5.2.0. For Share to run correctly you need to use version 5.1.0.

how to deploy share amp with  5.2.0 version?

kaynezhang
World-Class Innovator
World-Class Innovator

Share-services amp version need to match the Share version.
You can uninstall share services amp 5.2.0 version and install 5.1.0 version.

But I think you can just ignore this warning ,it might run correctly.

Thanks very much!

I want to know platform architecture , Platform services,data model like content model,version model and so on.

Can you give me some good advice?

kaynezhang
World-Class Innovator
World-Class Innovator

You can refer to alfresco docs Alfresco Documentation | Alfresco Documentation