From 6bc23959b88d3c0c093eac653ac7b8cf80eb8b12 Mon Sep 17 00:00:00 2001 From: Martin Bergljung Date: Fri, 19 Aug 2016 11:56:58 +0100 Subject: [PATCH] Added aikau.version prop and dependency so it can be brought in separately --- .../resources/archetype-resources/pom.xml | 13 ++++++++--- .../resources/archetype-resources/pom.xml | 1 + .../resources/archetype-resources/pom.xml | 22 +++++++++++++++++++ .../org/alfresco/maven/plugin/RunMojo.java | 5 +++++ 4 files changed, 38 insertions(+), 3 deletions(-) diff --git a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/pom.xml b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/pom.xml index 09943878..6deb5011 100644 --- a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/pom.xml +++ b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/pom.xml @@ -41,6 +41,10 @@ 6.5 + + 1.0.82 + - ${project.groupId} - ${artifactId}-share-jar - ${project.version} + + ${alfresco.groupId} + aikau + ${aikau.version} diff --git a/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/pom.xml b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/pom.xml index 3b687a1a..6e76af22 100644 --- a/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/pom.xml +++ b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/pom.xml @@ -112,6 +112,7 @@ diff --git a/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/pom.xml b/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/pom.xml index ac142e65..f6dd4075 100644 --- a/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/pom.xml +++ b/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/pom.xml @@ -26,6 +26,10 @@ 6.5 + + 1.0.82 + 8081 @@ -73,6 +77,24 @@ true + + + + + ${project.groupId} + ${artifactId}-share-jar + ${project.version} + + + + ${alfresco.groupId} + aikau + ${aikau.version} + + diff --git a/plugins/alfresco-maven-plugin/src/main/java/org/alfresco/maven/plugin/RunMojo.java b/plugins/alfresco-maven-plugin/src/main/java/org/alfresco/maven/plugin/RunMojo.java index 6865297d..df263749 100644 --- a/plugins/alfresco-maven-plugin/src/main/java/org/alfresco/maven/plugin/RunMojo.java +++ b/plugins/alfresco-maven-plugin/src/main/java/org/alfresco/maven/plugin/RunMojo.java @@ -439,6 +439,11 @@ public class RunMojo extends AbstractMojo { * @throws MojoExecutionException */ protected void copyAlfrescoLicense() throws MojoExecutionException { + if (alfrescoEdition.equals(ALFRESCO_COMMUNITY_EDITION)) { + getLog().info("NOT copying Alfresco Enterprise license, running Community edition"); + return; + } + final String warOutputDir = getWarOutputDir(PLATFORM_WAR_PREFIX_NAME); final String licDestDir = warOutputDir + "/WEB-INF/classes/alfresco/extension/license";