From 3735773e7166569e68d2aec76d6aa800480942c3 Mon Sep 17 00:00:00 2001 From: Maurizio Pillitu Date: Fri, 25 Jul 2014 15:22:58 +0200 Subject: [PATCH 1/4] fixes issue #163. junit dependency definition on amp-archetype, I removed it where unnecessary (while keeping junit in the test build scope) --- .../resources/archetype-resources/pom.xml | 28 ++++++------ .../resources/archetype-resources/pom.xml | 8 +--- .../resources/archetype-resources/pom.xml | 44 ++++++++----------- poms/alfresco-sdk-parent/pom.xml | 24 +++++++--- 4 files changed, 53 insertions(+), 51 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 e552c3db..9e16d543 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 @@ -14,20 +14,20 @@ @@alfresco.sdk.parent.version@@ - - ${alfresco_target_groupId} - - ${alfresco_target_version} + ${alfresco_target_groupId} + + WARN @@ -39,10 +39,10 @@ - ${alfresco.groupId} diff --git a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/pom.xml b/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/pom.xml index ebc1ed8e..45fce7e4 100644 --- a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/pom.xml +++ b/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/pom.xml @@ -28,7 +28,7 @@ ${alfresco_target_groupId} - ${alfresco_target_version} + WARN alf_data_dev - - junit - junit - + - - ${alfresco_target_groupId} - - ${alfresco_target_version} + + ${alfresco_target_groupId} + + WARN alf_data_dev local - - - 8081 + + + 8081 + - junit - junit - 4.8.1 - test + org.springframework.extensions.surf + spring-surf-api + 1.2.1-M16 + provided + + + + + + + org.alfresco.maven @@ -757,5 +757,17 @@ + + enterprise + + 4.2.2 + + + + alfresco-private + https://artifacts.alfresco.com/nexus/content/groups/private + + + From ed17a67187e9cd277596cb91baaef2ec4015f62b Mon Sep 17 00:00:00 2001 From: Maurizio Pillitu Date: Fri, 25 Jul 2014 15:46:40 +0200 Subject: [PATCH 2/4] commented alfresco.client.war.version, which defaults to alfresco.version --- .../src/main/resources/archetype-resources/pom.xml | 2 +- .../src/main/resources/archetype-resources/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/pom.xml b/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/pom.xml index 45fce7e4..67c5688c 100644 --- a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/pom.xml +++ b/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/pom.xml @@ -38,7 +38,7 @@ . | Could be org.alfresco or your corporate groupId --> ${alfresco_target_amp_client_war_groupId} - ${alfresco_target_amp_client_war_version} + local diff --git a/archetypes/share-amp-archetype/src/main/resources/archetype-resources/pom.xml b/archetypes/share-amp-archetype/src/main/resources/archetype-resources/pom.xml index ede03741..29af1879 100644 --- a/archetypes/share-amp-archetype/src/main/resources/archetype-resources/pom.xml +++ b/archetypes/share-amp-archetype/src/main/resources/archetype-resources/pom.xml @@ -39,7 +39,7 @@ . | Could be org.alfresco | org.alfresco.enterprise or your corporate groupId --> ${alfresco_target_amp_client_war_groupId} - ${alfresco_target_amp_client_war_version} + local From feb0d736daeee9b1682a6b9eadb4a805f39d710f Mon Sep 17 00:00:00 2001 From: Maurizio Pillitu Date: Fri, 25 Jul 2014 18:11:19 +0200 Subject: [PATCH 3/4] added documentation for issue #163 --- poms/alfresco-sdk-parent/src/site/apt/sdk-profiles.apt.vm | 4 +++- src/site/apt/prerequisites.apt.vm | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/poms/alfresco-sdk-parent/src/site/apt/sdk-profiles.apt.vm b/poms/alfresco-sdk-parent/src/site/apt/sdk-profiles.apt.vm index f701eaf9..f89722d0 100644 --- a/poms/alfresco-sdk-parent/src/site/apt/sdk-profiles.apt.vm +++ b/poms/alfresco-sdk-parent/src/site/apt/sdk-profiles.apt.vm @@ -25,8 +25,10 @@ SDK Available Profiles | enable-amp-testing | Allows AMP unit testing | Automatic if <<>> is present | test | *-----------*--------------*-------------*-------------* | enable-amp | Activates AMP packaging | Automatic if <<>> is present | test | +*-----------*--------------*-------------*-------------* +| enterprise | Uses Alfresco Enterprise 4.2.2 version (check {{{http://docs.alfresco.com/4.2/tasks/dev-extensions-maven-sdk-tutorials-configure-maven-enterprise.html} configuration steps on Alfresco Docs}}) | Manual: <<<-Penterprise>>> | | *-----------+--------------+-------------+-------------+ - + The full list of available profiles (with their activation conditions) can be instead found in the <<>> section of the {{{https://artifacts.alfresco.com/nexus/index.html#nexus-search;gav~org.alfresco.maven~alfresco-sdk-parent~${project.version}~pom~}Alfresco SDK POM}}. diff --git a/src/site/apt/prerequisites.apt.vm b/src/site/apt/prerequisites.apt.vm index a78d0947..528c36a7 100644 --- a/src/site/apt/prerequisites.apt.vm +++ b/src/site/apt/prerequisites.apt.vm @@ -27,7 +27,8 @@ Maven Alfresco SDK\x99 Pre-Requisites Alfresco platform is retrieved automatically from {{{https://artifacts.alfresco.com} the Alfresco Artifacts Repository}} based on the <<>> and <<>> POM properties - + * If you're an Alfresco customer, you can setup a ~/.m2/settings.xml as documented on {{{http://docs.alfresco.com/4.2/tasks/dev-extensions-maven-sdk-tutorials-configure-maven-enterprise.html} Alfresco Docs page}} and specify -Penterprise on your maven build command to use Alfresco Enterprise 4.2.2 version + H2 Embedded Support Pre-Requisites This SDK allows H2 embedded run of Alfresco (<>: this is an unsupported configuration for Alfresco Enterprise) leveraging From 17350c43281ad73a7437a057a65120af7d93cb51 Mon Sep 17 00:00:00 2001 From: Maurizio Pillitu Date: Fri, 25 Jul 2014 18:15:23 +0200 Subject: [PATCH 4/4] changed Alfresco private repository id to alfresco-private-repository, in order to be compliant with http://docs.alfresco.com/4.2/tasks/dev-extensions-maven-sdk-tutorials-configure-maven-enterprise.html (issue #163) --- poms/alfresco-sdk-parent/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poms/alfresco-sdk-parent/pom.xml b/poms/alfresco-sdk-parent/pom.xml index 53a9d556..27342384 100644 --- a/poms/alfresco-sdk-parent/pom.xml +++ b/poms/alfresco-sdk-parent/pom.xml @@ -764,7 +764,7 @@ - alfresco-private + alfresco-private-repository https://artifacts.alfresco.com/nexus/content/groups/private