I am trying to perform maven release from command line but I am getting below error. I also tried from jenkins job but the same error occurs. I even tried to delete the workspace before the build starts.

[INFO] [ERROR] The build could not read 1 project -> [Help 1]
[INFO] org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
[INFO] [FATAL] Non-resolvable parent POM: Could not find artifact com.example:pom:3.0.54 in central (http://artifactory.example.com/artifactory/libs-release) and 'parent.relativePath' points at wrong local POM @ line 5, column 10

Ideally maven should download 3.0.54 version from lib-snapshot location and upload it to lib-release but it is trying to download from lib-release where the artifact does not exists. I have mentioned proper details of artifactory in settings.xml

After incrementing the pom version to 3.0.55 I am now getting some different error. Earlier atleast snapshot build was working but now neither release nor snapshot build is working.

Parsing POMs
Failed to transfer Could not find metadata com.example.abc:3.0.55-SNAPSHOT/maven-metadata.xml in snapshots (http://artifactory.example.com/artifactory/libs-snapshot)
Failed to transfer Could not find artifact com.exampleabc.pom:3.0.55-SNAPSHOT in snapshots (http://artifactory.example.com/artifactory/libs-snapshot)

In all the poms I have same version as shown below

$ find . -type f -name "pom.xml" -exec sed -n '/3.0.54/p' {} \;

                <version>3.0.54-SNAPSHOT</version>

                <version>3.0.54-SNAPSHOT</version>

                <version>3.0.54-SNAPSHOT</version>

                <version>3.0.54-SNAPSHOT</version>

                <version>3.0.54-SNAPSHOT</version>

                <version>3.0.54-SNAPSHOT</version>

                <version>3.0.54-SNAPSHOT</version>
                <version>3.0.54-SNAPSHOT</version>

                <version>3.0.54-SNAPSHOT</version>
                <version>3.0.54-SNAPSHOT</version>

                <version>3.0.54-SNAPSHOT</version>

                <version>3.0.54-SNAPSHOT</version>

                <version>3.0.54-SNAPSHOT</version>

                <version>3.0.54-SNAPSHOT</version>

                <version>3.0.54-SNAPSHOT</version>

                <version>3.0.54-SNAPSHOT</version>

                <version>3.0.54-SNAPSHOT</version>

                <version>3.0.54-SNAPSHOT</version>

        <version>3.0.54-SNAPSHOT</version>

                <version>3.0.54-SNAPSHOT</version>

        <version>3.0.54-SNAPSHOT</version>

                <version>3.0.54-SNAPSHOT</version>

        <version>3.0.54-SNAPSHOT</version>

                <version>3.0.54-SNAPSHOT</version>

                <version>3.0.54-SNAPSHOT</version>

                <version>3.0.54-SNAPSHOT</version>

                <version>3.0.54-SNAPSHOT</version>

                <version>3.0.54-SNAPSHOT</version>

                <version>3.0.54-SNAPSHOT</version>

                <version>3.0.54-SNAPSHOT</version>

                <version>3.0.54-SNAPSHOT</version>

                <version>3.0.54-SNAPSHOT</version>

        <version>3.0.54-SNAPSHOT</version>

                <version>3.0.54-SNAPSHOT</version>

                <version>3.0.54-SNAPSHOT</version>

                <version>3.0.54-SNAPSHOT</version>

                <version>3.0.54-SNAPSHOT</version>

                <version>3.0.54-SNAPSHOT</version>

                <version>3.0.54-SNAPSHOT</version>

                <version>3.0.54-SNAPSHOT</version>

                <version>3.0.54-SNAPSHOT</version>

                <version>3.0.54-SNAPSHOT</version>

                <version>3.0.54-SNAPSHOT</version>

        <version>3.0.54-SNAPSHOT</version>

1 Answers

0
JF Meier On

Your error says

Could not find artifact com.example:pom:3.0.54

This means that at some point you referenced 3.0.54 instead of 3.0.54-SNAPSHOT. Maybe you are looking at a wrong branch or revision, maybe you mixed up projects.