From 23fcfbf4fb8f9eb4bcf4208aa5c7d2f787c421a3 Mon Sep 17 00:00:00 2001 From: "dupont.nicolas" Date: Tue, 5 Oct 2010 18:28:29 +0000 Subject: [PATCH] Init of maven-amp-plugin-test git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@307 04253f4f-3451-0410-a141-5562f1e59037 --- .../maven-amp-plugin-test/module.properties | 47 ++++++++++ plugins/maven-amp-plugin-test/pom.xml | 92 +++++++++++++++++++ .../maven/plugin/amp/patch/SayHelloPatch.java | 12 +++ .../META-INF/web-client-config-custom.xml | 8 ++ 4 files changed, 159 insertions(+) create mode 100755 plugins/maven-amp-plugin-test/module.properties create mode 100755 plugins/maven-amp-plugin-test/pom.xml create mode 100644 plugins/maven-amp-plugin-test/src/main/java/org/alfresco/maven/plugin/amp/patch/SayHelloPatch.java create mode 100755 plugins/maven-amp-plugin-test/src/main/resources/META-INF/web-client-config-custom.xml diff --git a/plugins/maven-amp-plugin-test/module.properties b/plugins/maven-amp-plugin-test/module.properties new file mode 100755 index 00000000..c54f8b38 --- /dev/null +++ b/plugins/maven-amp-plugin-test/module.properties @@ -0,0 +1,47 @@ +# 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. + + + +# SDK Sample module + +# ==== Beginning of Alfresco required/optional properties ====== # + +module.id=${alfresco.module.id} +#module.aliases=myModule-123, my-module +module.title=${project.name} +module.description=${project.description} +module.version=${alfresco.module.version} + +# The following optional properties can be used to prevent the module from being added +# to inappropriate versions of the WAR file. +# module.repo.version.min=2.0 +# module.repo.version.max=2.1 + +# FIXME: This dependencies should come out of mvn dependencies on amp + +# The following describe dependencies on other modules +# Depends on net.sf.myproject.module.SupportModuleA version ${version} or later +# module.depends.net.sf.myproject.module.SupportModuleA=${version}-* +# Depends on net.sf.myproject.module.SupportModuleA version ${version} to 2.0 +# module.depends.net.sf.myproject.module.SupportModuleB=${version}-2.0 +# Depends on net.sf.myproject.module.SupportModuleC - any version +# module.depends.net.sf.myproject.module.SupportModuleB=* + + +# ==== End of Alfresco required/optional properties ======= # + + +# ==== Beginning of module required properties/optional ====== # \ No newline at end of file diff --git a/plugins/maven-amp-plugin-test/pom.xml b/plugins/maven-amp-plugin-test/pom.xml new file mode 100755 index 00000000..6e4a3d39 --- /dev/null +++ b/plugins/maven-amp-plugin-test/pom.xml @@ -0,0 +1,92 @@ + + + + 4.0.0 + org.alfresco.maven.plugin + maven-amp-plugin-test + amp + Test project for Maven AMP Plugin + 1.0.0 + + org.alfresco + maven-alfresco-lifecycle + 1.1.1-SNAPSHOT + ../../pom.xml + + + UTF-8 + 3.3-SNAPSHOT + 3.0.0.RELEASE + 3.0.3-SNAPSHOT + ${project.artifactId} + 0.0.999 + + + + org.alfresco + alfresco-repository + ${alfresco.version} + provided + community + + + + + + org.alfresco.maven.plugin + maven-amp-plugin + ${amp-plugin.version} + true + + + + src/main/ampResources + + **/*.png + **/*.gif + **/*.jpg + + true + + + src/main/ampResources + + **/*.png + **/*.gif + **/*.jpg + + false + + + src/main/module + config/alfresco/module/${alfresco.module.id} + + **README-* + + true + + + + false + + + + + + + true + src/main/resources + + + + diff --git a/plugins/maven-amp-plugin-test/src/main/java/org/alfresco/maven/plugin/amp/patch/SayHelloPatch.java b/plugins/maven-amp-plugin-test/src/main/java/org/alfresco/maven/plugin/amp/patch/SayHelloPatch.java new file mode 100644 index 00000000..6c096e28 --- /dev/null +++ b/plugins/maven-amp-plugin-test/src/main/java/org/alfresco/maven/plugin/amp/patch/SayHelloPatch.java @@ -0,0 +1,12 @@ +package org.alfresco.maven.plugin.amp.patch; + +import org.alfresco.repo.admin.patch.AbstractPatch; + +public class SayHelloPatch extends AbstractPatch { + + @Override + protected String applyInternal() throws Exception { + return "Hello"; + } + +} diff --git a/plugins/maven-amp-plugin-test/src/main/resources/META-INF/web-client-config-custom.xml b/plugins/maven-amp-plugin-test/src/main/resources/META-INF/web-client-config-custom.xml new file mode 100755 index 00000000..9e1842b2 --- /dev/null +++ b/plugins/maven-amp-plugin-test/src/main/resources/META-INF/web-client-config-custom.xml @@ -0,0 +1,8 @@ + + + + + Français + + +