manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1628999 [2/2] - in /manifoldcf/branches/CONNECTORS-1037/connectors: ./ alfresco-webscript/ alfresco-webscript/connector/ alfresco-webscript/connector/src/ alfresco-webscript/connector/src/main/ alfresco-webscript/connector/src/main/java/ a...
Date Thu, 02 Oct 2014 15:33:57 GMT
Added: manifoldcf/branches/CONNECTORS-1037/connectors/alfresco-webscript/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/webscript/editConfiguration_Server.html
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1037/connectors/alfresco-webscript/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/webscript/editConfiguration_Server.html?rev=1628999&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1037/connectors/alfresco-webscript/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/webscript/editConfiguration_Server.html
(added)
+++ manifoldcf/branches/CONNECTORS-1037/connectors/alfresco-webscript/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/webscript/editConfiguration_Server.html
Thu Oct  2 15:33:55 2014
@@ -0,0 +1,77 @@
+#if($tabName == "Server")
+<table class="displaytable">
+	<tr>
+		<td class="description">
+			<nobr>Protocol</nobr>
+		</td>
+		<td class="value">
+			<input name="protocol" type="text" size="32" value="$protocol" />
+		</td>
+	</tr>
+	<tr>
+		<td class="description">
+			<nobr>Hostname</nobr>
+		</td>
+		<td class="value">
+			<input name="hostname" type="text" size="32" value="$hostname"/>
+		</td>
+	</tr>
+	<tr>
+		<td class="description">
+			<nobr>Endpoint</nobr>
+		</td>
+		<td class="value">
+			<input name="endpoint" type="text" size="32" value="$endpoint" />
+		</td>
+	</tr>
+	<tr>
+		<td class="description">
+			<nobr>Store protocol</nobr>
+		</td>
+		<td class="value">
+			<input name="storeprotocol" type="text" size="32" value="$storeprotocol"/>
+		</td>
+	</tr>
+    <tr>
+        <td class="description">
+            <nobr>Enable Document Processing</nobr>
+        </td>
+        <td class="value">
+            <input name="enabledocumentprocessing" type="checkbox" value="$enabledocumentprocessing"/>
+        </td>
+    </tr>
+	<tr>
+		<td class="description">
+			<nobr>Store id</nobr>
+		</td>
+		<td class="value">
+			<input name="storeid" type="text" size="32" value="$storeid"/>
+		</td>
+	</tr>
+	<tr>
+		<td class="description">
+			<nobr>Username</nobr>
+		</td>
+		<td class="value">
+			<input name="username" type="text" size="32" value="$username"/>
+		</td>
+	</tr>
+	<tr>
+		<td class="description">
+			<nobr>Password</nobr>
+		</td>
+		<td class="value">
+			<input name="password" type="password" size="32" value="$password"/>
+		</td>
+	</tr>
+</table>
+#else
+<input type="hidden" name="protocol" value="$protocol" />
+<input type="hidden" name="hostname" value="$hostname" />
+<input type="hidden" name="endpoint" value="$endpoint" />
+<input type="hidden" name="storeprotocol" value="$storeprotocol" />
+<input type="hidden" name="enabledocumentprocessing" value="$enabledocumentprocessing"
/>
+<input type="hidden" name="storeid" value="$storeid" />
+<input type="hidden" name="username" value="$username" />
+<input type="hidden" name="password" value="$password" />
+#end

