Skip to content

Instantly share code, notes, and snippets.

View share-plugin-pom.xml
<!-- Filter the test resource files in the AIO parent project, and do property substitutions.
We need this config so this is done before the Alfresco Maven Plugin 'run' is executed. -->
<!-- Run only for the AIO parent Project -->
alex4u2nv / pom.xml
Created March 19, 2018 20:59
View pom.xml
Build an AMP if 3rd party libs are needed by the extensions
JARs are the default artifact produced in your modules, if you want to build an amp for each module
you have to enable this plugin and inspect the src/main/assembly.xml file if you want to customize
the layout of your AMP. The end result is that Maven will produce both a JAR file and an AMP with your
alex4u2nv / pom.xml
Created March 19, 2018 20:58
View pom.xml
<!-- This will import the dependencyManagement for all artifacts in the selected Alfresco platform.
NOTE: You still need to define dependencies in your POM, but you can omit version as
it's enforced by this dependencyManagement.
NOTE: It defaults to the latest version this SDK pom has been tested with,
but alfresco version can/should be overridden in your project's pom
alex4u2nv / alfresco-upgrade-pom.xml
Created March 19, 2018 20:57
View alfresco-upgrade-pom.xml
<!-- Alfresco Maven Plugin version to use -->
<!-- Alfresco Data directory, which will contain: Content Store (i.e. the files we upload) Database (i.e. the metadata for the uploaded files) Search index (i.e. the indexed content and metadata) Configured in with the
'dir.root' property. -->
<!-- Duplicated with alfresco.solrHome in the plugin, we need them out here to do filtering -->
alex4u2nv / alfresco-sdk-pom.xml
Created March 19, 2018 20:55
View alfresco-sdk-pom.xml
alex4u2nv / gist:fd48a33741da87bccc3f8e61adbcd193
Created March 19, 2018 20:53
View gist:fd48a33741da87bccc3f8e61adbcd193
mvn archetype:generate -Dfilter=org.alfresco:
alex4u2nv /
Created November 4, 2017 19:34
aws ec2 describe-volumes --filters Name=status,Values=available --query 'Volumes[*].{ID:VolumeId}' |grep "ID" |cut -d: -f2 |xargs -n 1 aws ec2 delete-volume --volume-id
View logo
alex4u2nv / share-custom-module-context.xml
Last active August 29, 2015 14:22
View share-custom-module-context.xml
<!-- example custom-config.xml bootstrap -->
<bean id="custom.module.config" class="org.springframework.extensions.config.ConfigBootstrap" init-method="register">
<property name="configService" ref="web.config" />
<property name="configs">
alex4u2nv / gist:2292a4ab84119397d619
Created August 12, 2014 20:23
Import Software Engineering Space Template.js
View gist:2292a4ab84119397d619
var mQuery = {
query: "select * from cmis:folder where contains " +
"('PATH:\"/app:company_home/app:dictionary/app:space_templates/*\"') " +
"and cmis:name='Software Engineering Project'",
language: "cmis-alfresco"
var results = search.query(mQuery);
//copy the template into our Document Folder