01-22-2020 04:18 AM
Hello!
I`m try workflow tutorial from ecmarchitect: https://ecmarchitect.com/alfresco-developer-series-tutorials/workflow/tutorial/tutorial.html but for early Alfresco Community Edition 5.2 from git.
after ./run.sh proccess stoped after:
[INFO] Configured Artifact: com.someco:behavior-tutorial-platform-jar:1.0-SNAPSHOT:amp Downloading: https://artifacts.alfresco.com/nexus/content/groups/private/com/someco/behavior-tutorial-platform-jar/1.0-SNAPSHOT/maven-metadata.xml [WARNING] Could not transfer metadata com.someco:behavior-tutorial-platform-jar:1.0-SNAPSHOT/maven-metadata.xml from/to alfresco-private-repository (https://artifacts.alfresco.com/nexus/content/groups/private): Not authorized , ReasonPhrase:Unauthorized.
Downloading: https://artifacts.alfresco.com/nexus/content/groups/private/com/someco/behavior-tutorial-platform-jar/1.0-SNAPSHOT/behavior-tutorial-platform-jar-1.0-SNAPSHOT.amp
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] ecmarchitect.com workflow tutorial ................. FAILURE [ 4.396 s]
[INFO] workflow-tutorial repo tier AMP project ............ SUCCESS [ 4.449 s]
[INFO] workflow-tutorial share tier AMP project ........... SUCCESS [ 0.892 s]
[INFO] Integration Tests Module ........................... SUCCESS [ 0.582 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.245 s
[INFO] Finished at: 2020-01-22T11:00:08+02:00
[INFO] Final Memory: 62M/377M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.alfresco.maven.plugin:alfresco-maven-plugin:3.0.1:run (default-cli) on project workflow-tutorial: Unable to execute mojo: Unable to resolve artifact. Could not transfer artifact com.someco:behavior-tutorial-platform-jar:amp:1.0-SNAPSHOT from/to alfresco-private-repository (https://artifacts.alfresco.com/nexus/content/groups/private): Not authorized , ReasonPhrase:Unauthorized.
[ERROR] com.someco:behavior-tutorial-platform-jar:amp:1.0-SNAPSHOT
If go directly to https://artifacts.alfresco.com/nexus/content/groups/private/com/someco/behavior-tutorial-platform-ja... - really "Access Denied" message.
Inside pom.xml see "Alfresco Enterprise Edition Artifacts, put username/pwd for server in settings.xml" sector.
Why tutorial use Enterprise private group, where must be settings.xml, what format for username/pwd and finally where to get username/pwd if its real.
Tnx.
P.S. e.g. actions tutorial start alfresco via ./run.sh good but need workflow tutorial..
01-22-2020 04:37 AM
settings.xml is an optional file of your local Maven installations.
This file should be stored in your local directory at the following path:
<YOUR LOCAL USER FOLDER>/.m2/settings.xml
If this file doesn't exist in your local machine, you have to create a new one from scratch.
The content should be similar to the following snippet:
<settings> <servers>
<server> <id>alfresco-private-repository</id> <username>username</username> <password>password</password> </server>
</servers> </settings>
Hope this helps.
01-22-2020 05:17 AM
Thank you. But what about username passwd for Alfresco Enterprise Edition Artifacts if I dont have it? May be some general usr/pwd for this tutorial case?
01-22-2020 11:28 AM
Since you intend to use community version, you can comment the repository configuration in pom file. It should not stop you from using the tutorial.
<!--<repository>
<id>alfresco-private-repository</id>
<url>https://artifacts.alfresco.com/nexus/content/groups/private</url>
</repository>-->
01-23-2020 02:52 AM
I try it first. Not help because finally its cant fount behavior amp.
So I comment all <!-- Bring in the behavior tutorial repo AMP so we can run embedded.. .....
Now ./run.sh starts but without behavior part
01-23-2020 06:57 AM
Srange, it should not complain about a local artifact anyway. Pom files in all the sub projects containing the same repository configuration.
Can you post the full build log here? One with success and other with the failure
01-28-2020 07:25 AM
pom file from here https://github.com/jpotts/alfresco-developer-series/blob/master/workflow/workflow-tutorial/pom.xml
As you can see its use " Alfresco Enterprise Edition Artifacts" dont know why..
01-28-2020 09:42 AM
There is no problem having enterprise repo configuration in pom file. All sub projects under "alfresco-developer-series" has this repo configuration. So it should not be the case that one will work and other will not work.
<repository>
<id>alfresco-private-repository</id>
<url>https://artifacts.alfresco.com/nexus/content/groups/private</url>
</repository>
Even default sdk archetype generates the project with this configuration. You can comment or remove that configuration if at all its causing the problem. It could be your local maven cache which "might be" causing the problem. You have not provided the full build log as requested so can't tell why it is failing. Please cleanup your maven repository and start fresh.
Some commands which you can use for cleaning:
1. mvn clean cache
2. mvn clean install
3. mvn clean install -Pclean-database
also deleting repository folder from .m2 can help.
01-28-2020 09:51 AM
[WARNING] Could not transfer metadata com.someco:behavior-tutorial-platform-jar:1.0-SNAPSHOT/maven-metadata.xml from/to alfresco-private-repository (https://artifacts.alfresco.com/nexus/content/groups/private): Not authorized , ReasonPhrase:Unauthorized. Downloading: https://artifacts.alfresco.com/nexus/content/groups/private/com/someco/behavior-tutorial-platform-jar/1.0-SNAPSHOT/behavior-tutorial-platform-jar-1.0-SNAPSHOT.amp ..... [WARNING] The requested profile "clean-database" could not be activated because it does not exist. [ERROR] Failed to execute goal org.alfresco.maven.plugin:alfresco-maven-plugin:3.0.1:it (start-alfresco) on project integration-tests: Unable to execute mojo: Unable to resolve artifact. Could not transfer artifact com.someco:behavior-tutorial-platform-jar:amp:1.0-SNAPSHOT from/to alfresco-private-repository (https://artifacts.alfresco.com/nexus/content/groups/private): Not authorized , ReasonPhrase:Unauthorized. [ERROR] com.someco:behavior-tutorial-platform-jar:amp:1.0-SNAPSHOT
Nothing ... If try go to direct link - its ask for pwd/name. No Enterprise user - no name/pwd.. as I understand.
01-23-2020 04:00 AM
If you are an Enterprise customer, you can raise a ticket to the Alfresco Support in order to ask a dedicated account for the Alfresco Enterprise Maven Repository exposed by their Nexus.
The same should be done for the enterprise editions of Alfresco Docker images.
In the same ticket you can ask for both credentials.
Hope this helps.
Explore our Alfresco products with the links below. Use labels to filter content by product module.