[ 
https://issues.apache.org/jira/browse/CONNECTORS-1750?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17789473#comment-17789473
 ] 

Piergiorgio Lucidi edited comment on CONNECTORS-1750 at 11/24/23 2:45 PM:
--------------------------------------------------------------------------

I found an issue related to the Ant build of the Solr connector:
/home/jenkins/workspace/ManifoldCF/ManifoldCF-ant/build.xml:485: The following 
error occurred while executing this line:
/home/jenkins/workspace/ManifoldCF/ManifoldCF-ant/build.xml:471: The following 
error occurred while executing this line:
/home/jenkins/workspace/ManifoldCF/ManifoldCF-ant/connectors/solr/build.xml:108:
 Directory does not exist: 
/home/jenkins/workspace/ManifoldCF/ManifoldCF-ant/connectors/solr/test-materials
I have updated the connectors/solr/build.xml adding a new attribute 
erroronmissingdir="false":
{code:java}
<target name="download-cleanup">
<delete>
   <fileset dir="test-materials" erroronmissingdir="false" 
excludes="README*.txt"/>
</delete>
</target>
{code}
Another issue related to the Maven build of the CSV connector, the Maven pom 
was not valid and finally I updated the URL of the Nuxeo Maven repo.

In order to patch the Ant and Maven build process for any recent version of 
ManifoldCF source package, we could share the following commands for string 
replacement:
{code:java}
sed -i -e 's/<fileset dir=\"test-materials\" excludes/<fileset 
dir=\"test-materials\" erroronmissingdir=\"false\" excludes/g' 
connectors/solr/build.xml; \

sed -i -e 's/<?xml version=\"1\.0\" encoding=\"UTF-8\"?>/ /g' 
connectors/csv/pom.xml; \

sed -i -e 
's/https\:\/\/maven.nuxeo.org\/nexus\/content\/repositories\/public-releases/https\:\/\/packages.nuxeo.com\/repository\/maven-public-archives/g'
 build.xml;{code}
I had to include these sed instructions in the run.sh of the ManifoldCF SDK in 
order to solve all the build problems. 

 


was (Author: piergiorgioluc...@gmail.com):
I found an issue related to the Ant build of the Solr connector:
/home/jenkins/workspace/ManifoldCF/ManifoldCF-ant/build.xml:485: The following 
error occurred while executing this line:
/home/jenkins/workspace/ManifoldCF/ManifoldCF-ant/build.xml:471: The following 
error occurred while executing this line:
/home/jenkins/workspace/ManifoldCF/ManifoldCF-ant/connectors/solr/build.xml:108:
 Directory does not exist: 
/home/jenkins/workspace/ManifoldCF/ManifoldCF-ant/connectors/solr/test-materials
I have updated the connectors/solr/build.xml adding a new attribute 
erroronmissingdir="false":
 
{code:java}
<target name="download-cleanup">
<delete>
   <fileset dir="test-materials" erroronmissingdir="false" 
excludes="README*.txt"/>
</delete>
</target>
{code}
 

Another issue related to the Maven build of the CSV connector, the Maven pom 
was not valid and finally I updated the URL of the Nuxeo Maven repo.

 

> Build broken due to the Nuxeo Maven repo not available
> ------------------------------------------------------
>
>                 Key: CONNECTORS-1750
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-1750
>             Project: ManifoldCF
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: ManifoldCF 2.26
>            Reporter: Piergiorgio Lucidi
>            Assignee: Piergiorgio Lucidi
>            Priority: Major
>             Fix For: ManifoldCF next
>
>
> Trying to build ManifoldCF, during the first step when we run:
> {{ant make-core-deps}}
> the nuxeo-java-client-3.0.1.jar is not available from the Nuxeo Maven repo.
> It seems that they have a problem with that Nexus instance at the moment:
> {noformat}
> download-via-nuxeo:
>       [get] Getting: 
> https://maven.nuxeo.org/nexus/content/repositories/public-releases/org/nuxeo/client/nuxeo-java-client/3.0.1/nuxeo-java-client-3.0.1.jar
>       [get] To: 
> /Users/piergiorgiolucidi/Documents/workspaces/manifoldNew/mcf-trunk-2023/lib/nuxeo-java-client-3.0.1.jar
>       [get] Error opening connection java.io.IOException: Server returned 
> HTTP response code: 500 for URL: 
> https://maven.nuxeo.org/nexus/content/repositories/public-releases/org/nuxeo/client/nuxeo-java-client/3.0.1/nuxeo-java-client-3.0.1.jar
>       [get] Error opening connection java.io.IOException: Server returned 
> HTTP response code: 500 for URL: 
> https://maven.nuxeo.org/nexus/content/repositories/public-releases/org/nuxeo/client/nuxeo-java-client/3.0.1/nuxeo-java-client-3.0.1.jar
>       [get] Error opening connection java.io.IOException: Server returned 
> HTTP response code: 500 for URL: 
> https://maven.nuxeo.org/nexus/content/repositories/public-releases/org/nuxeo/client/nuxeo-java-client/3.0.1/nuxeo-java-client-3.0.1.jar
>       [get] Can't get 
> https://maven.nuxeo.org/nexus/content/repositories/public-releases/org/nuxeo/client/nuxeo-java-client/3.0.1/nuxeo-java-client-3.0.1.jar
>  to 
> /Users/piergiorgiolucidi/Documents/workspaces/manifoldNew/mcf-trunk-2023/lib/nuxeo-java-client-3.0.1.jar{noformat}
> Anyway I noticed that this Maven dependency is also available in Maven 
> Central at the following URL:
> [https://mvnrepository.com/artifact/org.nuxeo.client/nuxeo-java-client/3.0.1]
> So we could just change the URL for downloading this JAR.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to