mirror of
https://github.com/Alfresco/alfresco-sdk.git
synced 2025-05-26 17:25:11 +00:00
This commit is contained in:
parent
377aaa5459
commit
ceed7af6fe
@ -1,19 +1,8 @@
|
|||||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
@ECHO OFF
|
||||||
:: Dev environment startup script for Alfresco Community ::
|
|
||||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
|
||||||
@echo off
|
|
||||||
|
|
||||||
set springloadedfile=%HOME%\.m2\repository\org\springframework\springloaded\@@springloaded.version@@\springloaded-@@springloaded.version@@.jar
|
IF "%MAVEN_OPTS%" == "" (
|
||||||
|
ECHO The environment variable 'MAVEN_OPTS' is not set, setting it for you
|
||||||
if not exist %springloadedfile% (
|
SET MAVEN_OPTS=-Xms256m -Xmx2G -XX:PermSize=300m
|
||||||
mvn validate -Psetup
|
|
||||||
)
|
)
|
||||||
|
ECHO MAVEN_OPTS is set to '%MAVEN_OPTS%'
|
||||||
:: Use these settings if you're using JDK7
|
mvn clean install -Prun
|
||||||
:: set MAVEN_OPTS=-javaagent:"%springloadedfile%" -noverify -Xms256m -Xmx2G -XX:PermSize=300m
|
|
||||||
|
|
||||||
:: Spring loaded does not work very well with 5.1 at the moment, breaks the H2 db after first run and then restart
|
|
||||||
:: set MAVEN_OPTS=-javaagent:"%springloadedfile%" -noverify -Xms256m -Xmx2G
|
|
||||||
set MAVEN_OPTS=-noverify -Xms256m -Xmx2G
|
|
||||||
|
|
||||||
mvn clean install -Prun -nsu
|
|
@ -1,15 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Downloads the spring-loaded lib if not existing and runs the full all-in-one
|
if [[ -z ${MAVEN_OPTS} ]]; then
|
||||||
# (Alfresco + Share + Solr) using the runner project
|
echo "The environment variable 'MAVEN_OPTS' is not set, setting it for you";
|
||||||
springloadedfile=~/.m2/repository/org/springframework/springloaded/@@springloaded.version@@/springloaded-@@springloaded.version@@.jar
|
MAVEN_OPTS="-Xms256m -Xmx1524m -XX:PermSize=300m"
|
||||||
|
|
||||||
if [ ! -f $springloadedfile ]; then
|
|
||||||
mvn validate -Psetup
|
|
||||||
fi
|
fi
|
||||||
|
echo "MAVEN_OPTS is set to '$MAVEN_OPTS'";
|
||||||
# Use these settings if you're using JDK7
|
mvn clean install -Prun
|
||||||
# MAVEN_OPTS="-javaagent:$springloadedfile -noverify -Xms256m -Xmx2G -XX:PermSize=300m" mvn install -Prun
|
|
||||||
|
|
||||||
# Spring loaded does not work very well with 5.1 at the moment, breaks the H2 db after first run and then restart
|
|
||||||
#MAVEN_OPTS="-javaagent:$springloadedfile -noverify -Xms256m -Xmx2G" mvn clean install -Prun
|
|
||||||
MAVEN_OPTS="-noverify -Xms256m -Xmx2G" mvn clean install -Prun
|
|
@ -1,24 +1,8 @@
|
|||||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
@ECHO OFF
|
||||||
:: Dev environment startup script for Alfresco Community. ::
|
|
||||||
:: ::
|
|
||||||
:: Downloads the spring-loaded lib if not existing and ::
|
|
||||||
:: runs the Repo AMP applied to Alfresco WAR. ::
|
|
||||||
:: Note. the Share WAR is not deployed. ::
|
|
||||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
|
||||||
@echo off
|
|
||||||
|
|
||||||
set springloadedfile=%HOME%\.m2\repository\org\springframework\springloaded\@@springloaded.version@@\springloaded-@@springloaded.version@@.jar
|
IF "%MAVEN_OPTS%" == "" (
|
||||||
|
ECHO The environment variable 'MAVEN_OPTS' is not set, setting it for you
|
||||||
if not exist %springloadedfile% (
|
SET MAVEN_OPTS=-Xms256m -Xmx2G -XX:PermSize=300m
|
||||||
mvn validate -Psetup
|
|
||||||
)
|
)
|
||||||
|
ECHO MAVEN_OPTS is set to '%MAVEN_OPTS%'
|
||||||
:: Use these settings if you're using JDK7
|
mvn clean install -Pamp-to-war
|
||||||
:: set MAVEN_OPTS=-javaagent:"%springloadedfile%" -noverify -Xms256m -Xmx2G -XX:PermSize=300m
|
|
||||||
|
|
||||||
:: Spring loaded does not work very well with 5.1 at the moment, breaks the H2 db after first run and then restart
|
|
||||||
::set MAVEN_OPTS=-javaagent:"%springloadedfile%" -noverify -Xms256m -Xmx2G
|
|
||||||
set MAVEN_OPTS=-noverify -Xms256m -Xmx2G
|
|
||||||
|
|
||||||
mvn integration-test -Pamp-to-war -nsu
|
|
||||||
|
|
||||||
|
@ -1,16 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Downloads the spring-loaded lib if not existing and
|
if [[ -z ${MAVEN_OPTS} ]]; then
|
||||||
# runs the Repo AMP applied to Alfresco WAR.
|
echo "The environment variable 'MAVEN_OPTS' is not set, setting it for you";
|
||||||
# Note. the Share WAR is not deployed.
|
MAVEN_OPTS="-Xms256m -Xmx1524m -XX:PermSize=300m"
|
||||||
springloadedfile=~/.m2/repository/org/springframework/springloaded/@@springloaded.version@@/springloaded-@@springloaded.version@@.jar
|
|
||||||
|
|
||||||
if [ ! -f $springloadedfile ]; then
|
|
||||||
mvn validate -Psetup
|
|
||||||
fi
|
fi
|
||||||
|
echo "MAVEN_OPTS is set to '$MAVEN_OPTS'";
|
||||||
# Use these settings if you're using JDK7
|
mvn clean install -Pamp-to-war
|
||||||
# MAVEN_OPTS="-javaagent:$springloadedfile -noverify -Xms256m -Xmx2G -XX:PermSize=300m" mvn install -Prun
|
|
||||||
|
|
||||||
# Spring loaded does not work very well with 5.1 at the moment, breaks the H2 db after first run and then restart
|
|
||||||
#MAVEN_OPTS="-javaagent:$springloadedfile -noverify -Xms256m -Xmx2G" mvn integration-test -Pamp-to-war
|
|
||||||
MAVEN_OPTS="-noverify -Xms256m -Xmx2G" mvn integration-test -Pamp-to-war
|
|
@ -1,20 +1,17 @@
|
|||||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
@ECHO OFF
|
||||||
:: Dev environment startup script for Alfresco Community. ::
|
|
||||||
:: ::
|
|
||||||
:: Downloads the spring-loaded lib if not existing and ::
|
|
||||||
:: runs the Share AMP applied to Share WAR. ::
|
|
||||||
:: Note. requires Alfresco.war to be running in another ::
|
|
||||||
:: Tomcat on port 8080. ::
|
|
||||||
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
|
||||||
@echo off
|
|
||||||
|
|
||||||
set springloadedfile=%HOME%\.m2\repository\org\springframework\springloaded\@@springloaded.version@@\springloaded-@@springloaded.version@@.jar
|
IF "%MAVEN_OPTS%" == "" (
|
||||||
|
ECHO The environment variable 'MAVEN_OPTS' is not set, setting it for you
|
||||||
|
|
||||||
if not exist %springloadedfile% (
|
SET springloadedfile=%HOME%\.m2\repository\org\springframework\springloaded\1.2.5.RELEASE\springloaded-1.2.5.RELEASE.jar
|
||||||
mvn validate -Psetup
|
|
||||||
|
if not exist %springloadedfile% (
|
||||||
|
mvn validate -Psetup
|
||||||
|
)
|
||||||
|
|
||||||
|
# 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)
|
||||||
|
SET MAVEN_OPTS=-javaagent:"%springloadedfile%" -noverify
|
||||||
)
|
)
|
||||||
|
ECHO MAVEN_OPTS is set to '%MAVEN_OPTS%'
|
||||||
:: Spring loaded can be used with the Share AMP project
|
mvn clean install -Pamp-to-war
|
||||||
set MAVEN_OPTS=-javaagent:"%springloadedfile%" -noverify
|
|
||||||
|
|
||||||
mvn integration-test -Pamp-to-war -nsu
|
|
@ -1,11 +1,19 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Downloads the spring-loaded lib if not existing and runs the Share AMP applied to Share WAR
|
# Note. This script requires Alfresco.war to be running in another Tomcat on port 8080
|
||||||
# Note. requires Alfresco.war to be running in another Tomcat on port 8080
|
|
||||||
springloadedfile=~/.m2/repository/org/springframework/springloaded/@@springloaded.version@@/springloaded-@@springloaded.version@@.jar
|
|
||||||
|
|
||||||
if [ ! -f $springloadedfile ]; then
|
if [[ -z ${MAVEN_OPTS} ]]; then
|
||||||
mvn validate -Psetup
|
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/@@springloaded.version@@/springloaded-@@springloaded.version@@.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
|
fi
|
||||||
|
echo "MAVEN_OPTS is set to '$MAVEN_OPTS'";
|
||||||
# Spring loaded can be used with the Share AMP project
|
mvn clean install -Pamp-to-war
|
||||||
MAVEN_OPTS="-javaagent:$springloadedfile -noverify" mvn integration-test -Pamp-to-war
|
|
Loading…
x
Reference in New Issue
Block a user