Added: manifoldcf/branches/CONNECTORS-1037/connectors/alfresco-webscript/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/webscript/viewConfiguration.html
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1037/connectors/alfresco-webscript/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/webscript/viewConfiguration.html?rev=1628999&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1037/connectors/alfresco-webscript/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/webscript/viewConfiguration.html
(added)
+++ manifoldcf/branches/CONNECTORS-1037/connectors/alfresco-webscript/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/alfresco/webscript/viewConfiguration.html
Thu Oct  2 15:33:55 2014
@@ -0,0 +1,66 @@
+<table class="displaytable">
+	<tr>
+		<td class="description" colspan="1">
+			<nobr>Protocol:</nobr>
+		</td>
+		<td class="value" colspan="3">
+			<nobr>$protocol</nobr><br/>
+		</td>
+	</tr>
+	<tr>
+		<td class="description" colspan="1">
+			<nobr>Hostname:</nobr>
+		</td>
+		<td class="value" colspan="3">
+			<nobr>$hostname</nobr><br/>
+		</td>
+	</tr>
+	<tr>
+		<td class="description" colspan="1">
+			<nobr>Endpoint:</nobr>
+		</td>
+		<td class="value" colspan="3">
+			<nobr>$endpoint</nobr><br/>
+		</td>
+	</tr>
+	<tr>
+		<td class="description" colspan="1">
+			<nobr>Store protocol:</nobr>
+		</td>
+		<td class="value" colspan="3">
+			<nobr>$storeprotocol</nobr><br/>
+		</td>
+	</tr>
+    <tr>
+        <td class="description" colspan="1">
+            <nobr>Enable Document Processing:</nobr>
+        </td>
+        <td class="value" colspan="3">
+            <nobr>$enabledocumentprocessing</nobr><br/>
+        </td>
+    </tr>
+	<tr>
+		<td class="description" colspan="1">
+			<nobr>Store id:</nobr>
+		</td>
+		<td class="value" colspan="3">
+			<nobr>$storeid</nobr><br/>
+		</td>
+	</tr>
+	<tr>
+		<td class="description" colspan="1">
+			<nobr>Username:</nobr>
+		</td>
+		<td class="value" colspan="3">
+			<nobr>$username</nobr><br/>
+		</td>
+	</tr>
+	<tr>
+		<td class="description" colspan="1">
+			<nobr>Password:</nobr>
+		</td>
+		<td class="value" colspan="3">
+			<nobr>********</nobr><br/>
+		</td>
+	</tr>
+</table>

Added: manifoldcf/branches/CONNECTORS-1037/connectors/alfresco-webscript/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/webscript/tests/AlfrescoAuthorityConnectorTest.java
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1037/connectors/alfresco-webscript/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/webscript/tests/AlfrescoAuthorityConnectorTest.java?rev=1628999&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1037/connectors/alfresco-webscript/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/webscript/tests/AlfrescoAuthorityConnectorTest.java
(added)
+++ manifoldcf/branches/CONNECTORS-1037/connectors/alfresco-webscript/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/webscript/tests/AlfrescoAuthorityConnectorTest.java
Thu Oct  2 15:33:55 2014
@@ -0,0 +1,46 @@
+/*
+ * 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.
+ */
+package org.apache.manifoldcf.crawler.connectors.alfresco.webscript.tests;
+
+import org.alfresco.consulting.indexer.client.AlfrescoClient;
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.runners.MockitoJUnitRunner;
+
+import com.google.gson.Gson;
+
+@RunWith(MockitoJUnitRunner.class)
+public class AlfrescoAuthorityConnectorTest {
+  private final Gson gson = new Gson();
+
+  @Mock
+  private AlfrescoClient client;
+   
+    
+  @Before
+  public void setup() throws Exception {
+	  // TODO
+  }
+  
+  @Test
+  public void testAuthorities(){
+	  // TODO
+  }
+  
+}
\ No newline at end of file

