swagger-api / swagger-api/swagger-codegen

[any] Maven build fails because of non-resolvable parent POM

Open
#11,172 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Description

I'm following the ReadMe to generate the sample petstore php client using Java 17, on Windows 10. The Maven build mvn clean package fails because of the non-resolvable parent POM. Full stack trace below.

Swagger-codegen version

Master (2.4.22-SNAPSHOT)

Command line used
PS C:\... > mvn clean package
[INFO] Scanning for projects...
Downloading from central: https://repo.maven.apache.org/maven2/org/sonatype/oss/oss-parent/5/oss-parent-5.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for io.swagger:swagger-codegen-project:2.4.22-SNAPSHOT: Could not transfer artifact org.sonatype.oss:oss-parent:pom:5 from/to central (https://repo.maven.apache.org/maven2): transfer failed for https://repo.maven.apache.org/maven2/org/sonatype/oss/oss-parent/5/oss-parent-5.pom and 'parent.relativePath' points at no local POM @ line 2, column 13
 @
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project io.swagger:swagger-codegen-project:2.4.22-SNAPSHOT (C:\Users\janchytry\WFS\dynacrop-sdk\swagger-codegen\pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for io.swagger:swagger-codegen-project:2.4.22-SNAPSHOT: Could not transfer artifact org.sonatype.oss:oss-parent:pom:5 from/to central (https://repo.maven.apache.org/maven2): transfer failed for https://repo.maven.apache.org/maven2/org/sonatype/oss/oss-parent/5/oss-parent-5.pom and 'parent.relativePath' points at no local POM @ line 2, column 13: Remote host terminated the handshake: SSL peer shut down incorrectly -> [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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the repository README and the root pom.xml referenced in the Maven error, then rerun mvn clean package with the reported Java 17 and Windows 10 setup. Compare the parent POM resolution failure with the project's expected build configuration; done means the documented command completes successfully and the sample PHP client is generated.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, php
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.