Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to add cobalt:0.0.5 as dependency #501

Closed
atasc opened this issue Jun 16, 2024 · 1 comment
Closed

Failed to add cobalt:0.0.5 as dependency #501

atasc opened this issue Jun 16, 2024 · 1 comment

Comments

@atasc
Copy link

atasc commented Jun 16, 2024

Hi,
Adding cobalt:0.0.5 as dependency to build.gradle generates an exception:

implementation 'com.github.auties00:cobalt:0.0.5'
annotationProcessor 'com.github.auties00:cobalt:0.0.5'

The exception is as follows:

[Fatal Error] cobalt-0.0.5.pom:3:1: Content is not allowed in prolog.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> Could not resolve all files for configuration ':compileClasspath'.
   > Could not resolve com.github.auties00:cobalt:0.0.5.
     Required by:
         project :
      > Could not resolve com.github.auties00:cobalt:0.0.5.
         > Could not parse POM https://repo.maven.apache.org/maven2/com/github/auties00/cobalt/0.0.5/cobalt-0.0.5.pom
            > Content is not allowed in prolog.

It seems that the pom.xml file might be malformed. Accessing the POM file at the following URL:

https://repo.maven.apache.org/maven2/com/github/auties00/cobalt/0.0.5/cobalt-0.0.5.pom

gives the error:

This page contains the following errors:
error on line 1 at column 7: XML declaration allowed only at the start of the document
Below is a rendering of the page up to the first error.

My enviromnent is Jdk 21 and Gradle 8.8,

@Darker935
Copy link
Contributor

Already tracked on #495

@Auties00 Auties00 closed this as completed Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants