Loading plugins/maven-amp-plugin-test/module.properties 0 → 100755 +47 −0 Original line number Diff line number Diff line # 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 plugins/maven-amp-plugin-test/pom.xml 0 → 100755 +92 −0 Original line number Diff line number Diff line <?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> plugins/maven-amp-plugin-test/src/main/java/org/alfresco/maven/plugin/amp/patch/SayHelloPatch.java 0 → 100644 +12 −0 Original line number Diff line number Diff line 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"; } } plugins/maven-amp-plugin-test/src/main/resources/META-INF/web-client-config-custom.xml 0 → 100755 +8 −0 Original line number Diff line number Diff line <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
plugins/maven-amp-plugin-test/module.properties 0 → 100755 +47 −0 Original line number Diff line number Diff line # 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
plugins/maven-amp-plugin-test/pom.xml 0 → 100755 +92 −0 Original line number Diff line number Diff line <?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>
plugins/maven-amp-plugin-test/src/main/java/org/alfresco/maven/plugin/amp/patch/SayHelloPatch.java 0 → 100644 +12 −0 Original line number Diff line number Diff line 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"; } }
plugins/maven-amp-plugin-test/src/main/resources/META-INF/web-client-config-custom.xml 0 → 100755 +8 −0 Original line number Diff line number Diff line <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>