question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Please publish the parent POM org.choco-solver:choco:4.10.3

See original GitHub issue

Expected behavior

All choco dependencies can be resolved from Maven Central.

Actual behavior

Neither Gradle nor Maven are able to download org.choco-solver:choco-solver:4.10.3 because it Could not find artifact org.choco-solver:choco:pom:4.10.3 in central (https://repo.maven.apache.org/maven2). Gradle fails with:

> Could not resolve all files for configuration ':compileClasspath'.
   > Could not resolve org.choco-solver:choco-solver:4.10.3.
     Required by:
         project :
      > Could not resolve org.choco-solver:choco-solver:4.10.3.
         > Could not parse POM https://repo.maven.apache.org/maven2/org/choco-solver/choco-solver/4.10.3/choco-solver-4.10.3.pom
            > Could not find org.choco-solver:choco:4.10.3.
      > Could not resolve org.choco-solver:choco-solver:4.10.3.
         > Could not parse POM https://jcenter.bintray.com/org/choco-solver/choco-solver/4.10.3/choco-solver-4.10.3.pom
            > Could not find org.choco-solver:choco:4.10.3.

The POM of the 4.10.3 release contains an additional <parent> element which is not present in the 4.10.2 release:

Possible Solution

Steps to Reproduce (for bugs)

Maven:

<?xml version="1.0" encoding="UTF-8"?>
<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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>org.example</groupId>
    <artifactId>choco4-10-3-bug</artifactId>
    <version>1.0-SNAPSHOT</version>

    <dependencies>
        <dependency>
            <groupId>org.choco-solver</groupId>
            <artifactId>choco-solver</artifactId>
            <version>4.10.3</version>
        </dependency>
    </dependencies>
</project>

Perhaps you have to remove the choco files from your local .m2 to reproduce this issue.

Context

I’ve tried update from 4.10.2 to 4.10.3.

Environment

  • Choco-solver version: 4.10.3
  • Java version: 11.0.8

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:18 (16 by maintainers)

github_iconTop GitHub Comments

2reactions
mrattfeldtcommented, Aug 5, 2020

Bump

1reaction
cprudhomcommented, Aug 17, 2020

I migrated the project to a multi-module one (following those steps: baeldung.com/maven-multi-module). But, it appears that org.choco-solver:choco:4.10.3 was not released on MCR. I’ll try to fix that quickly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Maven: Non-resolvable parent POM - Stack Overflow
I had the issue that two reactor build pom.xml files had the same artefactId.
Read more >
Introduction to the POM - Apache Maven
The Super POM is one example of project inheritance, however you can also introduce your own parent POMs by specifying the parent element...
Read more >
Parent POM publication to Exchange fails with error ...
This article provides the solution for the error "Publication ended with errors: [Could not determine asset type]" when publishing a parent ...
Read more >
Location of pom.xml for Maven - Pinnacle 21
Please publish or provide us with either the "parent pom.xml" or point ... [INFO] Downloading from central: https://repo.maven.apache.org/ ...
Read more >
Understanding Maven's “relativePath” Tag for a Parent POM
If the project is resolved as a dependency from a Maven repository, the parent POM should be available in a repository too. And...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found