cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with sdk 5.2.0, I try to build the project

LorderHyland
Champ in-the-making
Champ in-the-making

I using this pom configurations 

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
        <modelVersion>4.0.0</modelVersion>
        <parent>
         <groupId>org.alfresco</groupId>
         <artifactId>alfresco-java-sdk</artifactId>
         <version>5.2.0</version>
        </parent>
        <groupId>com.prova</groupId>
        <artifactId>sdk5-demo</artifactId>
        <version>0.0.1-SNAPSHOT</version>
        <name>sdk5-demo</name>
        <description>Demo project for Spring Boot</description>
        <properties>
                <java.version>11</java.version>
        </properties>
        <dependencies>
          <dependency>
             <groupId>org.springframework.boot</groupId>
             <artifactId>spring-boot-starter</artifactId>
         </dependency>
        </dependencies>
        <build>
                <plugins>
                        <plugin>
                                <groupId>org.springframework.boot</groupId>
                                <artifactId>spring-boot-maven-plugin</artifactId>
                        </plugin>
                </plugins>
        </build>
</project>

and the error that I receive is this one

[INFO] Artifact org.alfresco:alfresco-java-sdk:pom:5.2.0 is present in the local repository, but cached from a remote repository ID that is unavailable in current build context, verifying that is downloadable from [central (https://repo.maven.apache.org/maven2, default, releases)]
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for com.prova:sdk5-demo:0.0.1-SNAPSHOT: The following artifacts could not be resolved: org.alfresco:alfresco-java-sdk:pom:5.2.0 (present, but unavailable): org.alfresco:alfresco-java-sdk:pom:5.2.0 was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 5, column 10
 @ 
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project com.prova:sdk5-demo:0.0.1-SNAPSHOT (${user.home}/Desktop/prova52/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for com.prova:sdk5-demo:0.0.1-SNAPSHOT: The following artifacts could not be resolved: org.alfresco:alfresco-java-sdk:pom:5.2.0 (present, but unavailable): org.alfresco:alfresco-java-sdk:pom:5.2.0 was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 5, column 10 -> [Help 2]
[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:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

and I need some help to try to make this build with this new sdk 5.2, and some advice for futures error like this, thanks everyone.

2 ACCEPTED ANSWERS

angelborroy
Community Manager Community Manager
Community Manager
org.alfresco:alfresco-java-sdk:pom:5.2.0 was not found in https://repo.maven.apache.org/maven2

This artifact is not available in Maven Central.

Add following lines to your pom.xml file with the Alfresco Maven Repository settings:

    <repositories>
        <repository>
            <id>alfresco-public</id>
            <url>https://artifacts.alfresco.com/nexus/content/groups/public</url>
        </repository>
    </repositories>  
Hyland Developer Evangelist

View answer in original post

Thanks for the reply before I resolve with that solution but in this moment the problem is another with this dependency always with 5.2 sdk 

<dependency>
    <groupId>org.alfresco</groupId>
    <artifactId>alfresco-event-gateway-api</artifactId>
    <version>5.2.0</version>
</dependency>

it doesn't work and I can't find it anywhere, can you please help me to find this dependency, thank you 

[ERROR] Failed to execute goal on project sdk-5.2: Could not resolve dependencies for 
project com.alfresco.pro:sdk-5.2:jar:1.0.0: The following artifacts could not be resolved:
org.alfresco:alfresco-event-gateway-api:jar:5.2.0 (absent):
Could not find artifact org.alfresco:alfresco-event-gateway-api:jar:5.2.0 in alfresco-public
(https://artifacts.alfresco.com/nexus/content/groups/public) -> [Help 1]

View answer in original post

2 REPLIES 2

angelborroy
Community Manager Community Manager
Community Manager
org.alfresco:alfresco-java-sdk:pom:5.2.0 was not found in https://repo.maven.apache.org/maven2

This artifact is not available in Maven Central.

Add following lines to your pom.xml file with the Alfresco Maven Repository settings:

    <repositories>
        <repository>
            <id>alfresco-public</id>
            <url>https://artifacts.alfresco.com/nexus/content/groups/public</url>
        </repository>
    </repositories>  
Hyland Developer Evangelist

Thanks for the reply before I resolve with that solution but in this moment the problem is another with this dependency always with 5.2 sdk 

<dependency>
    <groupId>org.alfresco</groupId>
    <artifactId>alfresco-event-gateway-api</artifactId>
    <version>5.2.0</version>
</dependency>

it doesn't work and I can't find it anywhere, can you please help me to find this dependency, thank you 

[ERROR] Failed to execute goal on project sdk-5.2: Could not resolve dependencies for 
project com.alfresco.pro:sdk-5.2:jar:1.0.0: The following artifacts could not be resolved:
org.alfresco:alfresco-event-gateway-api:jar:5.2.0 (absent):
Could not find artifact org.alfresco:alfresco-event-gateway-api:jar:5.2.0 in alfresco-public
(https://artifacts.alfresco.com/nexus/content/groups/public) -> [Help 1]