From 2ba31e6e8bd649ac90a1d94fd991ce1021caf21b Mon Sep 17 00:00:00 2001 From: "Douglas C. R. Paes" Date: Wed, 16 Mar 2016 16:55:40 -0300 Subject: [PATCH] Port to SDK 2.2.0 and Alfresco 5.1.e --- surf/pom.xml | 88 ++++++++++++++++++++++++++++++++++++++++++++++------ surf/run.bat | 3 ++ surf/run.sh | 19 ++++++++++++ 3 files changed, 100 insertions(+), 10 deletions(-) create mode 100644 surf/run.bat create mode 100755 surf/run.sh diff --git a/surf/pom.xml b/surf/pom.xml index 1874ade..2dedc4c 100644 --- a/surf/pom.xml +++ b/surf/pom.xml @@ -1,25 +1,93 @@ - + 4.0.0 + com.softwareloop uploader-plus-surf + 1.0-SNAPSHOT uploader-plus-surf amp - uploader-plus AMP using the Surf framework for Share 4.2.x and - 5.0.x - - http://softwareloop.com/ - + uploader-plus AMP using the Surf framework for Share 5.1.x + http://softwareloop.com/ + com.softwareloop uploader-plus - 1.3-SNAPSHOT + 1.4-SNAPSHOT + - share - /share + + + + + + + + ${alfresco.share.artifactId} + + 8081 + + http://localhost:8080/alfresco + - + + + + + + ${alfresco.groupId} + alfresco-platform-distribution + ${alfresco.version} + pom + import + + + + + + + + ${alfresco.groupId} + share + ${alfresco.version} + classes + provided + + + org.springframework.extensions.surf + spring-surf-api + provided + + + + + + + + net.alchim31.maven + yuicompressor-maven-plugin + + + + \ No newline at end of file diff --git a/surf/run.bat b/surf/run.bat new file mode 100644 index 0000000..ae97ed3 --- /dev/null +++ b/surf/run.bat @@ -0,0 +1,3 @@ +@ECHO OFF + +mvn clean install -Pamp-to-war \ No newline at end of file diff --git a/surf/run.sh b/surf/run.sh new file mode 100755 index 0000000..3ce06cc --- /dev/null +++ b/surf/run.sh @@ -0,0 +1,19 @@ +#!/bin/bash +# Note. This script requires Alfresco.war to be running in another Tomcat on port 8080 + +if [[ -z ${MAVEN_OPTS} ]]; then + echo "The environment variable 'MAVEN_OPTS' is not set, setting it for you"; + + # Downloads the spring-loaded lib if not existing and runs the Share AMP applied to Share WAR + springloadedfile=~/.m2/repository/org/springframework/springloaded/1.2.5.RELEASE/springloaded-1.2.5.RELEASE.jar + + if [ ! -f $springloadedfile ]; then + mvn validate -Psetup + fi + + # Spring loaded can be used with the Share AMP project in 5.1 + # (i.e. it does not have the same problem as Repo AMP and AIO) + MAVEN_OPTS="-javaagent:$springloadedfile -noverify" +fi +echo "MAVEN_OPTS is set to '$MAVEN_OPTS'"; +mvn clean install -Pamp-to-war \ No newline at end of file