diff --git a/archetypes/alfresco-allinone-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml b/archetypes/alfresco-allinone-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml index 8d1c3710..813c4e58 100644 --- a/archetypes/alfresco-allinone-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml +++ b/archetypes/alfresco-allinone-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml @@ -1,7 +1,7 @@ @@ -39,12 +39,14 @@ **/*-context.xml + **/log4j.properties src/main/resources **/*-context.xml + **/log4j.properties @@ -123,6 +125,7 @@ run.sh run.bat + README.md diff --git a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/README.md b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/README.md new file mode 100644 index 00000000..3594d5e4 --- /dev/null +++ b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/README.md @@ -0,0 +1,34 @@ +# Alfresco AIO Project - SDK 3 + +This is an All-In-One (AIO) project for Alfresco SDK 3.0. + +Run with `mvn clean install -DskipTests=true alfresco:run` or `./run.sh` and verify that it + + * Runs the embedded Tomcat + H2 DB + * Runs Alfresco Platform (Repository) + * Runs Alfresco Solr4 + * Runs Alfresco Share + * Packages both as JAR and AMP assembly for modules + +# Few things to notice + + * No parent pom + * No WAR projects, all handled by the Alfresco Maven Plugin + * No runner project - it's all in the Alfresco Maven Plugin + * Standard JAR packaging and layout + * Works seamlessly with Eclipse and IntelliJ IDEA + * JRebel for hot reloading, JRebel maven plugin for generating rebel.xml, agent usage: `MAVEN_OPTS=-Xms256m -Xmx1G -agentpath:/home/martin/apps/jrebel/lib/libjrebel64.so` + * AMP as an assembly + * [Configurable Run mojo](https://github.com/Alfresco/alfresco-sdk/blob/sdk-3.0/plugins/alfresco-maven-plugin/src/main/java/org/alfresco/maven/plugin/RunMojo.java) in the `alfresco-maven-plugin` + * No unit testing/functional tests just yet + * Resources loaded from META-INF + * Web Fragment (this includes a sample servlet configured via web fragment) + +# TODO + + * Abstract assembly into a dependency so we don't have to ship the assembly in the archetype + * Purge + * Functional/remote unit tests + + + diff --git a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/__rootArtifactId__-platform-jar/src/main/java/platformsample/Demo.java b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/__rootArtifactId__-platform-jar/src/main/java/platformsample/Demo.java index d38144a5..c4cb3efd 100644 --- a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/__rootArtifactId__-platform-jar/src/main/java/platformsample/Demo.java +++ b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/__rootArtifactId__-platform-jar/src/main/java/platformsample/Demo.java @@ -13,6 +13,6 @@ public class Demo { public void init() { - System.out.println("SDK Demo AMP class has been loaded"); + System.out.println("Platform JAR Module class has been loaded"); } } diff --git a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/__rootArtifactId__-platform-jar/src/main/java/platformsample/DemoComponent.java b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/__rootArtifactId__-platform-jar/src/main/java/platformsample/DemoComponent.java index da47b35f..86bf709b 100644 --- a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/__rootArtifactId__-platform-jar/src/main/java/platformsample/DemoComponent.java +++ b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/__rootArtifactId__-platform-jar/src/main/java/platformsample/DemoComponent.java @@ -55,7 +55,7 @@ public class DemoComponent extends AbstractModuleComponent { @Override protected void executeInternal() throws Throwable { System.out.println("DemoComponent has been executed"); - log.debug("Test debug logging. Congratulation your AMP is working"); + log.debug("Test debug logging. Congratulation your JAR Module is working"); log.info("This is only for information purposed. Better remove me from the log in Production"); } diff --git a/archetypes/alfresco-allinone-archetype/src/site/apt/advanced-usage.apt.vm b/archetypes/alfresco-allinone-archetype/src/site/apt/advanced-usage.apt.vm deleted file mode 100644 index 8fb20167..00000000 --- a/archetypes/alfresco-allinone-archetype/src/site/apt/advanced-usage.apt.vm +++ /dev/null @@ -1,39 +0,0 @@ - ------ - Alfresco All-in-One Archetype Advanced Usage - ------ - Gabriele Columbro - ------ - Aug 2014 - ------ - - -All-in-One Archetype properties - - In each of the modules of the archetype (as in the whole Alfresco SDK\x99) properties are configurable at many levels: - - * as POM properties - - * direclty in *.properties, particularly - - * For the <<>> project - - * <</alfresco-global.properties>>> (environment dependent <<>> packaged in the WAR when running directly within the AMP project) - - * For Alfresco/Share AMP projects - - * <</alfresco-global.properties>>> (environment dependent <<>> for test WAR run) - - Build Environment (e.g. local, test, staging, prod) can be easily switched by setting the <<<>>> property in your POM or - adding <<<-Denv=yourEnv>>> on the command line. - -* Common properties - - Archetype behavior can mostly be controlled directly in the POM, via common properties provided by the parent POM. - See {{{../../poms/alfresco-sdk-parent/sdk-properties.html} SDK properties reference}} for details. - -Parent POM and behavior customization - - To customize the behavior of your project, check out full set of the properties and plugin configurations defined in the - {{{./poms/alfresco-sdk-parent/index.html}single entry point parent POM}}. - - One quick way to do that is to use the <<>> to analyze your POM at runtime. diff --git a/archetypes/alfresco-allinone-archetype/src/site/apt/index.apt.vm b/archetypes/alfresco-allinone-archetype/src/site/apt/index.apt.vm deleted file mode 100644 index bd64e4e5..00000000 --- a/archetypes/alfresco-allinone-archetype/src/site/apt/index.apt.vm +++ /dev/null @@ -1,67 +0,0 @@ - ------ - Building AMPs (Alfresco Module Packages) with Maven - ------ - Gabriele Columbro - ------ - Nov 2012 - ------ - -Introduction - - The Alfresco All-in-One Archetype is a multi-module project, - leveraging Alfresco SDK\x99 powerful capabilities to customize and run the full Alfresco platform embedded and all it's components. - The archetype does not require additional download and provides a perfect starting point for full-blown Alfresco projects. - -* Features - - Amongst other features, this archetype provides support for: - - * <<>> packaging support for your projects - - * AMP Dependency management and overlay in an Alfresco Repository or Share WAR - - * Embedded run in Tomcat and embedded H2 database of the full Alfresco suite, including Repository, Share, Solr - - * Support for unit and integration testing and rapid development (using spring-loaded, see run.sh) - - * Seamless IDE integration with Eclipse and Idea - -How to create a project: - - As of version 2.0-beta-3, you can create a project with the latest released archetype with the following command directly from Maven Central: - -+---+ -mvn archetype:generate -Dfilter=org.alfresco.maven.archetype:alfresco-allinone-archetype -+---+ - - For previous versions, you need to use the Alfresco Artifacts repository: - -+---+ -mvn archetype:generate -Dfilter=org.alfresco.maven.archetype:alfresco-allinone-archetype -DarchetypeCatalog=https://artifacts.alfresco.com/nexus/content/groups/public/archetype-catalog.xml -+---+ - - You should then: - - [[1]] Select the <<>> version - - [[2]] Specify the <<>> and <<>> for the project you want to create - - [[3]] () Select Alfresco Version / Edition (current default is: Alfresco Community 5.0.c) - - You can find new Alfresco All-in-One project ready to go in the <<>> folder. - -Quickstart - - Once your project is created: - - * Enter the project folder and run <<<./run.sh>>> (you might need to <<>> to make it executable). This will setup the SDK and start Alfresco, Share and Solr in embedded mode. - - * Wait for the startup of the webapps and then go <<>>. - - * Import the projects in your favorite IDE (with Maven integration) and start developing right away. - -Usage - - - Full instructions on how to use the Alfresco All in One archetype can be found on the {{{./usage.html}usage page}}, while - for more advanced use cases refer to the {{{./advanced-usage.html}advanced usage page}} diff --git a/archetypes/alfresco-allinone-archetype/src/site/apt/usage.apt.vm b/archetypes/alfresco-allinone-archetype/src/site/apt/usage.apt.vm deleted file mode 100644 index 8f69ad84..00000000 --- a/archetypes/alfresco-allinone-archetype/src/site/apt/usage.apt.vm +++ /dev/null @@ -1,85 +0,0 @@ - ------ - Maven Alfresco All-in-One Archetype Usage - ------ - Gabriele Columbro - ------ - Sep 2013 - ------ - -Prerequisites - - See {{{../../prerequisites.html} SDK Pre-Requisites}} to successfully run this archetype. - -Project layout - - The archetype generated multi-module project should look like: - -+---+ - pom.xml - |-> rootArtifactid-repo-amp - |-> rootArtifactid-share-amp - |-> repo - |-> share - |-> solr - |-> runner (a Tomcat embedded runner / integration test runner) -+---+ - -* Modules - - The All-in-One Alfresco project is composed by the following modules: - - * <<>>: An Repository Tier AMP project, demonstrating sample project structure and demo component loading - - * <<>>: An <<>> Repository Extension, overlaying the Alfresco WAR with custom resources / classes - and depending on the <<>> project - - * <<>>: A Share Tier AMP project, demonstrating sample project structure and demo component loading - - * <<>>: A <<>> extension, overlaying the Share WAR with the custom developed <<>> - - * <<>>: An Alfresco <<>> overlay / customization to configure {{{http://solr.apache.org}Apache Solr}} cores properties - - * <<>>: A Tomcat + H2 runner, capable of running all the aforementioned projects in embedded mode for demo / integration-testing purposes - -Usage - - The project provides support for typical development lifecycle use cases like - - * Rapid development, in full IDE integration, and with hot classes reloading (using spring-loaded, check {{{../../prerequisites.html}prerequisites}}). - - * AMP/WAR packaging - - * AMP Unit testing and rapid development - - * run embedded in Tomcat + H2 database. - (<>: this is not a {{{http://www.alfresco.com/services/subscription/supported-platforms/} supported stack}} so use <>) - - * Integration testing - - * AMP to WAR installation and overlay (embedding {{{http://wiki.alfresco.com/wiki/Module_Management_Tool}Alfresco Module Managment Tool}}) - - * release and distribution - - for all the components of the Alfresco landscape. For more information, check the See the {{{./advanced-usage.html}advanced usage page}} page. - - <>: AMPs produced with this project are fully compatible with Alfresco MMT,in fact the Maven Alfresco plugin - used to manage AMPs in this SDK - embeds the official Alfresco MMT to install depended AMPs. - -Commands - - <<>> will automatically set up the SDK and run the webapps embedded to enable rapid development - - Additional common Maven lifecycle commands you want to run from the aggregator are: - - * <<>>: Runs unit tests and packages all customized modules in their respective <<<$\{project.build.directory\}/$\{project.build.finalName\}.amp>>> - - * <<>>: Like <<>> but also installs all modules in local Maven repository to be depended upon - - * <<>>: Like <<>> but skips unit tests - - * <<>>: Like <<>> but also trigger the <<>> project to run Alfresco, Share, Solr and Web Quick Start in Jetty (with H2 embedded database) - - * <<>>: Removes DB, alf_data and log files - -* Commands from from the <<>> project - - * <<>> or <<<'mvn integration-test -Prun'>>> to quickly run already packaged webapps diff --git a/archetypes/alfresco-allinone-archetype/src/site/site.xml b/archetypes/alfresco-allinone-archetype/src/site/site.xml deleted file mode 100644 index 837fea41..00000000 --- a/archetypes/alfresco-allinone-archetype/src/site/site.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file 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 deleted file mode 100644 index d4779ddc..00000000 --- a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/pom.xml +++ /dev/null @@ -1,103 +0,0 @@ - - - 4.0.0 - ${groupId} - ${artifactId} - ${version} - ${artifactId} Repository AMP project - amp - Manages the lifecycle of the ${artifactId} Repository AMP (Alfresco Module Package) - - - org.alfresco.maven - alfresco-sdk-parent - @@alfresco.sdk.parent.version@@ - - - - - - - - - - - - - - - - - ${alfresco.groupId} - alfresco-platform-distribution - ${alfresco.version} - pom - import - - - - - - - - ${alfresco.groupId} - alfresco-repository - - - - - - - enterprise - - - ${alfresco.groupId} - alfresco-enterprise-repository - ${alfresco.version} - provided - - - - - - - diff --git a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/run.bat b/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/run.bat deleted file mode 100644 index 82079dac..00000000 --- a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/run.bat +++ /dev/null @@ -1,19 +0,0 @@ -:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -:: 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 not exist %springloadedfile% ( - mvn validate -Psetup -) - -set MAVEN_OPTS=-javaagent:"%springloadedfile%" -noverify -Xms256m -Xmx2G - -mvn integration-test -Pamp-to-war -nsu -:: mvn integration-test -Pamp-to-war diff --git a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/run.sh b/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/run.sh deleted file mode 100755 index b885425c..00000000 --- a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/run.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash -# Downloads the spring-loaded lib if not existing and -# runs the Repo AMP applied to Alfresco WAR. -# Note. the Share WAR is not deployed. -springloadedfile=~/.m2/repository/org/springframework/springloaded/@@springloaded.version@@/springloaded-@@springloaded.version@@.jar - -if [ ! -f $springloadedfile ]; then -mvn validate -Psetup -fi - -MAVEN_OPTS="-javaagent:$springloadedfile -noverify -Xms256m -Xmx2G" mvn integration-test -Pamp-to-war diff --git a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/extension/templates/webscripts/helloworld.get.html.ftl b/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/extension/templates/webscripts/helloworld.get.html.ftl deleted file mode 100644 index 1e7cfa08..00000000 --- a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/extension/templates/webscripts/helloworld.get.html.ftl +++ /dev/null @@ -1 +0,0 @@ -Message: ${fromJS} ${fromJava} \ No newline at end of file diff --git a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/extension/templates/webscripts/helloworld.get.js b/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/extension/templates/webscripts/helloworld.get.js deleted file mode 100644 index c0a63afd..00000000 --- a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/extension/templates/webscripts/helloworld.get.js +++ /dev/null @@ -1 +0,0 @@ -model["fromJS"] = "Hello World from JS!"; \ No newline at end of file diff --git a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/module/__artifactId__/context/service-context.xml b/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/module/__artifactId__/context/service-context.xml deleted file mode 100644 index 78363d59..00000000 --- a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/module/__artifactId__/context/service-context.xml +++ /dev/null @@ -1,41 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) - - - - - - - - - - - - - - - - - - - - diff --git a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/amp/web/css/demoamp.css b/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/amp/web/css/demoamp.css deleted file mode 100644 index c24bc1bd..00000000 --- a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/amp/web/css/demoamp.css +++ /dev/null @@ -1,16 +0,0 @@ -/* - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - */ \ No newline at end of file diff --git a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/amp/web/jsp/demoamp.jsp b/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/amp/web/jsp/demoamp.jsp deleted file mode 100644 index 027635ba..00000000 --- a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/amp/web/jsp/demoamp.jsp +++ /dev/null @@ -1,17 +0,0 @@ - - This is a demo JSP. When running with -Pamp-to-war, just change this text and it will be automatically reloaded! \ No newline at end of file diff --git a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/amp/web/licenses/README-licenses.txt b/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/amp/web/licenses/README-licenses.txt deleted file mode 100644 index 3ff33baf..00000000 --- a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/amp/web/licenses/README-licenses.txt +++ /dev/null @@ -1,2 +0,0 @@ -This folder (root in the AMP) gets mapped automagically in WEB-INF/licenses -by the MMT or the alfresco-maven-plugin \ No newline at end of file diff --git a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/amp/web/scripts/demoamp.js b/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/amp/web/scripts/demoamp.js deleted file mode 100644 index c24bc1bd..00000000 --- a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/amp/web/scripts/demoamp.js +++ /dev/null @@ -1,16 +0,0 @@ -/* - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - */ \ No newline at end of file diff --git a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/test/java/demoamp/test/DemoComponentTest.java b/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/test/java/demoamp/test/DemoComponentTest.java deleted file mode 100644 index b0b95251..00000000 --- a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/test/java/demoamp/test/DemoComponentTest.java +++ /dev/null @@ -1,86 +0,0 @@ -#set($symbol_pound='#') -#set($symbol_dollar='$') -#set($symbol_escape='\' ) -package ${package}.demoamp.test; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; - -import ${package}.demoamp.DemoComponent; -import org.alfresco.model.ContentModel; -import org.alfresco.repo.security.authentication.AuthenticationUtil; -import org.alfresco.service.cmr.repository.NodeRef; -import org.alfresco.service.cmr.repository.NodeService; -import org.apache.log4j.Logger; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.beans.factory.annotation.Qualifier; -import org.springframework.test.context.ContextConfiguration; -import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; - -import com.tradeshift.test.remote.Remote; -import com.tradeshift.test.remote.RemoteTestRunner; - -/** - * A simple class demonstrating how to run out-of-container tests - * loading Alfresco application context. - * - * This class uses the RemoteTestRunner to try and connect to - * localhost:4578 and send the test name and method to be executed on - * a running Alfresco. One or more hostnames can be configured in the @Remote - * annotation. - * - * If there is no available remote server to run the test, it falls - * back on local running of JUnits. - * - * For proper functioning the test class file must match exactly - * the one deployed in the webapp (either via JRebel or static deployment) - * otherwise "incompatible magic value XXXXX" class error loading issues will arise. - * - * @author Gabriele Columbro - * @author Maurizio Pillitu - * - */ -@RunWith(RemoteTestRunner.class) -@Remote(runnerClass=SpringJUnit4ClassRunner.class) -@ContextConfiguration("classpath:alfresco/application-context.xml") -public class DemoComponentTest { - - private static final String ADMIN_USER_NAME = "admin"; - - static Logger log = Logger.getLogger(DemoComponentTest.class); - - @Autowired - protected DemoComponent demoComponent; - - @Autowired - @Qualifier("NodeService") - protected NodeService nodeService; - - @Test - public void testWiring() { - assertNotNull(demoComponent); - } - - @Test - public void testGetCompanyHome() { - AuthenticationUtil.setFullyAuthenticatedUser(ADMIN_USER_NAME); - NodeRef companyHome = demoComponent.getCompanyHome(); - assertNotNull(companyHome); - String companyHomeName = (String) nodeService.getProperty(companyHome, ContentModel.PROP_NAME); - assertNotNull(companyHomeName); - assertEquals("Company Home", companyHomeName); - } - - @Test - public void testChildNodesCount() { - AuthenticationUtil.setFullyAuthenticatedUser(ADMIN_USER_NAME); - NodeRef companyHome = demoComponent.getCompanyHome(); - int childNodeCount = demoComponent.childNodesCount(companyHome); - assertNotNull(childNodeCount); - // There are 7 folders by default under Company Home - assertEquals(7, childNodeCount); - } - -} diff --git a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/tomcat/context.xml b/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/tomcat/context.xml deleted file mode 100644 index 3a6aef29..00000000 --- a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/tomcat/context.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/archetypes/alfresco-amp-archetype/src/site/apt/advanced-usage.apt.vm b/archetypes/alfresco-amp-archetype/src/site/apt/advanced-usage.apt.vm deleted file mode 100644 index 1cb88391..00000000 --- a/archetypes/alfresco-amp-archetype/src/site/apt/advanced-usage.apt.vm +++ /dev/null @@ -1,62 +0,0 @@ - ------ - Maven Alfresco AMP Archetype Advanced Usage - ------ - Gabriele Columbro - ------ - Nov 2012 - ------ - -AMP Unit Testing - - Unit test your AMP customization is as easy as adding your tests in <<>>. The current module in development - will be added to the test classpath together with all necessary Alfresco Spring contexts. - - Running <<>> will results in your unit tests to be run. You can skip this (<<>>) - adding <<<-DskipTests>>> to your command line. - -AMP Archetype properties - - In the AMP archetype (as in the whole Part of the Maven Alfresco SDK\x99) properties are configurable at many levels: - - * as POM properties - - * direclty in *.properties, particularly - - * <<>> (filtered and packaged in the AMP) - - * <</alfresco-global.properties>>> (environment dependent properties for WAR run embedded) - -* Common properties - - Archetype behavior can mostly be controlled directly in the POM, via common properties provided by the parent POM. - See {{{../../poms/alfresco-sdk-parent/sdk-properties.html} SDK properties reference}} for details. - - -* AMP specific properties - - In addition to the common properties, the following properties are specific of the AMP archetype. You can change - these properties to select a different WAR to install your AMP to (e.g. a pre-customized Alfresco or Share instance): - -+---+ - - ... - - - alfresco - ${alfresco.groupId} - ${alfresco.version} - - ... - -+---+ - -Parent POM and behavior customization - - To customize the behavior of your project, check out full set of the properties and plugin configurations defined in the - {{{../../poms/alfresco-sdk-parent/index.html}single entry point parent POM}}. - - One quick way to do that is to use the <<>> to analyze your POM at runtime. - \ No newline at end of file diff --git a/archetypes/alfresco-amp-archetype/src/site/apt/index.apt.vm b/archetypes/alfresco-amp-archetype/src/site/apt/index.apt.vm deleted file mode 100644 index 466006dd..00000000 --- a/archetypes/alfresco-amp-archetype/src/site/apt/index.apt.vm +++ /dev/null @@ -1,73 +0,0 @@ - ------ - Building AMPs (Alfresco Module Packages) with Maven - ------ - Gabriele Columbro - ------ - Sept 2014 - ------ - -Introduction - - The Alfresco AMP Archetype is a sample fully featured project to manage AMP (Alfresco Module Package) projects. - This archetype can be used for Alfresco Repository. For Share, please refer to the {{{../share-amp-archetype/index.html}Share AMP archetype}} - -* Features - - Amongst other features, this archetype provides support for: - - * <<>> packaging support for your projects - - * AMP dependency management in Maven - - * Installation of AMPs in an Alfresco WAR - - * AMP Unit Testing support. Just run the standard <<>> and see your <<>> Alfresco unit tests run. - An sample Unit Test is provided in this archetype. - - * Embedded run in Tomcat and embedded H2 database for demo purposes, rapid application development and integration testing - (<>: this is not a {{{http://www.alfresco.com/services/subscription/supported-platforms/} supported stack}} so use <>) - - * Support for (remote) Junit and integration testing and rapid development (using spring-loaded, see run.sh) - - * Seamless IDE integration with Eclipse and Idea - -How to create a project: - - As of version 2.0-beta-3, you can create a project with the latest released archetype with the following command directly from Maven Central: - -+---+ -mvn archetype:generate -Dfilter=org.alfresco.maven.archetype:alfresco-amp-archetype -+---+ - - For previous versions, you need to use the Alfresco Artifacts repository: - -+---+ -mvn archetype:generate -Dfilter=org.alfresco.maven.archetype:alfresco-amp-archetype -DarchetypeCatalog=https://artifacts.alfresco.com/nexus/content/groups/public/archetype-catalog.xml -+---+ - - You should then: - - [[1]] Select the <<>> version - - [[2]] Specify the <<>> and <<>> for the project you want to create - - [[3]] () Select Alfresco Version / Edition (current default is: Alfresco Community 4.2.c) - - You can find new Alfresco AMP project ready to go in the <<>> folder. - -Quickstart - - Once your project is created: - - * Enter the project folder and run <<<./run.sh>>> (you might need to <<>> to make it executable). - This will setup the SDK and the Alfresco repository (not Share or Solr). - - * Wait for the startup of the webapp and then go <<>>. - - * Import the project in your favorite IDE (with Maven integration) and start developing right away. - - -Usage - - Full instructions on how to use the Alfresco AMP archetype can be found on the {{{./usage.html}usage page}}, while - for more advanced use cases refer to the {{{./advanced-usage.html}advanced usage page}} diff --git a/archetypes/alfresco-amp-archetype/src/site/apt/usage.apt.vm b/archetypes/alfresco-amp-archetype/src/site/apt/usage.apt.vm deleted file mode 100644 index 5d8604d1..00000000 --- a/archetypes/alfresco-amp-archetype/src/site/apt/usage.apt.vm +++ /dev/null @@ -1,76 +0,0 @@ - ------ - Alfresco AMP Archetype Usage - ------ - Gabriele Columbro - ------ - Sept 2014 - ------ - - -Prerequisites - - See {{{../../prerequisites.html}SDK Pre-Requisites}} to successfully run this archetype. - - -Project layout - - The archetype generated project should look like: - -+---+ - - pom.xml - src/main/amp - |-> module.properties - |-> file-mapping.properties (optional) - |-> config/ - |-> web/ - |-> licenses/ - src/main/java //Java classes to be packaged in the AMP embedded JAR) - src/main/resources //resources to the packaged in the AMP embedded JAR - src/main/resources/META-INF/resources //web resources to the packaged in the AMP embedded JAR, mapped to the root of the webapp as of Servlet 3.0) - src/test/java // Unit tests - src/test/resources // Unit test resources - src/test/properties/ // Environment aware alfresco-global.properties. By default =local - -+---+ - - Basically by default the folder <<>> maps the {{{https://wiki.alfresco.com/wiki/AMP_Files#The_structure_of_an_AMP_file}AMP structure}} and it's where you can build your module. - -Usage - - This project manages an AMP and provides support for typical development lifecycle use cases like: - - * packaging - - * rapid development - - * testing (unit and integration) - - * run embedded - - * integration testing - - * release and distribution of your AMP artifact. - - The AMPs produced with this project are fully compatible with Alfresco MMT, in fact the Maven Alfresco plugin used to manage AMPs in this SDK embeds the official Alfresco MMT to install depdended AMPs. - -Commands - - <<>> will automatically set up the SDK and run the AMP on an Alfresco repo embedded to enable rapid development - - Also, common AMP Maven lifecycle commands you want to run are: - - * <<>>: Runs unit tests and packages AMP in <<<$\{project.build.directory\}/$\{project.build.finalName\}.amp>>> - - * <<>>: Like <<>> but also installs AMP in local Maven repository to be depended upon - - * <<>>: Like <<>> but skips unit tests - - * <<>>: Like <<>> - but also installs and runs the resulting WAR+AMP in Tomcat + H2 embedded from running and development. - This also enables rapid application development features, like hot reloading and remote JUnit running. - When you run this command then you can access in your browser <<< {{{http://localhost:8080/alfresco}}} >>>. - - - * <<>>: Removes DB, alf_data, indexes and log files. Useful to purge the development repo (by default self contained in <<<$\{project.basedir\}/alf_data_dev>>> - diff --git a/archetypes/alfresco-amp-archetype/src/site/site.xml b/archetypes/alfresco-amp-archetype/src/site/site.xml deleted file mode 100644 index e7f68115..00000000 --- a/archetypes/alfresco-amp-archetype/src/site/site.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/archetypes/alfresco-amp-archetype/pom.xml b/archetypes/alfresco-platform-jar-archetype/pom.xml similarity index 100% rename from archetypes/alfresco-amp-archetype/pom.xml rename to archetypes/alfresco-platform-jar-archetype/pom.xml diff --git a/archetypes/alfresco-amp-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml b/archetypes/alfresco-platform-jar-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml similarity index 73% rename from archetypes/alfresco-amp-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml rename to archetypes/alfresco-platform-jar-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml index e5b1c9f0..2676bda7 100644 --- a/archetypes/alfresco-amp-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml +++ b/archetypes/alfresco-platform-jar-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml @@ -1,7 +1,7 @@ @@ -9,7 +9,14 @@ 1.0-SNAPSHOT + + + src/main/assembly + + **/*.xml + + src/main/java @@ -23,7 +30,7 @@ - src/main/amp + src/main/resources ** @@ -32,34 +39,23 @@ **/log4j.properties - - src/main/amp/config/alfresco/module/__artifactId__ - - log4j.properties - - - src/main/amp + src/main/resources **/*-context.xml + **/log4j.properties - + src/test/resources - **/* + ** - + src/test/properties - **/* - - - - tomcat - - **/*.xml + **/*.properties @@ -67,6 +63,7 @@ run.sh run.bat + README.md diff --git a/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/README.md b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/README.md new file mode 100644 index 00000000..9645be8c --- /dev/null +++ b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/README.md @@ -0,0 +1,35 @@ +# Alfresco Platform JAR Module - SDK 3 + +To run use `mvn clean install -DskipTests=true alfresco:run` or `./run.sh` and verify that it + + * Runs the embedded Tomcat + H2 DB + * Runs Alfresco Platform (Repository) + * Runs Alfresco Solr4 + * Packages both as JAR and AMP assembly + + Try cloning it, change the port and play with `enableShare`, `enablePlatform` and `enableSolr`. + + Protip: This module will work just fine as a Share module if the files are changed and + if the enablePlatform and enableSolr is disabled. + +# Few things to notice + + * No parent pom + * WAR assembly is handled by the Alfresco Maven Plugin configuration + * Standard JAR packaging and layout + * Works seamlessly with Eclipse and IntelliJ IDEA + * JRebel for hot reloading, JRebel maven plugin for generating rebel.xml, agent usage: `MAVEN_OPTS=-Xms256m -Xmx1G -agentpath:/home/martin/apps/jrebel/lib/libjrebel64.so` + * AMP as an assembly + * [Configurable Run mojo](https://github.com/Alfresco/alfresco-sdk/blob/sdk-3.0/plugins/alfresco-maven-plugin/src/main/java/org/alfresco/maven/plugin/RunMojo.java) in the `alfresco-maven-plugin` + * No unit testing/functional tests just yet + * Resources loaded from META-INF + * Web Fragment (this includes a sample servlet configured via web fragment) + +# TODO + + * Abstract assembly into a dependency so we don't have to ship the assembly in the archetype + * Purge, + * Functional/remote unit tests + + + 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 new file mode 100644 index 00000000..1d69fc18 --- /dev/null +++ b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/pom.xml @@ -0,0 +1,224 @@ + + + 4.0.0 + ${groupId} + ${artifactId} + ${version} + ${artifactId} Platform Jar Module - SDK 3 + Platform JAR Module (to be included in the alfresco.war) - SDK 3 + jar + + + 3.0.0-SNAPSHOT + + UTF-8 + + + ${session.executionRootDirectory}/alf_data_dev + + + ${alfresco.data.location}/solr + ${solr.home}/alfrescoModels + ${solr.home}/index + + + org.alfresco + alfresco-platform + 5.1.g + 5.1.f + + + alf_dev + alfresco + alfresco + AUTO_SERVER=TRUE;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=10000;MVCC=FALSE;LOCK_MODE=0 + + jdbc:h2:${alfresco.data.location}/h2_data/${alfresco.db.name};${alfresco.db.params} + + org.h2.jdbcx.JdbcDataSource + + + 1.1.6 + + + local + + + + + + + org.alfresco + alfresco-platform-distribution + ${alfresco.platform.version} + pom + import + + + + + + + + ${alfresco.groupId} + alfresco-repository + + + + + + + + org.alfresco.maven.plugin + alfresco-maven-plugin + ${alfresco.sdk.version} + + + true + + true + + true + + false + + + + + + ${alfresco.groupId} + alfresco-share-services + ${alfresco.share.version} + amp + + + + + + + + maven-assembly-plugin + 2.6 + + + build-amp-file + package + + single + + + false + src/main/assembly/amp.xml + + + + + + org.alfresco.maven.plugin + alfresco-maven-plugin + ${alfresco.sdk.version} + + + + + + + org.zeroturnaround + jrebel-maven-plugin + ${jrebel.version} + + + generate-rebel-xml + process-resources + + generate + + + + + + true + + + true + + + + + + + + src/main/resources + true + + + + + + src/test/resources + true + + + + + + + + alfresco-public + https://artifacts.alfresco.com/nexus/content/groups/public + + + alfresco-public-snapshots + https://artifacts.alfresco.com/nexus/content/groups/public-snapshots + + true + daily + + + + + + alfresco-plugin-public + https://artifacts.alfresco.com/nexus/content/groups/public + + + alfresco-plugin-public-snapshots + https://artifacts.alfresco.com/nexus/content/groups/public-snapshots + + true + daily + + + + + diff --git a/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/run.bat b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/run.bat new file mode 100644 index 00000000..fb1b72b9 --- /dev/null +++ b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/run.bat @@ -0,0 +1,8 @@ +:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: +:: Dev environment startup script for Alfresco Community :: +:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: +@echo off + +set MAVEN_OPTS=-Xms256m -Xmx2G + +mvn clean install -DskipTests=true alfresco:run diff --git a/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/run.sh b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/run.sh new file mode 100755 index 00000000..fe41ea7c --- /dev/null +++ b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/run.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +MAVEN_OPTS="-Xms256m -Xmx2G" mvn clean install -DskipTests=true alfresco:run diff --git a/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/assembly/amp.xml b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/assembly/amp.xml new file mode 100644 index 00000000..ce979a1c --- /dev/null +++ b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/assembly/amp.xml @@ -0,0 +1,27 @@ + + + build-amp-file + + + amp + + + false + + + + src/main/resources/alfresco/module/${project.artifactId}/module.properties + true + + + + + + lib + + + + \ No newline at end of file diff --git a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/java/demoamp/Demo.java b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/java/platformsample/Demo.java similarity index 71% rename from archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/java/demoamp/Demo.java rename to archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/java/platformsample/Demo.java index 1a20a2b8..c4cb3efd 100644 --- a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/java/demoamp/Demo.java +++ b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/java/platformsample/Demo.java @@ -1,7 +1,7 @@ #set( $symbol_pound = '#' ) #set( $symbol_dollar = '$' ) #set( $symbol_escape = '\' ) -package ${package}.demoamp; +package ${package}.platformsample; /** * This class does nothing except dump some output to system.out. @@ -13,6 +13,6 @@ public class Demo { public void init() { - System.out.println("SDK Demo AMP class has been loaded"); + System.out.println("Platform JAR Module class has been loaded"); } } diff --git a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/java/demoamp/DemoComponent.java b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/java/platformsample/DemoComponent.java similarity index 92% rename from archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/java/demoamp/DemoComponent.java rename to archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/java/platformsample/DemoComponent.java index fea98ebc..86bf709b 100644 --- a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/java/demoamp/DemoComponent.java +++ b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/java/platformsample/DemoComponent.java @@ -17,7 +17,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -package ${package}.demoamp; +package ${package}.platformsample; import org.alfresco.repo.module.AbstractModuleComponent; import org.alfresco.repo.nodelocator.NodeLocatorService; @@ -55,7 +55,7 @@ public class DemoComponent extends AbstractModuleComponent { @Override protected void executeInternal() throws Throwable { System.out.println("DemoComponent has been executed"); - log.debug("Test debug logging. Congratulation your AMP is working"); + log.debug("Test debug logging. Congratulation your JAR Module is working"); log.info("This is only for information purposed. Better remove me from the log in Production"); } diff --git a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/java/demoamp/HelloWorldWebScript.java b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/java/platformsample/HelloWorldWebScript.java similarity index 97% rename from archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/java/demoamp/HelloWorldWebScript.java rename to archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/java/platformsample/HelloWorldWebScript.java index 959fc39d..233b6699 100644 --- a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/java/demoamp/HelloWorldWebScript.java +++ b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/java/platformsample/HelloWorldWebScript.java @@ -17,7 +17,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -package ${package}.demoamp; +package ${package}.platformsample; import org.springframework.extensions.webscripts.Cache; import org.springframework.extensions.webscripts.DeclarativeWebScript; diff --git a/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/resources/META-INF/resources/test.html b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/resources/META-INF/resources/test.html new file mode 100644 index 00000000..29bc9b4a --- /dev/null +++ b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/resources/META-INF/resources/test.html @@ -0,0 +1 @@ +Test 123 \ No newline at end of file diff --git a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/extension/templates/webscripts/helloworld.get.desc.xml b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/resources/alfresco/extension/templates/webscripts/alfresco/tutorials/helloworld.get.desc.xml similarity index 86% rename from archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/extension/templates/webscripts/helloworld.get.desc.xml rename to archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/resources/alfresco/extension/templates/webscripts/alfresco/tutorials/helloworld.get.desc.xml index 01ebf6a0..01d591fa 100644 --- a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/extension/templates/webscripts/helloworld.get.desc.xml +++ b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/resources/alfresco/extension/templates/webscripts/alfresco/tutorials/helloworld.get.desc.xml @@ -4,4 +4,5 @@ /sample/helloworld user + sample \ No newline at end of file diff --git a/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/resources/alfresco/extension/templates/webscripts/alfresco/tutorials/helloworld.get.html.ftl b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/resources/alfresco/extension/templates/webscripts/alfresco/tutorials/helloworld.get.html.ftl new file mode 100644 index 00000000..0e6e01db --- /dev/null +++ b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/resources/alfresco/extension/templates/webscripts/alfresco/tutorials/helloworld.get.html.ftl @@ -0,0 +1 @@ +Message: '${fromJS}' '${fromJava}' \ No newline at end of file diff --git a/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/resources/alfresco/extension/templates/webscripts/alfresco/tutorials/helloworld.get.js b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/resources/alfresco/extension/templates/webscripts/alfresco/tutorials/helloworld.get.js new file mode 100644 index 00000000..f8d28665 --- /dev/null +++ b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/resources/alfresco/extension/templates/webscripts/alfresco/tutorials/helloworld.get.js @@ -0,0 +1 @@ +model["fromJS"] = "Hello from JS!"; diff --git a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/module/__artifactId__/alfresco-global.properties b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/resources/alfresco/module/__artifactId__/alfresco-global.properties similarity index 62% rename from archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/module/__artifactId__/alfresco-global.properties rename to archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/resources/alfresco/module/__artifactId__/alfresco-global.properties index 90cda7d7..f566f222 100644 --- a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/module/__artifactId__/alfresco-global.properties +++ b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/resources/alfresco/module/__artifactId__/alfresco-global.properties @@ -1,5 +1,5 @@ -## This Alfresco Repo Configuration file should be used for custom properties that are introduced by this module. +## This Alfresco Platform Configuration file should be used for custom properties that are introduced by this module. ## Define default values for all properties here. ## System Administrators can override these values in environment specific configurations in ## alfresco/tomcat/shared/classes/alfresco-global.properties. -## \ No newline at end of file +## diff --git a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/amp/config/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 similarity index 65% rename from archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/module/__artifactId__/context/bootstrap-context.xml rename to archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/resources/alfresco/module/__artifactId__/context/bootstrap-context.xml index 96b136c4..35271b5c 100644 --- a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/amp/config/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 @@ -10,7 +10,6 @@ - @@ -20,7 +19,16 @@ - - + + + + + activiti + alfresco/module/${project.artifactId}/workflow/sample-process.bpmn20.xml + text/xml + + + + diff --git a/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/resources/alfresco/module/__artifactId__/context/service-context.xml b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/resources/alfresco/module/__artifactId__/context/service-context.xml new file mode 100644 index 00000000..e7e3cc6a --- /dev/null +++ b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/resources/alfresco/module/__artifactId__/context/service-context.xml @@ -0,0 +1,42 @@ +#set( $symbol_pound = '#' ) +#set( $symbol_dollar = '$' ) +#set( $symbol_escape = '\' ) + + + + + + + + + + + + + + + + + + + + + diff --git a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/module/__artifactId__/context/webscript-context.xml b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/resources/alfresco/module/__artifactId__/context/webscript-context.xml similarity index 88% rename from archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/module/__artifactId__/context/webscript-context.xml rename to archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/resources/alfresco/module/__artifactId__/context/webscript-context.xml index cfd13a1e..5bd220a0 100644 --- a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/module/__artifactId__/context/webscript-context.xml +++ b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/resources/alfresco/module/__artifactId__/context/webscript-context.xml @@ -20,8 +20,8 @@ limitations under the License. --> - diff --git a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/module/__artifactId__/log4j.properties b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/resources/alfresco/module/__artifactId__/log4j.properties similarity index 96% rename from archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/module/__artifactId__/log4j.properties rename to archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/resources/alfresco/module/__artifactId__/log4j.properties index bfeb499c..3758191f 100644 --- a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/module/__artifactId__/log4j.properties +++ b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/resources/alfresco/module/__artifactId__/log4j.properties @@ -40,4 +40,4 @@ # those in the webapp's main log4j.properties. # #----------------------------------------------------------------------- -log4j.logger.${package}.demoamp.DemoComponent=debug +log4j.logger.${package}.platformsample.DemoComponent=debug \ No newline at end of file diff --git a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/module/__artifactId__/model/content-model.xml b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/resources/alfresco/module/__artifactId__/model/content-model.xml similarity index 52% rename from archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/module/__artifactId__/model/content-model.xml rename to archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/resources/alfresco/module/__artifactId__/model/content-model.xml index 91f54ae6..4209fe33 100644 --- a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/module/__artifactId__/model/content-model.xml +++ b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/resources/alfresco/module/__artifactId__/model/content-model.xml @@ -24,4 +24,31 @@ Constraints, Types, and Aspects go here... --> + + + Sample Document Type + cm:content + + + Sample Property + d:text + + + + + Sample Association + + false + true + + + myc:doc + false + true + + + + + + \ No newline at end of file diff --git a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/module/__artifactId__/model/workflow-model.xml b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/resources/alfresco/module/__artifactId__/model/workflow-model.xml similarity index 100% rename from archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/module/__artifactId__/model/workflow-model.xml rename to archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/resources/alfresco/module/__artifactId__/model/workflow-model.xml diff --git a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/amp/config/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 similarity index 100% rename from archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/module/__artifactId__/module-context.xml rename to archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/resources/alfresco/module/__artifactId__/module-context.xml diff --git a/archetypes/share-amp-archetype/src/main/resources/archetype-resources/src/main/amp/module.properties b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/resources/alfresco/module/__artifactId__/module.properties similarity index 95% rename from archetypes/share-amp-archetype/src/main/resources/archetype-resources/src/main/amp/module.properties rename to archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/resources/alfresco/module/__artifactId__/module.properties index 0e5c045a..158500f6 100644 --- a/archetypes/share-amp-archetype/src/main/resources/archetype-resources/src/main/amp/module.properties +++ b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/resources/alfresco/module/__artifactId__/module.properties @@ -24,7 +24,7 @@ module.id=${project.artifactId} #module.aliases=myModule-123, my-module module.title=${project.name} module.description=${project.description} -module.version=${noSnapshotVersion} +module.version=${project.version} # The following optional properties can be used to prevent the module from being added # to inappropriate versions of the WAR file. diff --git a/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/resources/alfresco/module/__artifactId__/workflow/sample-process.bpmn20.xml b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/resources/alfresco/module/__artifactId__/workflow/sample-process.bpmn20.xml new file mode 100644 index 00000000..f7890085 --- /dev/null +++ b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/main/resources/alfresco/module/__artifactId__/workflow/sample-process.bpmn20.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/test/properties/local/alfresco-global.properties b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/test/properties/local/alfresco-global.properties similarity index 93% rename from archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/test/properties/local/alfresco-global.properties rename to archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/test/properties/local/alfresco-global.properties index eed88e1b..629d6dc6 100644 --- a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/test/properties/local/alfresco-global.properties +++ b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/test/properties/local/alfresco-global.properties @@ -37,11 +37,13 @@ share.host=localhost share.port=8080 share.protocol=http +index.subsystem.name=solr4 +solr.host=localhost +solr.port=8080 +solr.secureComms=none + # Don't try and recover any index index.recovery.mode=NONE -# As we run embedded, we set Lucene -# TODO: Find a better solution for indexing, as buildonly (embedded Lucene) is deprecated and going to be removed soon -index.subsystem.name=buildonly # These jobs seem to require Lucene (Unsupported Operation with Solr) so we disable them / set to future date # See https://forums.alfresco.com/en/viewtopic.php?f=52&t=41597 diff --git a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/test/resources/alfresco/extension/disable-webscript-caching-context.xml b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/test/resources/alfresco/extension/disable-webscript-caching-context.xml similarity index 100% rename from archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/test/resources/alfresco/extension/disable-webscript-caching-context.xml rename to archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/test/resources/alfresco/extension/disable-webscript-caching-context.xml diff --git a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/test/resources/log4j.properties b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/test/resources/log4j.properties similarity index 86% rename from archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/test/resources/log4j.properties rename to archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/test/resources/log4j.properties index bf4a4721..9a4b5efd 100644 --- a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/test/resources/log4j.properties +++ b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/test/resources/log4j.properties @@ -1,8 +1,5 @@ -# This is a full override of Alfresco 4.2.b log4j.properties -# This file overwrites the alfresco.war log4j.properties - # Set root logger level to error -log4j.rootLogger=${app.log.root.level}, Console, File +log4j.rootLogger=error, Console, File ###### Console appender definition ####### @@ -16,11 +13,11 @@ log4j.appender.Console.layout.ConversionPattern=%d{ISO8601} %x %-5p [%c{3}] [%t] ###### File appender definition ####### log4j.appender.File=org.apache.log4j.DailyRollingFileAppender -log4j.appender.File.File=${app.log.dir}alfresco.log +log4j.appender.File.File=alfresco.log log4j.appender.File.Append=true log4j.appender.File.DatePattern='.'yyyy-MM-dd log4j.appender.File.layout=org.apache.log4j.PatternLayout -log4j.appender.File.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c] %m%n +log4j.appender.File.layout.ConversionPattern=%d{yyyy-MM-dd} %d{ABSOLUTE} %-5p [%c] [%t] %m%n ###### Hibernate specific appender definition ####### #log4j.appender.file=org.apache.log4j.FileAppender @@ -70,10 +67,10 @@ log4j.logger.org.hibernate.ps.PreparedStatementCache=info # Alfresco log4j.logger.org.alfresco=error log4j.logger.org.alfresco.repo.admin=info +log4j.logger.org.alfresco.repo.transaction=warn log4j.logger.org.alfresco.repo.cache.TransactionalCache=warn log4j.logger.org.alfresco.repo.model.filefolder=warn log4j.logger.org.alfresco.repo.tenant=info -log4j.logger.org.alfresco.repo.avm=info log4j.logger.org.alfresco.config=warn log4j.logger.org.alfresco.config.JndiObjectFactoryBean=warn log4j.logger.org.alfresco.config.JBossEnabledWebApplicationContext=warn @@ -89,23 +86,18 @@ log4j.logger.org.alfresco.web=info #log4j.logger.org.alfresco.web.ui.repo.component.UIActions=debug #log4j.logger.org.alfresco.web.ui.repo.tag.PageTag=debug #log4j.logger.org.alfresco.web.bean.clipboard=debug -log4j.logger.org.alfresco.repo.webservice=info log4j.logger.org.alfresco.service.descriptor.DescriptorService=info #log4j.logger.org.alfresco.web.page=debug log4j.logger.org.alfresco.repo.importer.ImporterBootstrap=error #log4j.logger.org.alfresco.repo.importer.ImporterBootstrap=info -log4j.logger.org.alfresco.web.ui.common.Utils=error -#log4j.logger.org.alfresco.web.ui.common.Utils=info - log4j.logger.org.alfresco.repo.admin.patch.PatchExecuter=info log4j.logger.org.alfresco.repo.domain.patch.ibatis.PatchDAOImpl=info # Specific patches log4j.logger.org.alfresco.repo.admin.patch.impl.DeploymentMigrationPatch=info log4j.logger.org.alfresco.repo.version.VersionMigrator=info -log4j.logger.org.alfresco.repo.admin.patch.impl.ResetWCMToGroupBasedPermissionsPatch=info log4j.logger.org.alfresco.repo.module.ModuleServiceImpl=info log4j.logger.org.alfresco.repo.domain.schema.SchemaBootstrap=info @@ -113,17 +105,17 @@ log4j.logger.org.alfresco.repo.admin.ConfigurationChecker=info log4j.logger.org.alfresco.repo.node.index.AbstractReindexComponent=warn log4j.logger.org.alfresco.repo.node.index.IndexTransactionTracker=warn log4j.logger.org.alfresco.repo.node.index.FullIndexRecoveryComponent=info -log4j.logger.org.alfresco.repo.node.index.AVMFullIndexRecoveryComponent=info log4j.logger.org.alfresco.util.OpenOfficeConnectionTester=info log4j.logger.org.alfresco.repo.node.db.hibernate.HibernateNodeDaoServiceImpl=warn log4j.logger.org.alfresco.repo.domain.hibernate.DirtySessionMethodInterceptor=warn log4j.logger.org.alfresco.repo.transaction.RetryingTransactionHelper=warn log4j.logger.org.alfresco.util.transaction.SpringAwareUserTransaction.trace=warn log4j.logger.org.alfresco.util.AbstractTriggerBean=warn -log4j.logger.org.alfresco.enterprise.repo.cache.cluster.KeepAliveHeartbeatReceiver=info +log4j.logger.org.alfresco.enterprise.repo.cluster=info log4j.logger.org.alfresco.repo.version.Version2ServiceImpl=warn #log4j.logger.org.alfresco.web.app.DebugPhaseListener=debug +log4j.logger.org.alfresco.repo.node.db.NodeStringLengthWorker=info log4j.logger.org.alfresco.repo.workflow=info @@ -138,7 +130,7 @@ log4j.logger.org.alfresco.ftp.protocol=error # WebDAV debugging #log4j.logger.org.alfresco.webdav.protocol=debug -log4j.logger.org.alfresco.webdav.protocol=error +log4j.logger.org.alfresco.webdav.protocol=info # NTLM servlet filters #log4j.logger.org.alfresco.web.app.servlet.NTLMAuthenticationFilter=debug @@ -154,9 +146,6 @@ log4j.logger.org.alfresco.fileserver=warn # Repo filesystem debug logging #log4j.logger.org.alfresco.filesys.repo.ContentDiskDriver=debug -# AVM filesystem debug logging -#log4j.logger.org.alfresco.filesys.avm.AVMDiskDriver=debug - # Integrity message threshold - if 'failOnViolation' is off, then WARNINGS are generated log4j.logger.org.alfresco.repo.node.integrity=ERROR @@ -172,18 +161,9 @@ log4j.logger.org.alfresco.repo.search.impl.lucene.fts.FullTextSearchIndexerImpl= # log4j.logger.org.alfresco.repo.audit=DEBUG # log4j.logger.org.alfresco.repo.audit.model=DEBUG -# Forms debugging -# log4j.logger.org.alfresco.web.forms=debug -# log4j.logger.org.chiba.xml.xforms=debug -log4j.logger.org.alfresco.web.forms.xforms.XFormsBean=error -log4j.logger.org.alfresco.web.forms.XSLTRenderingEngine=error - # Property sheet and modelling debugging # change to error to hide the warnings about missing properties and associations log4j.logger.alfresco.missingProperties=warn -log4j.logger.org.alfresco.web.ui.repo.component.property.UIChildAssociation=warn -log4j.logger.org.alfresco.web.ui.repo.component.property.UIAssociation=warn -#log4j.logger.org.alfresco.web.ui.repo.component.property=debug # Dictionary/Model debugging log4j.logger.org.alfresco.repo.dictionary=warn @@ -211,7 +191,6 @@ log4j.logger.org.alfresco.repo.usage=info log4j.logger.org.alfresco.module.vti=info # Forms Engine -log4j.logger.org.alfresco.repo.forms=info log4j.logger.org.alfresco.web.config.forms=info log4j.logger.org.alfresco.web.scripts.forms=info @@ -221,6 +200,8 @@ log4j.logger.org.alfresco.opencmis.AlfrescoCmisServiceInterceptor=error log4j.logger.org.alfresco.cmis=error log4j.logger.org.alfresco.cmis.dictionary=warn log4j.logger.org.apache.chemistry.opencmis=info +log4j.logger.org.apache.chemistry.opencmis.server.impl.browser.CmisBrowserBindingServlet=OFF +log4j.logger.org.apache.chemistry.opencmis.server.impl.atompub.CmisAtomPubServlet=OFF # IMAP log4j.logger.org.alfresco.repo.imap=info @@ -246,7 +227,13 @@ log4j.logger.org.alfresco.repo.jscript=error log4j.logger.org.alfresco.repo.jscript.ScriptLogger=warn log4j.logger.org.alfresco.repo.cmis.rest.CMISTest=info -log4j.logger.org.alfresco.repo.avm.actions=info +log4j.logger.org.alfresco.repo.domain.schema.script.ScriptBundleExecutorImpl=off +log4j.logger.org.alfresco.repo.domain.schema.script.ScriptExecutorImpl=info + +log4j.logger.org.alfresco.repo.search.impl.solr.facet.SolrFacetServiceImpl=info + +# Bulk Filesystem Import Tool +log4j.logger.org.alfresco.repo.bulkimport=warn # Freemarker # Note the freemarker.runtime logger is used to log non-fatal errors that are handled by Alfresco's retrying transaction handler @@ -263,4 +250,15 @@ log4j.logger.org.apache.pdfbox.pdmodel.font.PDCIDFont=fatal # no index support log4j.logger.org.alfresco.repo.search.impl.noindex.NoIndexIndexer=fatal log4j.logger.org.alfresco.repo.search.impl.noindex.NoIndexSearchService=fatal -log4j.logger.org.alfresco.demoamp.test=DEBUG \ No newline at end of file + +# lucene index warnings +log4j.logger.org.alfresco.repo.search.impl.lucene.index.IndexInfo=warn + +# Warn about RMI socket bind retries. +log4j.logger.org.alfresco.util.remote.server.socket.HostConfigurableSocketFactory=warn + +log4j.logger.org.alfresco.repo.usage.RepoUsageMonitor=info + +# Authorization +log4j.logger.org.alfresco.enterprise.repo.authorization.AuthorizationService=info +log4j.logger.org.alfresco.enterprise.repo.authorization.AuthorizationsConsistencyMonitor=warn \ No newline at end of file diff --git a/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/test/resources/tomcat/context-solr.xml b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/test/resources/tomcat/context-solr.xml new file mode 100644 index 00000000..ccc18425 --- /dev/null +++ b/archetypes/alfresco-platform-jar-archetype/src/main/resources/archetype-resources/src/test/resources/tomcat/context-solr.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/archetypes/alfresco-amp-archetype/src/test/resources/projects/basic/archetype.properties b/archetypes/alfresco-platform-jar-archetype/src/test/resources/projects/basic/archetype.properties similarity index 100% rename from archetypes/alfresco-amp-archetype/src/test/resources/projects/basic/archetype.properties rename to archetypes/alfresco-platform-jar-archetype/src/test/resources/projects/basic/archetype.properties diff --git a/archetypes/alfresco-amp-archetype/src/test/resources/projects/basic/goal.txt b/archetypes/alfresco-platform-jar-archetype/src/test/resources/projects/basic/goal.txt similarity index 100% rename from archetypes/alfresco-amp-archetype/src/test/resources/projects/basic/goal.txt rename to archetypes/alfresco-platform-jar-archetype/src/test/resources/projects/basic/goal.txt diff --git a/archetypes/alfresco-amp-archetype/src/test/resources/projects/run-basic/archetype.properties b/archetypes/alfresco-platform-jar-archetype/src/test/resources/projects/run-basic/archetype.properties similarity index 100% rename from archetypes/alfresco-amp-archetype/src/test/resources/projects/run-basic/archetype.properties rename to archetypes/alfresco-platform-jar-archetype/src/test/resources/projects/run-basic/archetype.properties diff --git a/archetypes/alfresco-amp-archetype/src/test/resources/projects/run-basic/goal.txt b/archetypes/alfresco-platform-jar-archetype/src/test/resources/projects/run-basic/goal.txt similarity index 100% rename from archetypes/alfresco-amp-archetype/src/test/resources/projects/run-basic/goal.txt rename to archetypes/alfresco-platform-jar-archetype/src/test/resources/projects/run-basic/goal.txt diff --git a/archetypes/alfresco-amp-archetype/src/test/resources/projects/run-enterprise/archetype.properties b/archetypes/alfresco-platform-jar-archetype/src/test/resources/projects/run-enterprise/archetype.properties similarity index 100% rename from archetypes/alfresco-amp-archetype/src/test/resources/projects/run-enterprise/archetype.properties rename to archetypes/alfresco-platform-jar-archetype/src/test/resources/projects/run-enterprise/archetype.properties diff --git a/archetypes/alfresco-amp-archetype/src/test/resources/projects/run-enterprise/goal.txt b/archetypes/alfresco-platform-jar-archetype/src/test/resources/projects/run-enterprise/goal.txt similarity index 100% rename from archetypes/alfresco-amp-archetype/src/test/resources/projects/run-enterprise/goal.txt rename to archetypes/alfresco-platform-jar-archetype/src/test/resources/projects/run-enterprise/goal.txt diff --git a/archetypes/share-amp-archetype/pom.xml b/archetypes/alfresco-share-jar-archetype/pom.xml similarity index 100% rename from archetypes/share-amp-archetype/pom.xml rename to archetypes/alfresco-share-jar-archetype/pom.xml diff --git a/archetypes/share-amp-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml b/archetypes/alfresco-share-jar-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml similarity index 95% rename from archetypes/share-amp-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml rename to archetypes/alfresco-share-jar-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml index fd2321cb..9a7316c7 100644 --- a/archetypes/share-amp-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml +++ b/archetypes/alfresco-share-jar-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml @@ -1,7 +1,7 @@ diff --git a/archetypes/share-amp-archetype/src/main/resources/archetype-resources/pom.xml b/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/pom.xml similarity index 100% rename from archetypes/share-amp-archetype/src/main/resources/archetype-resources/pom.xml rename to archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/pom.xml diff --git a/archetypes/share-amp-archetype/src/main/resources/archetype-resources/run.bat b/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/run.bat similarity index 100% rename from archetypes/share-amp-archetype/src/main/resources/archetype-resources/run.bat rename to archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/run.bat diff --git a/archetypes/share-amp-archetype/src/main/resources/archetype-resources/run.sh b/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/run.sh similarity index 100% rename from archetypes/share-amp-archetype/src/main/resources/archetype-resources/run.sh rename to archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/run.sh diff --git a/archetypes/share-amp-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/web-extension/__artifactId__-slingshot-application-context.xml b/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/web-extension/__artifactId__-slingshot-application-context.xml similarity index 100% rename from archetypes/share-amp-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/web-extension/__artifactId__-slingshot-application-context.xml rename to archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/web-extension/__artifactId__-slingshot-application-context.xml diff --git a/archetypes/share-amp-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/web-extension/messages/__artifactId__.properties b/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/web-extension/messages/__artifactId__.properties similarity index 100% rename from archetypes/share-amp-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/web-extension/messages/__artifactId__.properties rename to archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/web-extension/messages/__artifactId__.properties diff --git a/archetypes/share-amp-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/web-extension/site-data/extensions/__artifactId__-example-widgets.xml b/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/web-extension/site-data/extensions/__artifactId__-example-widgets.xml similarity index 100% rename from archetypes/share-amp-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/web-extension/site-data/extensions/__artifactId__-example-widgets.xml rename to archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/web-extension/site-data/extensions/__artifactId__-example-widgets.xml diff --git a/archetypes/share-amp-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/web-extension/site-webscripts/com/example/pages/simple-page.get.desc.xml b/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/web-extension/site-webscripts/com/example/pages/simple-page.get.desc.xml similarity index 100% rename from archetypes/share-amp-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/web-extension/site-webscripts/com/example/pages/simple-page.get.desc.xml rename to archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/web-extension/site-webscripts/com/example/pages/simple-page.get.desc.xml diff --git a/archetypes/share-amp-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/web-extension/site-webscripts/com/example/pages/simple-page.get.html.ftl b/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/web-extension/site-webscripts/com/example/pages/simple-page.get.html.ftl similarity index 100% rename from archetypes/share-amp-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/web-extension/site-webscripts/com/example/pages/simple-page.get.html.ftl rename to archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/web-extension/site-webscripts/com/example/pages/simple-page.get.html.ftl diff --git a/archetypes/share-amp-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/web-extension/site-webscripts/com/example/pages/simple-page.get.js b/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/web-extension/site-webscripts/com/example/pages/simple-page.get.js similarity index 100% rename from archetypes/share-amp-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/web-extension/site-webscripts/com/example/pages/simple-page.get.js rename to archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/web-extension/site-webscripts/com/example/pages/simple-page.get.js diff --git a/archetypes/share-amp-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/web-extension/site-webscripts/org/alfresco/README.md b/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/web-extension/site-webscripts/org/alfresco/README.md similarity index 100% rename from archetypes/share-amp-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/web-extension/site-webscripts/org/alfresco/README.md rename to archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/src/main/amp/config/alfresco/web-extension/site-webscripts/org/alfresco/README.md diff --git a/archetypes/share-amp-archetype/src/main/resources/archetype-resources/src/main/amp/file-mapping.properties b/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/src/main/amp/file-mapping.properties similarity index 100% rename from archetypes/share-amp-archetype/src/main/resources/archetype-resources/src/main/amp/file-mapping.properties rename to archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/src/main/amp/file-mapping.properties diff --git a/archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/amp/module.properties b/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/src/main/amp/module.properties similarity index 100% rename from archetypes/alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/amp/module.properties rename to archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/src/main/amp/module.properties diff --git a/archetypes/share-amp-archetype/src/main/resources/archetype-resources/src/main/amp/web/js/example/widgets/TemplateWidget.js b/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/src/main/amp/web/js/example/widgets/TemplateWidget.js similarity index 100% rename from archetypes/share-amp-archetype/src/main/resources/archetype-resources/src/main/amp/web/js/example/widgets/TemplateWidget.js rename to archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/src/main/amp/web/js/example/widgets/TemplateWidget.js diff --git a/archetypes/share-amp-archetype/src/main/resources/archetype-resources/src/main/amp/web/js/example/widgets/css/TemplateWidget.css b/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/src/main/amp/web/js/example/widgets/css/TemplateWidget.css similarity index 100% rename from archetypes/share-amp-archetype/src/main/resources/archetype-resources/src/main/amp/web/js/example/widgets/css/TemplateWidget.css rename to archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/src/main/amp/web/js/example/widgets/css/TemplateWidget.css diff --git a/archetypes/share-amp-archetype/src/main/resources/archetype-resources/src/main/amp/web/js/example/widgets/i18n/TemplateWidget.properties b/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/src/main/amp/web/js/example/widgets/i18n/TemplateWidget.properties similarity index 100% rename from archetypes/share-amp-archetype/src/main/resources/archetype-resources/src/main/amp/web/js/example/widgets/i18n/TemplateWidget.properties rename to archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/src/main/amp/web/js/example/widgets/i18n/TemplateWidget.properties diff --git a/archetypes/share-amp-archetype/src/main/resources/archetype-resources/src/main/amp/web/js/example/widgets/templates/TemplateWidget.html b/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/src/main/amp/web/js/example/widgets/templates/TemplateWidget.html similarity index 100% rename from archetypes/share-amp-archetype/src/main/resources/archetype-resources/src/main/amp/web/js/example/widgets/templates/TemplateWidget.html rename to archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/src/main/amp/web/js/example/widgets/templates/TemplateWidget.html diff --git a/archetypes/share-amp-archetype/src/main/resources/archetype-resources/src/main/resources/META-INF/resources/test.html b/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/src/main/resources/META-INF/resources/test.html similarity index 100% rename from archetypes/share-amp-archetype/src/main/resources/archetype-resources/src/main/resources/META-INF/resources/test.html rename to archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/src/main/resources/META-INF/resources/test.html diff --git a/archetypes/share-amp-archetype/src/main/resources/archetype-resources/src/main/resources/META-INF/share-config-custom.xml.sample b/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/src/main/resources/META-INF/share-config-custom.xml.sample similarity index 100% rename from archetypes/share-amp-archetype/src/main/resources/archetype-resources/src/main/resources/META-INF/share-config-custom.xml.sample rename to archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/src/main/resources/META-INF/share-config-custom.xml.sample diff --git a/archetypes/share-amp-archetype/src/main/resources/archetype-resources/src/site/apt/advanced-usage.apt.vm b/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/src/site/apt/advanced-usage.apt.vm similarity index 100% rename from archetypes/share-amp-archetype/src/main/resources/archetype-resources/src/site/apt/advanced-usage.apt.vm rename to archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/src/site/apt/advanced-usage.apt.vm diff --git a/archetypes/share-amp-archetype/src/main/resources/archetype-resources/src/site/apt/index.apt.vm b/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/src/site/apt/index.apt.vm similarity index 100% rename from archetypes/share-amp-archetype/src/main/resources/archetype-resources/src/site/apt/index.apt.vm rename to archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/src/site/apt/index.apt.vm diff --git a/archetypes/share-amp-archetype/src/main/resources/archetype-resources/src/site/apt/usage.apt.vm b/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/src/site/apt/usage.apt.vm similarity index 100% rename from archetypes/share-amp-archetype/src/main/resources/archetype-resources/src/site/apt/usage.apt.vm rename to archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/src/site/apt/usage.apt.vm diff --git a/archetypes/share-amp-archetype/src/main/resources/archetype-resources/src/site/site.xml b/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/src/site/site.xml similarity index 100% rename from archetypes/share-amp-archetype/src/main/resources/archetype-resources/src/site/site.xml rename to archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/src/site/site.xml diff --git a/archetypes/share-amp-archetype/src/main/resources/archetype-resources/src/test/resources/alfresco/web-extension/share-config-custom.xml b/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/src/test/resources/alfresco/web-extension/share-config-custom.xml similarity index 100% rename from archetypes/share-amp-archetype/src/main/resources/archetype-resources/src/test/resources/alfresco/web-extension/share-config-custom.xml rename to archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/src/test/resources/alfresco/web-extension/share-config-custom.xml diff --git a/archetypes/share-amp-archetype/src/main/resources/archetype-resources/src/test/resources/log4j.properties b/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/src/test/resources/log4j.properties similarity index 100% rename from archetypes/share-amp-archetype/src/main/resources/archetype-resources/src/test/resources/log4j.properties rename to archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/src/test/resources/log4j.properties diff --git a/archetypes/share-amp-archetype/src/main/resources/archetype-resources/tomcat/context.xml b/archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/tomcat/context.xml similarity index 100% rename from archetypes/share-amp-archetype/src/main/resources/archetype-resources/tomcat/context.xml rename to archetypes/alfresco-share-jar-archetype/src/main/resources/archetype-resources/tomcat/context.xml diff --git a/archetypes/share-amp-archetype/src/test/resources/projects/basic/archetype.properties b/archetypes/alfresco-share-jar-archetype/src/test/resources/projects/basic/archetype.properties similarity index 100% rename from archetypes/share-amp-archetype/src/test/resources/projects/basic/archetype.properties rename to archetypes/alfresco-share-jar-archetype/src/test/resources/projects/basic/archetype.properties diff --git a/archetypes/share-amp-archetype/src/test/resources/projects/basic/goal.txt b/archetypes/alfresco-share-jar-archetype/src/test/resources/projects/basic/goal.txt similarity index 100% rename from archetypes/share-amp-archetype/src/test/resources/projects/basic/goal.txt rename to archetypes/alfresco-share-jar-archetype/src/test/resources/projects/basic/goal.txt diff --git a/archetypes/share-amp-archetype/src/test/resources/projects/run-basic/archetype.properties b/archetypes/alfresco-share-jar-archetype/src/test/resources/projects/run-basic/archetype.properties similarity index 100% rename from archetypes/share-amp-archetype/src/test/resources/projects/run-basic/archetype.properties rename to archetypes/alfresco-share-jar-archetype/src/test/resources/projects/run-basic/archetype.properties diff --git a/archetypes/share-amp-archetype/src/test/resources/projects/run-basic/goal.txt b/archetypes/alfresco-share-jar-archetype/src/test/resources/projects/run-basic/goal.txt similarity index 100% rename from archetypes/share-amp-archetype/src/test/resources/projects/run-basic/goal.txt rename to archetypes/alfresco-share-jar-archetype/src/test/resources/projects/run-basic/goal.txt diff --git a/archetypes/share-amp-archetype/src/test/resources/projects/run-enterprise/archetype.properties b/archetypes/alfresco-share-jar-archetype/src/test/resources/projects/run-enterprise/archetype.properties similarity index 100% rename from archetypes/share-amp-archetype/src/test/resources/projects/run-enterprise/archetype.properties rename to archetypes/alfresco-share-jar-archetype/src/test/resources/projects/run-enterprise/archetype.properties diff --git a/archetypes/share-amp-archetype/src/test/resources/projects/run-enterprise/goal.txt b/archetypes/alfresco-share-jar-archetype/src/test/resources/projects/run-enterprise/goal.txt similarity index 100% rename from archetypes/share-amp-archetype/src/test/resources/projects/run-enterprise/goal.txt rename to archetypes/alfresco-share-jar-archetype/src/test/resources/projects/run-enterprise/goal.txt diff --git a/archetypes/share-amp-archetype/src/site/apt/advanced-usage.apt.vm b/archetypes/share-amp-archetype/src/site/apt/advanced-usage.apt.vm deleted file mode 100644 index b5afe58d..00000000 --- a/archetypes/share-amp-archetype/src/site/apt/advanced-usage.apt.vm +++ /dev/null @@ -1,59 +0,0 @@ - ------ - Alfresco Share AMP Archetype Advanced Usage - ------ - Gabriele Columbro - ------ - Nov 2012 - ------ - -Unit Testing - - Unit test your AMP customization is as easy as adding your tests in <<>>. The current module in development - will be added to the test classpath together with all necessary Alfresco Spring contexts. - - Running <<>> will results in your unit tests to be run. You can skip this (<<>>) - adding <<<-DskipTests>>> to your command line. - -Share AMP Archetype properties - - In the AMP archetype (as in the whole Alfresco SDK\x99) properties are configurable at many levels: - - * as POM properties - - * direclty in *.properties, particularly - - * <<>> (filtered and packaged in the AMP) - -* Common properties - - Archetype behavior can mostly be controlled directly in the POM, via common properties provided by the parent POM. - See {{{../../poms/alfresco-sdk-parent/sdk-properties.html} SDK properties reference}} for details. - - -* AMP specific properties - - In addition to the common properties, the following properties are specific of the AMP archetype: - -+---+ - - ... - - - alfresco - ${alfresco.groupId} - ${alfresco.version} - - ... - -+---+ - -Parent POM and behavior customization - - To customize the behavior of your project, check out full set of the properties and plugin configurations defined in the - {{{../../poms/alfresco-sdk-parent/index.html}single entry point parent POM}}. - - One quick way to do that is to use the <<>> to analyze your POM at runtime. - \ No newline at end of file diff --git a/archetypes/share-amp-archetype/src/site/apt/index.apt.vm b/archetypes/share-amp-archetype/src/site/apt/index.apt.vm deleted file mode 100644 index 163667f9..00000000 --- a/archetypes/share-amp-archetype/src/site/apt/index.apt.vm +++ /dev/null @@ -1,68 +0,0 @@ - ------ - Building AMPs (Alfresco Module Packages) with Maven - ------ - Gabriele Columbro - ------ - Sept 2014 - ------ - -Introduction - - The Share AMP Archetype is a sample fully featured project to manage AMP (Alfresco Module Package) projects. - This archetype can be used for Alfresco Share AMPs. - -* Features - - Amongst other features, this archetype provides support for: - - * <<>> packaging support for your projects - - * AMP dependency management in Maven - - * Installation of AMPs in an Alfresco or Share WAR - - * AMP Unit Testing support. Just run the standard <<>> and see your <<>> Alfresco unit tests run. - - * Support for unit and integration testing and rapid development (using spring-loaded, see run.sh) - - * Seamless IDE integration with Eclipse and Idea - -How to create a project: - - As of version 2.0-beta-3, you can create a project with the latest released archetype with the following command directly from Maven Central: - -+---+ -mvn archetype:generate -Dfilter=org.alfresco.maven.archetype:share-amp-archetype -+---+ - - For previous versions, you need to use the Alfresco Artifacts repository: - -+---+ -mvn archetype:generate -Dfilter=org.alfresco.maven.archetype:share-amp-archetype -DarchetypeCatalog=https://artifacts.alfresco.com/nexus/content/groups/public/archetype-catalog.xml -+---+ - You should then: - - [[1]] Select the <<>> version - - [[2]] Specify the <<>> and <<>> for the project you want to create - - [[3]] () Select Alfresco Version / Edition (current default is: Alfresco Community 5.0.c) - - You can find new Share AMP project ready to go in the <<>> folder. - -Quickstart - - Once your project is created: - - * Enter the project folder and run <<<./run.sh>>> (you might need to <<>> to make it executable). - This will setup the SDK and the Alfresco Share on port 8081 (not Alfresco Repository or Solr). - - * Wait for the startup of the webapp and then go <<>>. : For this to work you need - to have an Alfresco previously running on port 8080, for example as provided by the {{{../alfresco-amp-archetype/index.html}Alfresco AMP archetype}} - - * Import the project in your favorite IDE (with Maven integration) and start developing right away. - -Usage - - Instructions on how to use the Share AMP archetype can be found on the {{{./usage.html}usage page}}, while - for more advanced use cases refer to the {{{./advanced-usage.html}advanced usage page}} diff --git a/archetypes/share-amp-archetype/src/site/apt/usage.apt.vm b/archetypes/share-amp-archetype/src/site/apt/usage.apt.vm deleted file mode 100644 index 23daddbf..00000000 --- a/archetypes/share-amp-archetype/src/site/apt/usage.apt.vm +++ /dev/null @@ -1,77 +0,0 @@ - ------ - Maven Alfresco AMP Archetype Usage - ------ - Gabriele Columbro - ------ - Nov 2012 - ------ - - -Prerequisites - - See {{{../../prerequisites.html}SDK Pre-Requisites}} to successfully run this archetype. - - -Project layout - - The archetype generated project should look like: - -+---+ - - pom.xml - src/main/amp - |-> module.properties - |-> file-mapping.properties (optional) - |-> config/ - |-> web/ - |-> licenses/ - src/main/java //Java classes to be packaged in the AMP embedded JAR) - src/main/resources //resources to the packaged in the AMP embedded JAR) - src/main/resources/META-INF/resources //web resources to the packaged in the AMP embedded JAR, mapped to the root of the webapp as of Servlet 3.0) - src/test/java // Unit tests - src/test/resources // Unit test resources - src/test/properties/ // Environment aware alfresco-global.properties. By default =local - -+---+ - - Basically by default the folder <<>> maps the {{{https://wiki.alfresco.com/wiki/AMP_Files#The_structure_of_an_AMP_file}AMP structure}} and it's where you can build your module. - -Usage - - This project manages an AMP and provides support for typical development lifecycle use cases like: - - * packaging - - * testing - - * rapid development - - * run embedded - - * integration testing - - * release and distribution of your Share AMP artifact. - - The AMPs produced with this project are fully compatible with Alfresco MMT, in fact the Maven Alfresco plugin used to manage AMPs in this SDK embeds the official Alfresco MMT to install depdended AMPs. - -Commands - - <<>> will automatically set up the SDK and run the AMP on Alfresco Share embedded to enable rapid development - - Other common Share AMP project lifecycle commands you want to run are: - - * <<>>: Runs unit tests and packages AMP in <<<$\{project.build.directory\}/$\{project.build.finalName\}.amp>>> - - * <<>>: Like <<>> but also installs AMP in local Maven repository to be depended upon - - * <<>>: Like <<>> but skips unit tests - - * <<>> Like <<>> - but also installs and runs the resulting WAR+AMP in Tomcat + H2 embedded for integration testing. - When you run this command then you can access in your browser <<< {{{http://localhost:8080/alfresco}}} >>> or <<< {{{http://localhost:8080/share}}} >>> - depending on the value of the property <<>> - - * <<>>: Like <<>> but installs the AMP and runs on the Share WAR in Tomcat embedded. - - * <<>>: Removes DB, alf_data, indexes and log files. Useful to purge the development repo (by default self contained in <<<$\{project.basedir\}/alf_data_dev>>> - diff --git a/archetypes/share-amp-archetype/src/site/site.xml b/archetypes/share-amp-archetype/src/site/site.xml deleted file mode 100644 index 14ef073d..00000000 --- a/archetypes/share-amp-archetype/src/site/site.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/pom.xml b/pom.xml index 72a7713b..04162183 100644 --- a/pom.xml +++ b/pom.xml @@ -77,7 +77,7 @@ gravitonian Martin Bergljung martin.bergljung@alfresco.com - http://www.marversolutions.com + https://sites.google.com/site/gravitonian/ Alfresco Software http://www.alfresco.com +0 @@ -124,8 +124,8 @@ poms/alfresco-sdk-parent - archetypes/alfresco-amp-archetype - archetypes/share-amp-archetype + archetypes/alfresco-platform-jar-archetype + archetypes/alfresco-share-jar-archetype archetypes/alfresco-allinone-archetype