Added: manifoldcf/branches/CONNECTORS-1037/connectors/alfresco-webscript/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/webscript/tests/AlfrescoConnectorTest.java
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1037/connectors/alfresco-webscript/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/webscript/tests/AlfrescoConnectorTest.java?rev=1628999&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1037/connectors/alfresco-webscript/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/webscript/tests/AlfrescoConnectorTest.java
(added)
+++ manifoldcf/branches/CONNECTORS-1037/connectors/alfresco-webscript/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/alfresco/webscript/tests/AlfrescoConnectorTest.java
Thu Oct  2 15:33:55 2014
@@ -0,0 +1,197 @@
+/*
+ * 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.
+ */
+package org.apache.manifoldcf.crawler.connectors.alfresco.webscript.tests;
+
+import static org.mockito.Matchers.any;
+import static org.mockito.Matchers.anyInt;
+import static org.mockito.Matchers.anyString;
+import static org.mockito.Matchers.eq;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.never;
+import static org.mockito.Mockito.times;
+import static org.mockito.Mockito.verify;
+import static org.mockito.Mockito.when;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.Map;
+
+import org.alfresco.consulting.indexer.client.AlfrescoClient;
+import org.alfresco.consulting.indexer.client.AlfrescoFilters;
+import org.alfresco.consulting.indexer.client.AlfrescoResponse;
+import org.apache.manifoldcf.agents.interfaces.RepositoryDocument;
+import org.apache.manifoldcf.core.interfaces.ManifoldCFException;
+import org.apache.manifoldcf.core.interfaces.Specification;
+import org.apache.manifoldcf.crawler.connectors.BaseRepositoryConnector;
+import org.apache.manifoldcf.crawler.connectors.alfresco.webscript.AlfrescoConnector;
+import org.apache.manifoldcf.crawler.interfaces.IExistingVersions;
+import org.apache.manifoldcf.crawler.interfaces.IProcessActivity;
+import org.apache.manifoldcf.crawler.system.SeedingActivity;
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.ArgumentCaptor;
+import org.mockito.Mock;
+import org.mockito.Mockito;
+import org.mockito.runners.MockitoJUnitRunner;
+
+@RunWith(MockitoJUnitRunner.class)
+public class AlfrescoConnectorTest {
+  
+  @Mock
+  private AlfrescoClient client;
+ 
+  private AlfrescoConnector connector;
+    
+  @Before
+  public void setup() throws Exception {
+    connector = new AlfrescoConnector();
+    connector.setClient(client);
+
+    when(client.fetchNodes(anyInt(), anyInt(), Mockito.any(AlfrescoFilters.class)))
+            .thenReturn(new AlfrescoResponse(
+                    0, 0, "", "", Collections.<Map<String, Object>>emptyList()));
+  }
+
+  @Test
+  public void whenAddingSeedDocumentTheAlfrescoClientShouldBeUsed() throws Exception {
+    SeedingActivity activities = mock(SeedingActivity.class);
+    Specification spec = new Specification();
+    long seedTime = 0;
+    
+    connector.addSeedDocuments(activities, spec, "", seedTime, BaseRepositoryConnector.JOBMODE_ONCEONLY);
+
+    verify(client).fetchNodes(anyInt(), anyInt(),  Mockito.any(AlfrescoFilters.class));
+  }
+
+  @Test
+  public void whenTheClientIsCalledItShouldUseThePreviouslySentLastTransactionId() throws
+          Exception {
+    long firstTransactionId = 0;
+    long lastTransactionId = 5;
+    long firstAclChangesetId = 0;
+    long lastAclChangesetId = 5;
+
+    when(client.fetchNodes(anyInt(), anyInt(), Mockito.any(AlfrescoFilters.class)))
+            .thenReturn(new AlfrescoResponse(
+                    lastTransactionId, lastAclChangesetId));
+
+    connector.addSeedDocuments(mock(SeedingActivity.class),
+            new Specification(), "", 0, BaseRepositoryConnector.JOBMODE_ONCEONLY);
+    verify(client, times(1)).fetchNodes(eq(firstTransactionId), eq(firstAclChangesetId),
Mockito.any(AlfrescoFilters.class));
+
+    verify(client, times(1)).fetchNodes(eq(lastTransactionId), eq(lastAclChangesetId), Mockito.any(AlfrescoFilters.class));
+  }
+
+  
+  @Test
+  public void whenADocumentIsReturnedItShouldBeAddedToManifold() throws Exception {
+    TestDocument testDocument = new TestDocument();
+    when(client.fetchNodes(anyInt(), anyInt(), Mockito.any(AlfrescoFilters.class)))
+            .thenReturn(new AlfrescoResponse(0, 0, "", "",
+                    Arrays.<Map<String, Object>>asList(testDocument)));
+
+    SeedingActivity seedingActivity = mock(SeedingActivity.class);
+    connector.addSeedDocuments(seedingActivity, new Specification(), "", 0, BaseRepositoryConnector.JOBMODE_ONCEONLY);
+
+    verify(seedingActivity).addSeedDocument(eq(TestDocument.uuid));
+  }
+
+  @Test
+  public void whenProcessingDocumentsNodeRefsAreUsedAsDocumentURI() throws Exception {
+    TestDocument testDocument = new TestDocument();
+    IProcessActivity activities = mock(IProcessActivity.class);
+    IExistingVersions statuses = mock(IExistingVersions.class);
+    
+    when(client.fetchNode(anyString()))
+    .thenReturn(new AlfrescoResponse(0, 0, "", "",
+            Arrays.<Map<String, Object>>asList(testDocument)));
+    
+//    processDocuments(String[] documentIdentifiers, IExistingVersions statuses, Specification
spec,
+//            IProcessActivity activities, int jobMode, boolean usesDefaultAuthority)
+    connector.processDocuments(new String[]{TestDocument.uuid}, statuses, new Specification(),
activities, 0, true);
+
+    ArgumentCaptor<RepositoryDocument> rd = ArgumentCaptor.forClass(RepositoryDocument.class);
+    verify(activities)
+            .ingestDocumentWithException(eq(TestDocument.uuid), anyString(),
+                    eq(TestDocument.uuid), rd.capture());
+
+    Iterator<String> i = rd.getValue().getFields();
+    while(i.hasNext()) {
+      String fieldName = i.next();
+      Object value1 = rd.getValue().getField(fieldName)[0];
+      Object value2 = testDocument.getRepositoryDocument().getField(fieldName)[0];
+      assert value1.equals(value2);
+    }
+  }
+
+  @Test
+  public void whenProcessingDeletionShouldBeRegisteredAsDeletions() throws Exception {
+    TestDocument testDocument = new TestDocument();
+    testDocument.setDeleted(true);
+
+    when(client.fetchNode(anyString()))
+    .thenReturn(new AlfrescoResponse(0, 0, "", "",
+            Arrays.<Map<String, Object>>asList(testDocument)));
+    
+    IProcessActivity activities = mock(IProcessActivity.class);
+    IExistingVersions statuses = mock(IExistingVersions.class);
+    connector.processDocuments(new String[]{TestDocument.uuid}, statuses, new Specification(),
activities, 0, true);
+
+    verify(activities).deleteDocument(eq(TestDocument.uuid));
+    verify(activities, never()).ingestDocumentWithException(eq(TestDocument.uuid), anyString(),
anyString(),
+            any(RepositoryDocument.class));
+
+  }
+
+  @SuppressWarnings("serial")
+  private class TestDocument extends HashMap<String, Object> {
+    static final String uuid = "abc123";
+    static final String type = "cm:content";
+    static final String nodeRef = "workspace://abc123";
+    static final boolean deleted = false;
+    static final String storeId = "SpacesStore";
+    static final String storeProtocol = "workspace";
+    static final String name = "test";
+
+    public TestDocument() {
+      super();
+      put("uuid", uuid);
+      put("type", type);
+      put("deleted", deleted);
+      put("store_id", storeId);
+      put("store_protocol", storeProtocol);
+      put("nodeRef", nodeRef);
+      put("name", name);
+    }
+
+    public void setDeleted(boolean deleted) {
+      put("deleted", deleted);
+    }
+
+    public RepositoryDocument getRepositoryDocument() throws ManifoldCFException {
+      RepositoryDocument rd = new RepositoryDocument();
+      rd.setFileName(uuid);
+      for(String property : keySet()) {
+        rd.addField(property,get(property).toString());
+      }
+      return rd;
+    }
+  }
+}
\ No newline at end of file

