Skip to content

Remove JitPack repo from core POM when uploading to Maven Central #430

@michael-o

Description

@michael-o

Please remove this snippet from the POM at least when uploading to Maven Central:

json-schema/core/pom.xml

Lines 283 to 288 in 5210f30

<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>

It imposes several issues on the developer using your library:

I was able to build the project (core only) from master without JitPack repo and an empty local repo if I use the clone from @erosb and apply the following patch:

osipovmi@deblndw011x:~/var/Projekte/json-schema/core ((1.13.0) *%)
$ git diff
diff --git a/core/pom.xml b/core/pom.xml
index a4595acc..73fdefd4 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -18,8 +18,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.everit.json</groupId>
-    <artifactId>org.everit.json.schema</artifactId>
+    <groupId>com.github.erosb</groupId>
+    <artifactId>everit-json-schema</artifactId>
     <version>1.13.0</version>
     <packaging>bundle</packaging>
     <properties>
@@ -138,8 +138,8 @@
                 <configuration>
                     <oldVersion>
                         <dependency>
-                            <groupId>com.github.everit-org.json-schema</groupId>
-                            <artifactId>org.everit.json.schema</artifactId>
+                            <groupId>${project.groupId}</groupId>
+                            <artifactId>${project.artifactId}</artifactId>
                             <version>1.12.3</version>
                             <type>jar</type>
                         </dependency>
@@ -279,11 +279,4 @@
             <scope>test</scope>
         </dependency>
     </dependencies>
-
-    <repositories>
-        <repository>
-            <id>jitpack.io</id>
-            <url>https://jitpack.io</url>
-        </repository>
-    </repositories>
 </project>

Note: Hunk 2 can be applied immediately to the origin repo.

PS: I am a Maven core developer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions