Author: fmui
Date: Wed Sep 3 19:44:11 2014
New Revision: 1622334
URL: http://svn.apache.org/r1622334
Log:
CMIS-840: added server extension archetype
Added:
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-extension-archetype/
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-extension-archetype/pom.xml
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-extension-archetype/src/
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-extension-archetype/src/main/
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-extension-archetype/src/main/resources/
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-extension-archetype/src/main/resources/META-INF/
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-extension-archetype/src/main/resources/META-INF/maven/
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-extension-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-extension-archetype/src/main/resources/archetype-resources/
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-extension-archetype/src/main/resources/archetype-resources/pom.xml
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-extension-archetype/src/main/resources/archetype-resources/src/
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-extension-archetype/src/main/resources/archetype-resources/src/main/
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-extension-archetype/src/main/resources/archetype-resources/src/main/java/
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-extension-archetype/src/main/resources/archetype-resources/src/main/java/__projectPrefix__CmisServiceWrapper.java
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-extension-archetype/src/test/
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-extension-archetype/src/test/resources/
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-extension-archetype/src/test/resources/projects/
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-extension-archetype/src/test/resources/projects/server/
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-extension-archetype/src/test/resources/projects/server/archetype.properties
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-extension-archetype/src/test/resources/projects/server/goal.txt
Modified:
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/pom.xml
chemistry/opencmis/trunk/pom.xml
Modified:
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/pom.xml
URL:
http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/pom.xml?rev=1622334&r1=1622333&r2=1622334&view=diff
==============================================================================
---
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/pom.xml
(original)
+++
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-archetype/pom.xml
Wed Sep 3 19:44:11 2014
@@ -60,30 +60,23 @@
<plugins>
<plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-archetype-plugin</artifactId>
- <version>2.2</version>
- <executions>
- <execution>
- <id>integration-test</id>
- <goals>
-
<goal>integration-test</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-archetype-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>integration-test</id>
+ <goals>
+ <goal>integration-test</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
-
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-archetype-plugin</artifactId>
- <version>2.2</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.6</version>
<configuration>
Added:
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-extension-archetype/pom.xml
URL:
http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-extension-archetype/pom.xml?rev=1622334&view=auto
==============================================================================
---
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-extension-archetype/pom.xml
(added)
+++
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-extension-archetype/pom.xml
Wed Sep 3 19:44:11 2014
@@ -0,0 +1,90 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed 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>
+
+ <parent>
+ <groupId>org.apache.chemistry.opencmis</groupId>
+ <artifactId>chemistry-opencmis</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <relativePath>../../pom.xml</relativePath>
+ </parent>
+
+ <artifactId>chemistry-opencmis-server-extension-archetype</artifactId>
+ <name>OpenCMIS Server Extension Archetype</name>
+ <packaging>maven-archetype</packaging>
+ <description>OpenCMIS Server Extension archetype</description>
+
+ <properties>
+ <parentBasedir>../../</parentBasedir>
+ <opencmisVersion>${project.version}</opencmisVersion>
+ </properties>
+
+ <build>
+ <resources>
+ <resource>
+ <directory>src/main/resources</directory>
+ <filtering>true</filtering>
+ <includes>
+ <include>archetype-resources/pom.xml</include>
+ </includes>
+ </resource>
+ <resource>
+ <directory>src/main/resources</directory>
+ <filtering>false</filtering>
+ <excludes>
+ <exclude>archetype-resources/pom.xml</exclude>
+ </excludes>
+ </resource>
+ </resources>
+
+ <extensions>
+ <extension>
+ <groupId>org.apache.maven.archetype</groupId>
+ <artifactId>archetype-packaging</artifactId>
+ <version>2.2</version>
+ </extension>
+ </extensions>
+
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-archetype-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>integration-test</id>
+ <goals>
+ <goal>integration-test</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-resources-plugin</artifactId>
+ <version>2.6</version>
+ <configuration>
+ <escapeString>\</escapeString>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+
+</project>
Added:
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-extension-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
URL:
http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-extension-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml?rev=1622334&view=auto
==============================================================================
---
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-extension-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
(added)
+++
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-extension-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
Wed Sep 3 19:44:11 2014
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+ <!--
+ Licensed 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.
+ -->
+
+<archetype-descriptor name="OpenCMIS Server Extension">
+
+ <fileSets>
+ <fileSet filtered="true" packaged="true" encoding="UTF-8">
+ <directory>src/main/java</directory>
+ <includes>
+ <include>**/*.java</include>
+ </includes>
+ </fileSet>
+ </fileSets>
+
+ <requiredProperties>
+ <requiredProperty key="projectPrefix"/>
+ </requiredProperties>
+
+</archetype-descriptor>
\ No newline at end of file
Added:
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-extension-archetype/src/main/resources/archetype-resources/pom.xml
URL:
http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-extension-archetype/src/main/resources/archetype-resources/pom.xml?rev=1622334&view=auto
==============================================================================
---
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-extension-archetype/src/main/resources/archetype-resources/pom.xml
(added)
+++
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-extension-archetype/src/main/resources/archetype-resources/pom.xml
Wed Sep 3 19:44:11 2014
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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>\${groupId}</groupId>
+ <artifactId>\${artifactId}</artifactId>
+ <version>\${version}</version>
+
+ <properties>
+ <opencmis.version>${opencmisVersion}</opencmis.version>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ </properties>
+
+ <name>Your OpenCMIS Server Extension</name>
+
+ <build>
+ <plugins>
+ <plugin>
+ <inherited>true</inherited>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>3.0</version>
+ <configuration>
+ <target>1.6</target>
+ <source>1.6</source>
+ <encoding>UTF-8</encoding>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.chemistry.opencmis</groupId>
+ <artifactId>chemistry-opencmis-server-support</artifactId>
+ <version>\${opencmis.version}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.chemistry.opencmis</groupId>
+ <artifactId>chemistry-opencmis-server-bindings</artifactId>
+ <version>\${opencmis.version}</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <version>2.4</version>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+
+</project>
Added:
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-extension-archetype/src/main/resources/archetype-resources/src/main/java/__projectPrefix__CmisServiceWrapper.java
URL:
http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-extension-archetype/src/main/resources/archetype-resources/src/main/java/__projectPrefix__CmisServiceWrapper.java?rev=1622334&view=auto
==============================================================================
---
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-extension-archetype/src/main/resources/archetype-resources/src/main/java/__projectPrefix__CmisServiceWrapper.java
(added)
+++
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-extension-archetype/src/main/resources/archetype-resources/src/main/java/__projectPrefix__CmisServiceWrapper.java
Wed Sep 3 19:44:11 2014
@@ -0,0 +1,22 @@
+#set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+package ${package};
+
+import org.apache.chemistry.opencmis.commons.server.CmisService;
+import
org.apache.chemistry.opencmis.server.support.wrapper.AbstractCmisServiceWrapper;
+
+/**
+ * CMIS Service Wrapper.
+ */
+public class ${projectPrefix}CmisServiceWrapper extends
AbstractCmisServiceWrapper {
+
+ public ${projectPrefix}CmisServiceWrapper(CmisService service) {
+ super(service);
+ }
+
+ // @Override
+ // public void initialize(Object[] params) {
+ // }
+
+}
Added:
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-extension-archetype/src/test/resources/projects/server/archetype.properties
URL:
http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-extension-archetype/src/test/resources/projects/server/archetype.properties?rev=1622334&view=auto
==============================================================================
---
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-extension-archetype/src/test/resources/projects/server/archetype.properties
(added)
+++
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-extension-archetype/src/test/resources/projects/server/archetype.properties
Wed Sep 3 19:44:11 2014
@@ -0,0 +1,5 @@
+groupId=org.test.cmis
+artifactId=test-cmis-server-extension
+version=1.0-SNAPSHOT
+package=org.test.cmis.server.extension
+projectPrefix=TestExt
Added:
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-extension-archetype/src/test/resources/projects/server/goal.txt
URL:
http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-extension-archetype/src/test/resources/projects/server/goal.txt?rev=1622334&view=auto
==============================================================================
---
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-extension-archetype/src/test/resources/projects/server/goal.txt
(added)
+++
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-extension-archetype/src/test/resources/projects/server/goal.txt
Wed Sep 3 19:44:11 2014
@@ -0,0 +1 @@
+clean install
\ No newline at end of file
Modified: chemistry/opencmis/trunk/pom.xml
URL:
http://svn.apache.org/viewvc/chemistry/opencmis/trunk/pom.xml?rev=1622334&r1=1622333&r2=1622334&view=diff
==============================================================================
--- chemistry/opencmis/trunk/pom.xml (original)
+++ chemistry/opencmis/trunk/pom.xml Wed Sep 3 19:44:11 2014
@@ -1,5 +1,4 @@
<?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
@@ -17,9 +16,7 @@
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">
+--><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>
@@ -189,6 +186,7 @@
<module>chemistry-opencmis-server/chemistry-opencmis-server-fileshare</module>
<!--
<module>chemistry-opencmis-server/chemistry-opencmis-server-jcr</module> -->
<module>chemistry-opencmis-server/chemistry-opencmis-server-archetype</module>
+
<module>chemistry-opencmis-server/chemistry-opencmis-server-extension-archetype</module>
<module>chemistry-opencmis-bridge/chemistry-opencmis-bridge</module>
<module>chemistry-opencmis-test/chemistry-opencmis-test-fit</module>
<module>chemistry-opencmis-test/chemistry-opencmis-test-tck</module>
@@ -200,7 +198,7 @@
<module>chemistry-opencmis-osgi/chemistry-opencmis-osgi-client</module>
<module>chemistry-opencmis-android/chemistry-opencmis-android-client</module>
<module>chemistry-opencmis-dist</module>
- </modules>
+ </modules>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -285,6 +283,11 @@
<artifactId>maven-remote-resources-plugin</artifactId>
<version>1.4</version>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-archetype-plugin</artifactId>
+ <version>2.2</version>
+ </plugin>
</plugins>
</pluginManagement>
<plugins>
@@ -710,4 +713,4 @@
</build>
</profile>
</profiles>
-</project>
+</project>
\ No newline at end of file