Added: manifoldcf/branches/CONNECTORS-1037/connectors/alfresco-webscript/connector/src/test/resources/authorities.sample.json
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1037/connectors/alfresco-webscript/connector/src/test/resources/authorities.sample.json?rev=1628999&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1037/connectors/alfresco-webscript/connector/src/test/resources/authorities.sample.json
(added)
+++ manifoldcf/branches/CONNECTORS-1037/connectors/alfresco-webscript/connector/src/test/resources/authorities.sample.json
Thu Oct  2 15:33:55 2014
@@ -0,0 +1,20 @@
+{
+    "username" : "admin",
+    "authorities" : [
+    "GROUP_ALFRESCO_ADMINISTRATORS"
+    ,
+    "GROUP_EMAIL_CONTRIBUTORS"
+    ,
+    "GROUP_EVERYONE"
+    ,
+    "GROUP_site_konner"
+    ,
+    "GROUP_site_konner_SiteManager"
+    ,
+    "GROUP_site_swsdp"
+    ,
+    "GROUP_site_swsdp_SiteManager"
+    ,
+    "ROLE_ADMINISTRATOR"
+    ]
+}
\ No newline at end of file

Added: manifoldcf/branches/CONNECTORS-1037/connectors/alfresco-webscript/connector/src/test/resources/metadata.sample.json
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1037/connectors/alfresco-webscript/connector/src/test/resources/metadata.sample.json?rev=1628999&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1037/connectors/alfresco-webscript/connector/src/test/resources/metadata.sample.json
(added)
+++ manifoldcf/branches/CONNECTORS-1037/connectors/alfresco-webscript/connector/src/test/resources/metadata.sample.json
Thu Oct  2 15:33:55 2014
@@ -0,0 +1,15 @@
+{
+	"path": "A/B/C",
+	"readableAuthorities": [ "1", "2", "3" ],
+	"properties": [ {
+			"name": "pippo",
+			"value": "pluto",
+			"type": "java.lang.String"
+		}, {
+			"name": "foo",
+			"value": "5",
+			"type": "java.lang.Double"
+		}
+	],
+	"aspects": [ "a", "b", "c" ]
+}
\ No newline at end of file

