Presentation is loading. Please wait.

Presentation is loading. Please wait.

From Venus to Mars Developer land Real world Maven Alfresco SDK is fun! -Pamp-to-war Alfresco AMP Archetype Share AMP Archetype.

Similar presentations


Presentation on theme: "From Venus to Mars Developer land Real world Maven Alfresco SDK is fun! -Pamp-to-war Alfresco AMP Archetype Share AMP Archetype."— Presentation transcript:

1

2 From Venus to Mars Developer land Real world

3 Maven Alfresco SDK is fun! -Pamp-to-war Alfresco AMP Archetype Share AMP Archetype

4 What about deployments? Real world has environments … … and integrated systems TES T PREPRO TESTPREPRO

5 REPO SHARE TEST + PRE + PRO Properties everywhere INT 1 INT 2 INT 3 INT 1 INT 2 INT 3

6 Shared properties REPO SHARE

7 Alfresco Repo properties alfresco-global.properties Packaging this file inside AMP module Or including new entries in Alfresco shared folder original file No possibility to configure it by environment

8 Alfresco Share properties No visibility for resources in shared alfresco-global.properties Custom properties files or custom messages files No possibility to configure it by environment No possibility to share props with repo

9 TEST PRE PRO Our approach Maven Alfresco SDK to the rescue profiles properties-maven-plugin maven-antrun-plugin TEST PRE PRO TEST PRE PRO AMP

10 TEST PRE PRO Our approach Maven Alfresco SDK to the rescue profiles properties-maven-plugin maven-antrun-plugin TEST PRE PRO TEST PRE PRO AMP

11 Properties files external.system.url=test.external-system.com conf/test.alfresco-amp.properties external.system.url=pre.external-system.com conf/pre.alfresco-amp.properties external.system.url=external-system.com conf/pro.alfresco-amp.properties TEST PRE PRO

12 pom.xml - environments test pre pro

13 pom.xml – properties plugin org.codehaus.mojo properties-maven-plugin ${user.dir}/conf/${env}.alfresco-amp.properties validate read-project-properties

14 pom.xml – AntRun plugin maven-antrun-plugin package run Repo + Share

15 <bean id="externalConnection" class="es.keensoft.alfresco.ExternalConnection”> Using values … or by message property injection amp/config/alfresco/module/service-context.xml

16 Packaging AMPs for TEST environment available at dist/test/amps dist/test/amps_share $ mvn clean package -Ptest AMP

17 Real life A sample on where it can be useful eSignature service Server signatureClient signatureVerification

18 Real life A sample on where it can be useful eSignature service Server signatureClient signatureVerification

19 # Server signature url.SignatureServer=http://preservicios3.aragon.es/asf/services/ SignatureServer # Verification url.PolicyManager=http://preservicios3.aragon.es/asf/services/Po licyManager # Client signature url.websigner=https://preservicios3.aragon.es/firma/js/WS.js Properties conf/pre.alfresco-ast.properties

20 Use case AMP Repo <bean id="asfSignatureSystem” class="es.aragon.ast.alfresco.sign.impl.external.ASFSignatureSystem" > AMP Share

21 Final marks Using additional maven plugins to extend Maven Alfresco SDK functionalities Ready to deploy AMPs are produced by environment Version organization can be added to store each distributed AMP

22 Resources GitHub http://github.com/keensoft http://github.com/keensoft Twitter @AngelBorroy Blog http://www.keensoft.es/blog


Download ppt "From Venus to Mars Developer land Real world Maven Alfresco SDK is fun! -Pamp-to-war Alfresco AMP Archetype Share AMP Archetype."

Similar presentations


Ads by Google