public static void main(String[] args) throws Exception {
MigracaoNuxeoRepositorio migracaoNuxeoRepositorio = new MigracaoNuxeoRepositorio();
migracaoNuxeoRepositorio.exportNuxeo();
}
private Document exportNuxeo() throws IOException {
Document document = new Document("file", "File");
document.set("dc:title", "Documento 1");
document = nuxeoClient.repository().createDocumentByPath("/teste.leg/workspaces/", document);
Document docCriado = nuxeoClient.repository().fetchDocumentByPath("/teste.leg/workspaces/file");
Blob fileBlob = new Blob(new File("c:\\Desenvolvimento\\doc-nuxeo\\teste.pdf"));
nuxeoClient.automation().newRequest("Blob.AttachOnDocument").param("document", docCriado).input(fileBlob).execute();
return docCriado;
}
Exception in thread "main" java.lang.NoSuchMethodError: retrofit2.Response.isSuccess()Z
at org.nuxeo.client.api.objects.NuxeoEntity.getResponse(NuxeoEntity.java:140)
at org.nuxeo.client.api.objects.Repository.createDocumentByPath(Repository.java:117)
I need help solving this problem
email: anapaulalopes12@gmail.com