This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<pluginManagement> | |
<plugins> | |
<!-- | |
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 | |
module. | |
--> | |
<!-- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dependencyManagement> | |
<dependencies> | |
<!-- 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 | |
--> | |
<dependency> | |
<groupId>${alfresco.groupId}</groupId> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Alfresco Maven Plugin version to use --> | |
<alfresco.sdk.version>3.0.0</alfresco.sdk.version> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
<!-- 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 alfresco-global.properties with the | |
'dir.root' property. --> | |
<alfresco.data.location>${session.executionRootDirectory}/alf_data_dev</alfresco.data.location> | |
<!-- Duplicated with alfresco.solrHome in the plugin, we need them out here to do filtering --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<parent> | |
<groupId>org.alfresco.maven</groupId> | |
<artifactId>alfresco-sdk-parent</artifactId> | |
<version>2.1.1</version> | |
</parent> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mvn archetype:generate -Dfilter=org.alfresco: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ifconfig eth1 up && eth1=`ifconfig | grep eth1 | sed 's/.*HWaddr //g'` && cat /etc/sysconfig/network-scripts/ifcfg-eth0 | sed "s/HWADDR.*/HWADDR=$eth1/" | sed "s/eth0/eth1/g" > /etc/sysconfig/network-scripts/ifcfg-eth1 && rm /etc/sysconfig/network-scripts/ifcfg-eth0 && service network restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.swazzy.viewresolver; | |
import java.util.Iterator; | |
import java.util.List; | |
import java.util.Locale; | |
import java.util.Map; | |
import org.apache.log4j.Logger; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.mobile.device.Device; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
id: "HEADER_LOGO", | |
name: "alfresco/logo/Logo", | |
align: "left", | |
config: | |
{ | |
logoClasses: "alfresco-logo-only", | |
currentTheme: theme, | |
logoSrc: getHeaderLogoUrl() | |
} |