[
https://issues.apache.org/jira/browse/CONNECTORS-1490?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16574570#comment-16574570
]
Karl Wright commented on CONNECTORS-1490:
-----------------------------------------
Hi [[email protected]], we have to rethink this.
I executed the following steps:
{code}
ant make-core-deps make-deps
ant test
{code}
This fails because of the following:
{code}
[exec] [ERROR] Failed to execute goal on project mcf-mongodb-connector:
Could not resolve dependencies for project
org.apache.manifoldcf:mcf-mongodb-connector:jar:2.11-SNAPSHOT: The following
artifacts could not be resolved:
org.apache.manifoldcf:mcf-core:jar:2.11-SNAPSHOT,
org.apache.manifoldcf:mcf-connector-common:jar:2.11-SNAPSHOT,
org.apache.manifoldcf:mcf-agents:jar:2.11-SNAPSHOT,
org.apache.manifoldcf:mcf-pull-agent:jar:2.11-SNAPSHOT,
org.apache.manifoldcf:mcf-ui-core:jar:2.11-SNAPSHOT,
org.apache.manifoldcf:mcf-core:jar:tests:2.11-SNAPSHOT,
org.apache.manifoldcf:mcf-agents:jar:tests:2.11-SNAPSHOT,
org.apache.manifoldcf:mcf-pull-agent:jar:tests:2.11-SNAPSHOT,
org.apache.manifoldcf:mcf-api-service:war:2.11-SNAPSHOT,
org.apache.manifoldcf:mcf-authority-service:war:2.11-SNAPSHOT,
org.apache.manifoldcf:mcf-crawler-ui:war:2.11-SNAPSHOT: Could not find artifact
org.apache.manifoldcf:mcf-core:jar:2.11-SNAPSHOT in sonatype-repo
(http://oss.sonatype.org/content/repositories/snapshots) -> [Help 1]
{code}
This is obviously because it's still shelling out to Maven, and it's expecting
the maven build to have been run first. We cannot insure that, and committing
a native ant build seems unreasonable because there are literally hundreds of
dependencies mongodb brings in for testing that we'd have to all download via
ant.
So it seems to me there are two choices. First choice is to simply not run any
Mongodb integration tests under Ant, and only run them under Maven. The second
choice is to revamp the ManifoldCF ant build to use ivy instead of manual
dependency resolution. The second approach is problematic too, though, because
we'd still be distribution a much much larger lib distribution. I don't know
how much larger. We'd also need to figure out how to build a lib distribution
since we'd effectively be replacing the "lib" directory with ivy support.
For now I therefore think the only possibility is disabling the Mongodb
integration tests under Ant. Can you do that?
> GSOC: MongoDB Output Connector
> ------------------------------
>
> Key: CONNECTORS-1490
> URL: https://issues.apache.org/jira/browse/CONNECTORS-1490
> Project: ManifoldCF
> Issue Type: New Feature
> Components: MongoDB Output Connector
> Reporter: Piergiorgio Lucidi
> Assignee: Piergiorgio Lucidi
> Priority: Major
> Labels: MongoDB, gsoc2018, java, junit
> Attachments: mcf-mongodb-connector(CONNECTORS-1490).patch,
> mcf-mongodb-connector(CONNECTORS-1490)1.patch,
> mongoDB-connectors-IT-OK-from-Ant.txt,
> mongodb-output-connection-configuration.PNG
>
> Original Estimate: 480h
> Remaining Estimate: 480h
>
> This is a project idea for [Google Summer of
> Code|https://summerofcode.withgoogle.com/] (GSOC).
> To discuss this or other ideas with your potential mentor from the Apache
> ManifoldCF project, sign up and post to the [email protected] list,
> including "[GSOC]" in the subject. You may also comment on this Jira issue if
> you have created an account.
> We would like to extend the Content Migration capabilities adding MongoDB /
> GridFS as a new output connector for importing contents from one or more
> repositories supported by ManifoldCF. In this way we will help developers on
> migrating contents from different data sources on MongoDB.
> You will be involved in the development of the following tasks, you will
> learn how to:
> * Write the connector implementation
> * Implement unit tests
> * Build all the integration tests for testing the connector inside the
> framework
> * Write the documentation for this connector
> We have a complete documentation on how to implement an Output Connector:
> [https://manifoldcf.apache.org/release/release-2.9.1/en_US/writing-output-connectors.html]
> Take a look also at our book to understand better the framework and how to
> implement connectors:
> [https://github.com/DaddyWri/manifoldcfinaction/tree/master/pdfs]
>
> Prospective GSOC mentor:
> [[email protected]|mailto:[email protected]]
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)