mirror of
https://github.com/Alfresco/alfresco-sdk.git
synced 2025-05-12 17:05:08 +00:00
Init of maven-amp-plugin-test
git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@307 04253f4f-3451-0410-a141-5562f1e59037
This commit is contained in:
parent
64ff61f4e0
commit
23fcfbf4fb
47
plugins/maven-amp-plugin-test/module.properties
Executable file
47
plugins/maven-amp-plugin-test/module.properties
Executable file
@ -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 ====== #
|
92
plugins/maven-amp-plugin-test/pom.xml
Executable file
92
plugins/maven-amp-plugin-test/pom.xml
Executable file
@ -0,0 +1,92 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- 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. -->
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.alfresco.maven.plugin</groupId>
|
||||
<artifactId>maven-amp-plugin-test</artifactId>
|
||||
<packaging>amp</packaging>
|
||||
<name>Test project for Maven AMP Plugin</name>
|
||||
<version>1.0.0</version>
|
||||
<parent>
|
||||
<groupId>org.alfresco</groupId>
|
||||
<artifactId>maven-alfresco-lifecycle</artifactId>
|
||||
<version>1.1.1-SNAPSHOT</version>
|
||||
<relativePath>../../pom.xml</relativePath>
|
||||
</parent>
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<alfresco.version>3.3-SNAPSHOT</alfresco.version>
|
||||
<spring.version>3.0.0.RELEASE</spring.version>
|
||||
<amp-plugin.version>3.0.3-SNAPSHOT</amp-plugin.version>
|
||||
<alfresco.module.id>${project.artifactId}</alfresco.module.id>
|
||||
<alfresco.module.version>0.0.999</alfresco.module.version>
|
||||
</properties>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.alfresco</groupId>
|
||||
<artifactId>alfresco-repository</artifactId>
|
||||
<version>${alfresco.version}</version>
|
||||
<scope>provided</scope>
|
||||
<classifier>community</classifier>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.alfresco.maven.plugin</groupId>
|
||||
<artifactId>maven-amp-plugin</artifactId>
|
||||
<version>${amp-plugin.version}</version>
|
||||
<extensions>true</extensions>
|
||||
<configuration>
|
||||
<mAmpResources>
|
||||
<resource>
|
||||
<directory>src/main/ampResources</directory>
|
||||
<excludes>
|
||||
<exclude>**/*.png</exclude>
|
||||
<exclude>**/*.gif</exclude>
|
||||
<exclude>**/*.jpg</exclude>
|
||||
</excludes>
|
||||
<filtering>true</filtering>
|
||||
</resource>
|
||||
<resource>
|
||||
<directory>src/main/ampResources</directory>
|
||||
<includes>
|
||||
<include>**/*.png</include>
|
||||
<include>**/*.gif</include>
|
||||
<include>**/*.jpg</include>
|
||||
</includes>
|
||||
<filtering>false</filtering>
|
||||
</resource>
|
||||
<resource>
|
||||
<directory>src/main/module</directory>
|
||||
<targetPath>config/alfresco/module/${alfresco.module.id}</targetPath>
|
||||
<excludes>
|
||||
<exclude>**README-*</exclude>
|
||||
</excludes>
|
||||
<filtering>true</filtering>
|
||||
</resource>
|
||||
</mAmpResources>
|
||||
<archive>
|
||||
<addMavenDescriptor>false</addMavenDescriptor>
|
||||
</archive>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
<resources>
|
||||
<resource>
|
||||
<filtering>true</filtering>
|
||||
<directory>src/main/resources</directory>
|
||||
</resource>
|
||||
</resources>
|
||||
</build>
|
||||
</project>
|
@ -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";
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
<alfresco-config>
|
||||
<!-- add French in languages list -->
|
||||
<config evaluator="string-compare" condition="Languages">
|
||||
<languages>
|
||||
<language locale="fr_FR">Français</language>
|
||||
</languages>
|
||||
</config>
|
||||
</alfresco-config>
|
Loading…
x
Reference in New Issue
Block a user