0% found this document useful (0 votes)
103 views21 pages

Alfresco SDK 3.0

The document discusses Alfresco SDK 3.0, including a brief history of the SDK and what's new in version 3.0. Key updates in 3.0 include compatibility with newer versions of Alfresco, aligning to standard Maven structures, empowering developers through features like hot reloading, and increased configurability. The Alfresco Maven Plugin is also discussed, which handles running and testing modules and can be configured in various ways.

Uploaded by

Altair Fonseca
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
103 views21 pages

Alfresco SDK 3.0

The document discusses Alfresco SDK 3.0, including a brief history of the SDK and what's new in version 3.0. Key updates in 3.0 include compatibility with newer versions of Alfresco, aligning to standard Maven structures, empowering developers through features like hot reloading, and increased configurability. The Alfresco Maven Plugin is also discussed, which handles running and testing modules and can be configured in various ways.

Uploaded by

Altair Fonseca
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 21

Alfresco SDK 3.

0
Ole Hejlskov
Product Manager, Developer Platform
• Brief History

• What’s new in Alfresco SDK 3.0

• …. ”about that Maven plugin.. ??”


Agenda
• Demo

• Questions
Brief History
Alfresco Maven SDK Founded by Gab and Maurizio - Code migrated to GitHub - SDK 2.2 released
- All-in-one + Repo AMP archetypes - 2.0 released - Bug fixes
- Limited features - First release on Maven Central - Compatibility issues
- Mostly focused on building AMPS and running - Fully supported by Alfresco
- Renamed to “Alfresco SDK”
- Hot reloading
- Spring loaded for Java hot reloading
- Functional and regression testing
- Share AMP support

2009 2013 2014 2014 2016

- 2.1 released
- Improved hot reloading
- Full documentation revamp
Alfresco Maven SDK 1.1.1
- Remote unit test runner
- JRebel support
- Solr support
What’s new in Alfresco SDK 3.0
Alfresco SDK 3.0 Vision

Compatibility Align to standards Empower Developers Configurable


• 4.2.x à 5.2.x • Revamp archetypes • Hot reloading • AMPs still
• Easy upgrades • JAR Support • Integration testing supported as an
assembly
• Full control over the
Alfresco Maven
Plugin
• SDK 3.0 is compatible with:
– Alfresco One 4.2.x
– Alfresco One 5.0.x
– Alfresco One 5.1.x
– Alfresco Content Services 5.2.x
(and all the community releases)
Compatibility
• Switching between versions is easy:
– <alfresco.platform.version />
– <alfresco.share.version />

• Upgrades are easy is one line:


– <alfresco.sdk.version />
• All SDK 3.0 projects will produce a JAR

• Archetypes has been revamped to align with a


standard Maven JAR directory structure

• No forced parent pom


Align to standards
• All-In-One reduced to three modules
– Platform JAR
– Share JAR
– Integration Tests
(No more war or runner modules)

• All “run” logic moved to Alfresco Maven


Plugin, no more profiles
• Hot Reloading via HotSwap Agent (DCEVM) or
JRebel

• Improved Integration Testing


– Execute integration tests against the full stack
Empowering without having to start up the context
– If the stack is not running it will spin it up
Developers
– Integrates well with IDE’s, almost instant results
when executing tests
• Alfresco Maven Plugin has 40 different
configuration parameters, e.g:
– <enablePlatform />, <enableShare />,
<enableSolr/>, <enableMySQL />,
<platformModules />, <shareModules />

Configurable • AMPs are still supported as an assembly, if


you need to bring in 3rd party dependencies or
override OOTB files
Alfresco Maven Plugin
• The Alfresco Maven Plugin handles running
and testing your modules

• Install 3rd party dependencies (both AMPs and


JARs)

Alfresco Maven Plugin • Start the Platform, Solr, Share, API Explorer
(Also allows you to deploy a custom WAR)

• Can be configured to a lot of common use


cases – over 40 different configuration
parameters

• Executed with “mvn install alfresco:run”


Alfresco Maven Plugin – “Run (alfresco:run)”
Setup Solr (if enabled)
Unpack Solr config Replace Solr Config placeholders

Build Platform WAR (if enabled)


Install AMP
Unpack Depending on version, comment
modules using Install JAR modules
alfresco.war out Secure Comms for Solr
MMT

Copy alfresco- Install custom WAR file in local


Copy License Package WAR file
global.properties Maven repository
Alfresco Maven Plugin – “Run (alfresco:run)”
Build Share WAR (if enabled)
Install AMP
Copy log4j and share-config-
Unpack share.war modules using Install JAR modules
custom.xml
MMT

Change port (if Install custom WAR file in local


Package WAR file
specified) Maven repository

Start Tomcat (if enabled)


Setup paths and system
Add dependencies Add DB Drivers Add webapps
properties (eg. solr.solr.home)

Fork the process? Configure port Start Tomcat


Alfresco Maven Plugin
Sample Configuration
Demo
Questions?
</presentation>

You might also like