Added: manifoldcf/branches/CONNECTORS-1037/connectors/alfresco-webscript/connector/src/test/resources/multi.authorities.sample.json
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1037/connectors/alfresco-webscript/connector/src/test/resources/multi.authorities.sample.json?rev=1628999&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1037/connectors/alfresco-webscript/connector/src/test/resources/multi.authorities.sample.json
(added)
+++ manifoldcf/branches/CONNECTORS-1037/connectors/alfresco-webscript/connector/src/test/resources/multi.authorities.sample.json
Thu Oct  2 15:33:55 2014
@@ -0,0 +1,24 @@
+[
+    {
+        username:"guest",
+        authorities:[
+            "ROLE_GUEST"
+        ]
+    },
+    {
+        username:"abeecher",
+        authorities:[
+            "GROUP_EVERYONE",
+            "GROUP_site_swsdp",
+            "GROUP_site_swsdp_SiteCollaborator"
+        ]
+    },
+    {
+        username:"mjackson",
+        authorities:[
+            "GROUP_EVERYONE",
+            "GROUP_site_swsdp",
+            "GROUP_site_swsdp_SiteManager"
+        ]
+    }
+]
\ No newline at end of file

Added: manifoldcf/branches/CONNECTORS-1037/connectors/alfresco-webscript/pom.xml
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1037/connectors/alfresco-webscript/pom.xml?rev=1628999&view=auto
==============================================================================
--- manifoldcf/branches/CONNECTORS-1037/connectors/alfresco-webscript/pom.xml (added)
+++ manifoldcf/branches/CONNECTORS-1037/connectors/alfresco-webscript/pom.xml Thu Oct  2 15:33:55
2014
@@ -0,0 +1,335 @@
+<?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/xsd/maven-4.0.0.xsd">
+    <parent>
+        <groupId>org.apache.manifoldcf</groupId>
+        <artifactId>mcf-connectors</artifactId>
+        <version>2.0-SNAPSHOT</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+
+    <developers>
+        <developer>
+            <name>Maurizio Pillitu</name>
+            <organization>Alfresco</organization>
+            <organizationUrl>http://www.alfresco.com</organizationUrl>
+            <url>http://session.it</url>
+        </developer>
+        <developer>
+            <name>Rafa Haro</name>
+            <organization>Zaizi</organization>
+            <organizationUrl>http://www.zaizi.com</organizationUrl>
+            <url>https://github.com/rafaharo</url>
+        </developer>
+    </developers>
+
+    <artifactId>mcf-alfresco-webscript-connector</artifactId>
+    <name>ManifoldCF - Connectors - Alfresco Webscript</name>
+
+    <properties>
+        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
+    </properties>
+
+    <repositories>
+        <repository>
+            <id>alfresco-release</id>
+            <url>https://artifacts.alfresco.com/nexus/content/repositories/releases</url>
+        </repository>
+        <repository>
+            <id>alfresco-indexer-release</id>
+            <url>https://repository-maoo.forge.cloudbees.com/release/</url>
+        </repository>
+    </repositories>
+
+    <pluginRepositories>
+        <pluginRepository>
+            <id>alfresco-release</id>
+            <url>https://artifacts.alfresco.com/nexus/content/repositories/releases</url>
+        </pluginRepository>
+    </pluginRepositories>
+
+    <build>
+        <sourceDirectory>${basedir}/connector/src/main/java</sourceDirectory>
+        <testSourceDirectory>${basedir}/connector/src/test/java</testSourceDirectory>
+        <resources>
+            <resource>
+                <directory>${basedir}/connector/src/main/native2ascii</directory>
+                <includes>
+                    <include>**/*.properties</include>
+                </includes>
+            </resource>
+            <resource>
+                <directory>${basedir}/connector/src/main/resources</directory>
+                <includes>
+                    <include>**/*.html</include>
+                    <include>**/*.js</include>
+                </includes>
+            </resource>
+        </resources>
+        <testResources>
+            <testResource>
+                <directory>${basedir}/connector/src/test/resources</directory>
+            </testResource>
+        </testResources>
+        <plugins>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>native2ascii-maven-plugin</artifactId>
+                <version>1.0-beta-1</version>
+                <configuration>
+                    <workDir>target/classes</workDir>
+                </configuration>
+                <executions>
+                    <execution>
+                        <id>native2ascii-utf8</id>
+                        <goals>
+                            <goal>native2ascii</goal>
+                        </goals>
+                        <configuration>
+                            <encoding>UTF8</encoding>
+                            <includes>
+                                <include>**/*.properties</include>
+                            </includes>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-surefire-plugin</artifactId>
+                <configuration>
+                    <excludes>
+                        <exclude>**/*Postgresql*.java</exclude>
+                        <exclude>**/*MySQL*.java</exclude>
+                    </excludes>
+                    <forkMode>always</forkMode>
+                    <workingDirectory>target/test-output</workingDirectory>
+                </configuration>
+            </plugin>
+            <plugin>
+                <artifactId>maven-dependency-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>copy-war</id>
+                        <phase>generate-resources</phase>
+                        <goals>
+                            <goal>copy</goal>
+                        </goals>
+                        <configuration>
+                            <outputDirectory>target/dependency</outputDirectory>
+                            <artifactItems>
+                                <artifactItem>
+                                    <groupId>${project.groupId}</groupId>
+                                    <artifactId>mcf-api-service</artifactId>
+                                    <version>${project.version}</version>
+                                    <type>war</type>
+                                    <overWrite>false</overWrite>
+                                    <destFileName>mcf-api-service.war</destFileName>
+                                </artifactItem>
+                                <artifactItem>
+                                    <groupId>${project.groupId}</groupId>
+                                    <artifactId>mcf-authority-service</artifactId>
+                                    <version>${project.version}</version>
+                                    <type>war</type>
+                                    <overWrite>false</overWrite>
+                                    <destFileName>mcf-authority-service.war</destFileName>
+                                </artifactItem>
+                                <artifactItem>
+                                    <groupId>${project.groupId}</groupId>
+                                    <artifactId>mcf-crawler-ui</artifactId>
+                                    <version>${project.version}</version>
+                                    <type>war</type>
+                                    <overWrite>false</overWrite>
+                                    <destFileName>mcf-crawler-ui.war</destFileName>
+                                </artifactItem>
+                                <artifactItem>
+                                    <groupId>${project.groupId}</groupId>
+                                    <artifactId>alfresco-4-war</artifactId>
+                                    <version>${project.version}</version>
+                                    <type>war</type>
+                                    <overWrite>false</overWrite>
+                                    <destFileName>alfresco.war</destFileName>
+                                </artifactItem>
+                            </artifactItems>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-failsafe-plugin</artifactId>
+                <version>2.12.3</version>
+                <configuration>
+                    <skipTests>${skipITs}</skipTests>
+                    <systemPropertyVariables>
+                        <crawlerWarPath>../dependency/mcf-crawler-ui.war</crawlerWarPath>
+                        <authorityserviceWarPath>../dependency/mcf-authority-service.war</authorityserviceWarPath>
+                        <apiWarPath>../dependency/mcf-api-service.war</apiWarPath>
+                        <alfrescoServerWarPath>../dependency/alfresco.war</alfrescoServerWarPath>
+                    </systemPropertyVariables>
+                    <excludes>
+                        <exclude>**/*Postgresql*.java</exclude>
+                        <exclude>**/*MySQL*.java</exclude>
+                    </excludes>
+                    <forkMode>always</forkMode>
+                    <workingDirectory>target/test-output</workingDirectory>
+                    <argLine>-Xms512m -Xmx1024m -Xss1024k -XX:MaxPermSize=256m -XX:NewSize=256m</argLine>
+                </configuration>
+                <executions>
+                    <execution>
+                        <id>integration-test</id>
+                        <goals>
+                            <goal>integration-test</goal>
+                        </goals>
+                    </execution>
+                    <execution>
+                        <id>verify</id>
+                        <goals>
+                            <goal>verify</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+        <pluginManagement>
+        	<plugins>
+        		<!--This plugin's configuration is used to store Eclipse m2e settings only.
It has no influence on the Maven build itself.-->
+        		<plugin>
+        			<groupId>org.eclipse.m2e</groupId>
+        			<artifactId>lifecycle-mapping</artifactId>
+        			<version>1.0.0</version>
+        			<configuration>
+        				<lifecycleMappingMetadata>
+        					<pluginExecutions>
+        						<pluginExecution>
+        							<pluginExecutionFilter>
+        								<groupId>
+        									org.codehaus.mojo
+        								</groupId>
+        								<artifactId>
+        									native2ascii-maven-plugin
+        								</artifactId>
+        								<versionRange>
+        									[1.0-beta-1,)
+        								</versionRange>
+        								<goals>
+        									<goal>native2ascii</goal>
+        								</goals>
+        							</pluginExecutionFilter>
+        							<action>
+        								<ignore></ignore>
+        							</action>
+        						</pluginExecution>
+        						<pluginExecution>
+        							<pluginExecutionFilter>
+        								<groupId>
+        									org.apache.maven.plugins
+        								</groupId>
+        								<artifactId>
+        									maven-remote-resources-plugin
+        								</artifactId>
+        								<versionRange>
+        									[1.1,)
+        								</versionRange>
+        								<goals>
+        									<goal>process</goal>
+        								</goals>
+        							</pluginExecutionFilter>
+        							<action>
+        								<ignore></ignore>
+        							</action>
+        						</pluginExecution>
+        					</pluginExecutions>
+        				</lifecycleMappingMetadata>
+        			</configuration>
+        		</plugin>
+        	</plugins>
+        </pluginManagement>
+    </build>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.alfresco.consulting.indexer</groupId>
+            <artifactId>alfresco-indexer-client</artifactId>
+            <version>0.6</version>
+        </dependency>
+
+
+        <dependency>
+            <groupId>${project.groupId}</groupId>
+            <artifactId>mcf-core</artifactId>
+            <version>${project.version}</version>
+        </dependency>
+
+        <dependency>
+            <groupId>${project.groupId}</groupId>
+            <artifactId>mcf-pull-agent</artifactId>
+            <version>${project.version}</version>
+        </dependency>
+
+        <dependency>
+            <groupId>${project.groupId}</groupId>
+            <artifactId>mcf-agents</artifactId>
+            <version>${project.version}</version>
+        </dependency>
+
+        <dependency>
+            <groupId>${project.groupId}</groupId>
+            <artifactId>mcf-ui-core</artifactId>
+            <version>${project.version}</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>slf4j-log4j12</artifactId>
+            <version>1.7.5</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>slf4j-nop</artifactId>
+            <version>1.7.5</version>
+            <scope>test</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.mockito</groupId>
+            <artifactId>mockito-core</artifactId>
+            <version>1.9.5</version>
+            <scope>test</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>com.github.tomakehurst</groupId>
+            <artifactId>wiremock</artifactId>
+            <version>1.34</version>
+            <scope>test</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <version>4.8.1</version>
+            <scope>test</scope>
+        </dependency>
+
+    </dependencies>
+</project>
\ No newline at end of file

Modified: manifoldcf/branches/CONNECTORS-1037/connectors/pom.xml
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1037/connectors/pom.xml?rev=1628999&r1=1628998&r2=1628999&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-1037/connectors/pom.xml (original)
+++ manifoldcf/branches/CONNECTORS-1037/connectors/pom.xml Thu Oct  2 15:33:55 2014
@@ -34,6 +34,7 @@
   <modules>
     <!-- common modules -->
     <module>activedirectory</module>
+    <module>alfresco-webscript</module>
     <module>filesystem</module>
     <module>gts</module>
     <module>hdfs</module>



Mime
View raw message