cancel
Showing results for 
Search instead for 
Did you mean: 

Explain sdk maven 2.x

g_rathod
Star Contributor
Star Contributor
Hi Friends,

As I am new to alfresco maven sdk, I got some links to get started.
I found 3 archtypes
1) repo-amp
2) share-amp
3) all-in-one

I can create structure via one of the above option. I mostly use all-in-one, as it includes solr, alfresco and ready to start.

Following are my queries :

1) where actually alfresco is when we run via all-in-one? (where alfresco extracts) path?
2) I want some minor change do I need to fire which command?   mvn install? 
3) With all-in-one and using mvn install (using sdk 2.1) I am able to generate amp but my changes are not reflected inside WAR.
4) If I want to make changes in repo side, from where I could get source? and how to use it out of box file? like wise we do have previously sdk zip contain source code, what about this in maven?

5) If I use separate repo or share project how do I configure alfresco or Solr to it ? Any documentation?

Somebody feels silly questions but it should be IMP for me Smiley Happy
3 REPLIES 3

mrogers
Star Contributor
Star Contributor
a few answers:   Still getting to grips with maven myself.

When the SDK runs alfresco it downloads and runs an instance of alfresco with a local content store and H2 database.   For me it has put all the configuration below a "alf_data_dev" folder.

Source code is available where its always been which is SVN. (And mirrored to GIT)  Details are on the wiki.   In addition if you use Maven in your IDE it should be able to download the alfresco source code automatically.

If you have an AMP then you need to deploy it to the relevant war.   So you either use the MMT tool supplied or drop it into the "amps" folder and restart.

g_rathod
Star Contributor
Star Contributor
Hi mrogers,

Thanks for quick reply,
I am having problem with share amp project.
I am using all-in-one project, and I get tomcat location is
 C:\Projects\PROJ-SDK2.1-ALF5.0.1\PROJ1\runner\target\tomcat 
AMP is generated properly, but it is not applied to war when we use target  "mvn install"
I tried various targets like  "mvn integration-test -Pamp-to-war"  but it also does not copy my changes to war. but it is reflected into AMP.

Now I do not have separate alfresco installed but we are using inbuild instance of all-in-one project, so there is no folder called "amps" to put amp and apply it.

Help me on this to make  AMP to WAR run successful. I am unable to get  share side client js to be deploy to WAR

eswbitto
Confirmed Champ
Confirmed Champ
@g_rathod,

A couple of things here. If you have your SDK setup correctly then you should be able to make changes to your amp project and see the changes after saving in your IDE.

Have you looked at this video? https://www.youtube.com/watch?v=utYZaVe9Nd0

Also, in your all-in-one amp you need to find in your directory where the files are physically located and make sure you do the run.exe (run.sh if your running linux)

This will let you see an actual alfresco install running with your changes. Forgive me if you already know all this, but I'm using the new SDK and its working for me.