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

cobalt-0.0.5.pom xml error for Gradle but not for Maven #495

Closed
zapisator opened this issue May 30, 2024 · 6 comments
Closed

cobalt-0.0.5.pom xml error for Gradle but not for Maven #495

zapisator opened this issue May 30, 2024 · 6 comments

Comments

@zapisator
Copy link

This

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.

what one can see at https://repo1.maven.org/maven2/com/github/auties00/cobalt/0.0.5/cobalt-0.0.5.pom

Something like that one can see attempting to build on Gradle as part of Java project, or part of Android project. For example in Android mobile app:

> Task :prepareKotlinBuildScriptModel UP-TO-DATE
[Fatal Error] cobalt-0.0.5.pom:3:1: Content is not allowed in prolog.
[Fatal Error] cobalt-0.0.5.pom:3:1: Content is not allowed in prolog.
[Fatal Error] cobalt-0.0.5.pom:3:1: Content is not allowed in prolog.
[Fatal Error] cobalt-0.0.5.pom:3:1: Content is not allowed in prolog.
[Fatal Error] cobalt-0.0.5.pom:3:1: Content is not allowed in prolog.

BUILD SUCCESSFUL in 1s
 <?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>com.github.auties00</groupId>
    <artifactId>cobalt</artifactId>
    <version>0.0.5</version>
    <name>${project.groupId}:${project.artifactId}</name>
    <description>Standalone fully-featured Whatsapp Web API for Java and Kotlin</description>
    <url>https://github.com/Auties00/Cobalt</url>

    <developers>
        <developer>
            <name>Alessandro Autiero</name>
            <email>[email protected]</email>
        </developer>
    </developers>

    <licenses>
...

The essence is that there is a space character in the first line of pom. It is incorrect. Can you remove it

@Darker935
Copy link
Contributor

Darker935 commented May 30, 2024

Patched on #477, clone this repo and run: mvn clean install -DskipTests=true

@smartkanak
Copy link

smartkanak commented Jun 2, 2024

When will this be updated on maven? Would be great to be able to use this with Gradle without any problems

@Darker935
Copy link
Contributor

When will this be updated on maven? Would be great to be able to use this with Gradle without any problems

Idk, maybe on 0.0.6

@Darker935
Copy link
Contributor

You can use doing what I said and setting mavenLocal() on the top of your repos

@zapisator
Copy link
Author

Patched on #477, clone this repo and run: mvn clean install -DskipTests=true

That works, thanks

@Auties00
Copy link
Owner

fixed in 0.0.6

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

4 participants