diff --git a/ISSUE_TEMPLATE.md b/ISSUE_TEMPLATE.md new file mode 100644 index 00000000..d6b6ded1 --- /dev/null +++ b/ISSUE_TEMPLATE.md @@ -0,0 +1,67 @@ + + + +## I'm submitting a ... (check one with "x") +``` +[ ] bug report => search github for a similar issue or PR before submitting +[ ] feature request +``` + + + +## Expected Behavior + + + +## Current Behavior + + + +## Possible Solution + + + +## Steps to Reproduce (for bugs) + + +1. +2. +3. +4. +5. + +## Context + + + +## Your Environment + +* Alfresco SDK version used: +* Alfresco version used: +* Output of command 'mvn -version': +* Link to your project: + +## Additional information + diff --git a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/__rootArtifactId__-platform-jar/src/main/resources/alfresco/module/__artifactId__/context/bootstrap-context.xml b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/__rootArtifactId__-platform-jar/src/main/resources/alfresco/module/__artifactId__/context/bootstrap-context.xml index 213c961a..f0a7fa98 100644 --- a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/__rootArtifactId__-platform-jar/src/main/resources/alfresco/module/__artifactId__/context/bootstrap-context.xml +++ b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/__rootArtifactId__-platform-jar/src/main/resources/alfresco/module/__artifactId__/context/bootstrap-context.xml @@ -11,7 +11,7 @@ workflow, and loading custom content models. --> - + alfresco/module/${project.artifactId}/model/content-model.xml diff --git a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/__rootArtifactId__-platform-jar/src/main/resources/alfresco/module/__artifactId__/context/service-context.xml b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/__rootArtifactId__-platform-jar/src/main/resources/alfresco/module/__artifactId__/context/service-context.xml index cfa0e02a..9e87de82 100644 --- a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/__rootArtifactId__-platform-jar/src/main/resources/alfresco/module/__artifactId__/context/service-context.xml +++ b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/__rootArtifactId__-platform-jar/src/main/resources/alfresco/module/__artifactId__/context/service-context.xml @@ -1,28 +1,28 @@ #set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) - - + #set( $symbol_dollar = '$' ) + #set( $symbol_escape = '\' ) + + - + @@ -40,5 +40,5 @@ - + diff --git a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/__rootArtifactId__-platform-jar/src/main/resources/alfresco/module/__artifactId__/module-context.xml b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/__rootArtifactId__-platform-jar/src/main/resources/alfresco/module/__artifactId__/module-context.xml index 745054c3..ef2fa267 100644 --- a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/__rootArtifactId__-platform-jar/src/main/resources/alfresco/module/__artifactId__/module-context.xml +++ b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/__rootArtifactId__-platform-jar/src/main/resources/alfresco/module/__artifactId__/module-context.xml @@ -22,8 +22,11 @@ http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"> + + - diff --git a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/debug.bat b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/debug.bat index 70f01448..f71c66d4 100644 --- a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/debug.bat +++ b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/debug.bat @@ -1,9 +1,12 @@ :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Dev environment startup script for Alfresco Community :: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -@echo off +@ECHO OFF -set MAVEN_OPTS=-Xms256m -Xmx2G - -mvnDebug clean install alfresco:run +IF "%MAVEN_OPTS%" == "" ( + ECHO The environment variable 'MAVEN_OPTS' is not set, setting it for you + SET MAVEN_OPTS=-Xms256m -Xmx2G +) +ECHO MAVEN_OPTS is set to '%MAVEN_OPTS%' +mvnDebug clean install alfresco:run \ No newline at end of file diff --git a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/debug.sh b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/debug.sh index c8f887ea..77643330 100755 --- a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/debug.sh +++ b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/debug.sh @@ -1,3 +1,7 @@ #!/bin/bash - -MAVEN_OPTS="-Xms256m -Xmx2G" mvnDebug clean install alfresco:run +if [[ -z ${MAVEN_OPTS} ]]; then + echo "The environment variable 'MAVEN_OPTS' is not set, setting it for you"; + MAVEN_OPTS="-Xms256m -Xmx2G" +fi +echo "MAVEN_OPTS is set to '$MAVEN_OPTS'"; +mvnDebug clean install alfresco:run \ No newline at end of file diff --git a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/run.bat b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/run.bat index a777e719..08c09dc2 100644 --- a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/run.bat +++ b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/run.bat @@ -1,9 +1,12 @@ :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Dev environment startup script for Alfresco Community :: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -@echo off +@ECHO OFF -set MAVEN_OPTS=-Xms256m -Xmx2G - -mvn clean install alfresco:run +IF "%MAVEN_OPTS%" == "" ( + ECHO The environment variable 'MAVEN_OPTS' is not set, setting it for you + SET MAVEN_OPTS=-Xms256m -Xmx2G +) +ECHO MAVEN_OPTS is set to '%MAVEN_OPTS%' +mvn clean install alfresco:run \ No newline at end of file diff --git a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/run.sh b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/run.sh index 8522beb1..9515fe61 100755 --- a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/run.sh +++ b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/run.sh @@ -1,3 +1,7 @@ #!/bin/bash - -MAVEN_OPTS="-Xms256m -Xmx2G" mvn clean install alfresco:run +if [[ -z ${MAVEN_OPTS} ]]; then + echo "The environment variable 'MAVEN_OPTS' is not set, setting it for you"; + MAVEN_OPTS="-Xms256m -Xmx2G" +fi +echo "MAVEN_OPTS is set to '$MAVEN_OPTS'"; +mvn clean install alfresco:run \ No newline at end of file diff --git a/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/resources/alfresco/module/__artifactId__/context/bootstrap-context.xml b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/resources/alfresco/module/__artifactId__/context/bootstrap-context.xml index 213c961a..f0a7fa98 100644 --- a/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/resources/alfresco/module/__artifactId__/context/bootstrap-context.xml +++ b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/resources/alfresco/module/__artifactId__/context/bootstrap-context.xml @@ -11,7 +11,7 @@ workflow, and loading custom content models. --> - + alfresco/module/${project.artifactId}/model/content-model.xml diff --git a/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/resources/alfresco/module/__artifactId__/module-context.xml b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/resources/alfresco/module/__artifactId__/module-context.xml index 4d6eb22b..f0e3a351 100644 --- a/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/resources/alfresco/module/__artifactId__/module-context.xml +++ b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/resources/alfresco/module/__artifactId__/module-context.xml @@ -21,8 +21,11 @@ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"> + + - diff --git a/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/src/main/resources/alfresco/web-extension/__artifactId__-slingshot-application-context.xml b/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/src/main/resources/alfresco/web-extension/__artifactId__-slingshot-application-context.xml index 277751fa..22741e02 100644 --- a/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/src/main/resources/alfresco/web-extension/__artifactId__-slingshot-application-context.xml +++ b/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/src/main/resources/alfresco/web-extension/__artifactId__-slingshot-application-context.xml @@ -17,7 +17,7 @@ --> - diff --git a/modules/alfresco-rad/pom.xml b/modules/alfresco-rad/pom.xml index f3c28451..0ced37cf 100644 --- a/modules/alfresco-rad/pom.xml +++ b/modules/alfresco-rad/pom.xml @@ -1,42 +1,42 @@ - 4.0.0 - - alfresco-rad - jar + 4.0.0 - Rapid Application Development Support - SDK module for Rapid Development support, such as Alfresco JUnit runner + alfresco-rad + jar - - org.alfresco.maven - alfresco-sdk-aggregator - 3.0.0-SNAPSHOT - ../../pom.xml - + Rapid Application Development Support + SDK module for Rapid Development support, such as Alfresco JUnit runner - - - - org.alfresco - alfresco-repository - ${alfresco.community.default.version} - provided - + + org.alfresco.maven + alfresco-sdk-aggregator + 3.0.0-SNAPSHOT + ../../pom.xml + - - - org.springframework - spring-context - 3.2.17.RELEASE - + + + + org.alfresco + alfresco-repository + ${alfresco.community.default.version} + provided + - - - junit - junit - 4.12 - + + + org.springframework + spring-context + 3.2.17.RELEASE + - + + + junit + junit + 4.12 + + + diff --git a/plugins/alfresco-maven-plugin/pom.xml b/plugins/alfresco-maven-plugin/pom.xml index 628b128b..4874407d 100644 --- a/plugins/alfresco-maven-plugin/pom.xml +++ b/plugins/alfresco-maven-plugin/pom.xml @@ -1,162 +1,162 @@ - 4.0.0 - org.alfresco.maven.plugin - alfresco-maven-plugin - maven-plugin - Maven Alfresco Plugin + 4.0.0 + org.alfresco.maven.plugin + alfresco-maven-plugin + maven-plugin + Maven Alfresco Plugin - - org.alfresco.maven - alfresco-sdk-aggregator - 3.0.0-SNAPSHOT - ../../pom.xml - + + org.alfresco.maven + alfresco-sdk-aggregator + 3.0.0-SNAPSHOT + ../../pom.xml + - - - - org.apache.maven.plugins - maven-plugin-plugin - 3.5 - - - generated-helpmojo - - helpmojo - - - - - - - - - - org.eclipse.m2e - lifecycle-mapping - 1.0.0 - - - - - - - org.apache.maven.plugins - - - maven-plugin-plugin - - [3.2,) - - helpmojo - descriptor - - - - - - - - - - - - - + + + + org.apache.maven.plugins + maven-plugin-plugin + 3.5 + + + generated-helpmojo + + helpmojo + + + + + + + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + + org.apache.maven.plugins + + + maven-plugin-plugin + + [3.2,) + + helpmojo + descriptor + + + + + + + + + + + + + - - - org.apache.maven - maven-plugin-api - 3.2.5 - - - org.apache.maven.plugin-tools - maven-plugin-annotations - 3.5 - - provided - - - org.apache.maven - maven-archiver - 3.1.1 - - - maven-core + + org.apache.maven - - - - - org.codehaus.plexus - plexus-archiver - 3.4 - - - org.apache.maven - maven-artifact - 3.2.5 - - - org.apache.maven - maven-core - 3.2.5 - - - org.apache.httpcomponents - httpclient - 4.5.3 - - - commons-net - commons-net - 3.6 - - - commons-io - commons-io - 2.5 - - - org.alfresco - alfresco-mmt - 5.1.g - - - org.alfrescolabs.alfresco-technical-validation - org.alfrescolabs.alfresco-technical-validation - 0.4.0 - - - org.twdata.maven - mojo-executor - 2.2.0 - - - - org.zeroturnaround - zt-zip - 1.11 - - + maven-plugin-api + 3.2.5 + + + org.apache.maven.plugin-tools + maven-plugin-annotations + 3.5 + + provided + + + org.apache.maven + maven-archiver + 3.1.1 + + + maven-core + org.apache.maven + + + + + org.codehaus.plexus + plexus-archiver + 3.4 + + + org.apache.maven + maven-artifact + 3.2.5 + + + org.apache.maven + maven-core + 3.2.5 + + + org.apache.httpcomponents + httpclient + 4.5.3 + + + commons-net + commons-net + 3.6 + + + commons-io + commons-io + 2.5 + + + org.alfresco + alfresco-mmt + 5.1.g + + + org.alfrescolabs.alfresco-technical-validation + org.alfrescolabs.alfresco-technical-validation + 0.4.0 + + + org.twdata.maven + mojo-executor + 2.2.0 + + + + org.zeroturnaround + zt-zip + 1.11 + + - - - - org.apache.maven.plugins - maven-plugin-plugin - 3.5 - - - - - - - - clojars.org - http://clojars.org/repo - - + + + + org.apache.maven.plugins + maven-plugin-plugin + 3.5 + + + + + + + + clojars.org + http://clojars.org/repo + + diff --git a/plugins/alfresco-maven-plugin/src/main/java/org/alfresco/maven/plugin/InstallMojo.java b/plugins/alfresco-maven-plugin/src/main/java/org/alfresco/maven/plugin/InstallMojo.java index ceb86754..b53e25a4 100644 --- a/plugins/alfresco-maven-plugin/src/main/java/org/alfresco/maven/plugin/InstallMojo.java +++ b/plugins/alfresco-maven-plugin/src/main/java/org/alfresco/maven/plugin/InstallMojo.java @@ -46,7 +46,7 @@ public class InstallMojo extends AbstractMojo { /** * The location of the AMP file(s) to be installed. If this location is a * folder all AMPs contained in the folder are installed, if it's a file it - * get direclty installed on the ${warLocation} + * get directly installed on the ${warLocation} * * @parameter property="maven.alfresco.ampLocation" default-value="${project.build.directory}/${project.build.finalName}.amp" */ @@ -54,9 +54,9 @@ public class InstallMojo extends AbstractMojo { /** * The WAR file or exploded dir to install the AMPs in. If specified - * Defaults to "${project.build.directory}/${project.build.finalName}-war - * - * @parameter property="maven.alfresco.warLocation" default-value="${project.build.directory}/${project.build.finalName}-war" + * Defaults to "${app.amp.client.war.folder} + * + * @parameter property="maven.alfresco.warLocation" default-value="${app.amp.client.war.folder}" */ private File warLocation; diff --git a/plugins/alfresco-maven-plugin/src/site/apt/index.apt.vm b/plugins/alfresco-maven-plugin/src/site/apt/index.apt.vm index eaab0bd9..1a0e441c 100644 --- a/plugins/alfresco-maven-plugin/src/site/apt/index.apt.vm +++ b/plugins/alfresco-maven-plugin/src/site/apt/index.apt.vm @@ -18,7 +18,7 @@ Introduction *{{{./install-mojo.html}alfresco:install}} Installs one or multiple AMPs into an Alfresco WAR / exploded WAR folder embedding {{{http://wiki.alfresco.com/wiki/Module_Management_Tool} Alfresco MMT}} - *{{{./set-version-mojo.html}alfresco:version}} Parses ${project.version} removing literals (for AMP compatibility) and making the <<<$\{noSnapshotVersion\}>>> property available in the POM + *{{{./set-version-mojo.html}alfresco:version}} Parses <<<$\{project.version\}>>> removing literals (for AMP compatibility) and making the <<<$\{noSnapshotVersion\}>>> property available in the POM Full information is available at the {{{./plugin-info.html}goals page}}. diff --git a/pom.xml b/pom.xml index e1127413..12517960 100644 --- a/pom.xml +++ b/pom.xml @@ -173,7 +173,7 @@ org.apache.maven.wagon wagon-webdav-jackrabbit - 2.2 + 2.10 @@ -324,6 +324,7 @@ +