Hi ,
I have generated Maven project in eclipse for repo artifacts using 'alfresco-amp-archetype' archetype.
I have Springbean XML file , this needs to be copied to following location
'tomcat\shared\classes\alfresco\extension'
In my amp structure , which folder i should be creating this file (Spring bean file) . What are other configuration i need to be implemented in amp structure before packaging amp and deploying it alfresco.war file ?
I also have java file source , i have created this uder - src/main/java location with required package structure.
thanks a lot
Brijesh
Solved! Go to Solution.
As you are building your extension using amp, you would apply the amp to the alfresco.war. You don't have to worry about the "tomcat\shared\classes\alfresco\extension" path at all.
You can keep your context file in <yourModuleProject>\src\main\amp\config\alfresco\module\<yourModule>\context folder, making sure that "<yourModuleProject>\src\main\amp\config\alfresco\module\<yourModule>\module-context.xml" includes all the context files created under <yourModuleProject>\src\main\amp\config\alfresco\module\<yourModule>\context folder.
OR- You can keep your context file in Folder:
<yourModuleProject>\src\main\amp\config\alfresco\extension
--------------------------------------------------------------------------------
Is there a reason why you choose to go with amp based approach ? How about switching to jar based archetype?
From ACS6.x onwards current amps which are generated using SDK2.x "may or may not" work as is. For ACS6.x, SDK4.x is recommended.
As you are building your extension using amp, you would apply the amp to the alfresco.war. You don't have to worry about the "tomcat\shared\classes\alfresco\extension" path at all.
You can keep your context file in <yourModuleProject>\src\main\amp\config\alfresco\module\<yourModule>\context folder, making sure that "<yourModuleProject>\src\main\amp\config\alfresco\module\<yourModule>\module-context.xml" includes all the context files created under <yourModuleProject>\src\main\amp\config\alfresco\module\<yourModule>\context folder.
OR- You can keep your context file in Folder:
<yourModuleProject>\src\main\amp\config\alfresco\extension
--------------------------------------------------------------------------------
Is there a reason why you choose to go with amp based approach ? How about switching to jar based archetype?
From ACS6.x onwards current amps which are generated using SDK2.x "may or may not" work as is. For ACS6.x, SDK4.x is recommended.
@abhinavmishra14 thanks for pointing out the SDK version . We do have migration plan coming from 5,2 to 6.x . Hope we will have some migration tool to convert current amps to jar .
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.