Error adding Alfresco Bulk import to project with SDK 3.0

53 views
Skip to first unread message

Yusén Manchego

unread,
Feb 9, 2018, 1:39:02 PM2/9/18
to Alfresco Bulk Import Tool
Hello Peter

I have generated a project using maven and the Alfresco SDK 3.0 (https://docs.alfresco.com/community/concepts/sdk-getting-started.html)
 and I want to install AMP of Alfresco Bulk Import like  Alfresco Share Services AMP (https://docs.alfresco.com/community/tasks/sdk-using-amps.html)
   using maven as

<moduleDependency>
  <groupId>org.alfresco.extension</groupId>
  <artifactId>alfresco-bulk-import</artifactId>
  <version>${alfresco.share.version}</version>
  <type>amp</type>
</moduleDependency>

but after run, I have the next error

[ERROR] Failed to execute goal org.alfresco.maven.plugin:alfresco-maven-plugin:3.0.1:run (default-cli) on project todo-en-uno: Unable to execute mojo: Unable to resolve artifact. Could not transfer artifact org.alfresco.extension:alfresco-bulk-import:amp:5.2.e from/to alfresco-private-repository (https://artifacts.alfresco.com/nexus/content/groups/private): Not authorized , ReasonPhrase:Unauthorized.
[ERROR]   org.alfresco.extension:alfresco-bulk-import:amp:5.2.e
[ERROR]
[ERROR] from the specified remote repositories:
[ERROR]   alfresco-public (https://artifacts.alfresco.com/nexus/content/groups/public, releases=true, snapshots=true),
[ERROR]   alfresco-public-snapshots (https://artifacts.alfresco.com/nexus/content/groups/public-snapshots, releases=true, snapshots=true),
[ERROR]   alfresco-private-repository (https://artifacts.alfresco.com/nexus/content/groups/private, releases=true, snapshots=true),
[ERROR]   central (https://repo.maven.apache.org/maven2, releases=true, snapshots=false)
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:

I need to have Alfresco Bulk Import in my project with SDK 3.0 for to do a customization ... can yoo help me? please .. thanks

Douglas C. R. Paes

unread,
Feb 10, 2018, 10:00:39 AM2/10/18
to Alfresco Bulk Import Tool
For the module version, you have to set the module's version, and not the Alfresco version, as you did.

If you look at the releases page https://github.com/pmonks/alfresco-bulk-import/releases you will see the latest released version is 2.1.0, so, using your code as a sample, you should have the following:

<moduleDependency>
  <groupId>org.alfresco.extension</groupId>
  <artifactId>alfresco-bulk-
import</artifactId>
  <version>2.1.0</version>
  <type>amp</type>
</moduleDependency>

Try it again like this and let us know how it goes.

Yusén Manchego

unread,
Feb 10, 2018, 2:26:48 PM2/10/18
to Alfresco Bulk Import Tool
I have the next problem

[ERROR] Failed to execute goal org.alfresco.maven.plugin:alfresco-maven-plugin:3.0.1:run (default-cli) on project todo-en-uno: Unable to execute mojo: Unable to resolve artifact. Could not transfer artifact org.alfresco.extension:alfresco-bulk-import:amp:2.1.0 from/to alfresco-private-repository (https://artifacts.alfresco.com/nexus/content/groups/private): Not authorized , ReasonPhrase:Unauthorized.
[ERROR]   org.alfresco.extension:alfresco-bulk-import:amp:2.1.0
[ERROR]
[ERROR] from the specified remote repositories:
[ERROR]   alfresco-public (https://artifacts.alfresco.com/nexus/content/groups/public, releases=true, snapshots=true),
[ERROR]   alfresco-public-snapshots (https://artifacts.alfresco.com/nexus/content/groups/public-snapshots, releases=true, snapshots=true),
[ERROR]   alfresco-private-repository (https://artifacts.alfresco.com/nexus/content/groups/private, releases=true, snapshots=true),
[ERROR]   central (https://repo.maven.apache.org/maven2, releases=true, snapshots=false)
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:


Douglas C. R. Paes

unread,
Feb 12, 2018, 6:05:33 AM2/12/18
to Alfresco Bulk Import Tool
What is the exact version you see in the alfresco-bul-import project's pom.xml files you downloaded?

The problem you are seeing is simply because you do not have the 2.0.1 version installed on your local maven repository.
In order to fix that, you have to download the source code, perform a mvn clean install into the project's root folder, and then use that exact version as a dependency in your alfresco project. That is all.

Yusén Manchego

unread,
Feb 13, 2018, 2:23:38 PM2/13/18
to Alfresco Bulk Import Tool
Thank you very much worked
Reply all
Reply to author
Forward
0 new messages