[SPIGOT-2277] The pom file for Spigot API needs repository info Created: 13/May/16  Updated: 12/Jul/17  Resolved: 15/May/16

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Grant Mills Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: Spigot
Environment:

Mac OSX Yosemite 10.10.5, Java 1.8, Maven 3



 Description   

While running the command java -jar BuildTools.jar -Xmx2G the maven build process failed giving this error:

[ERROR] Failed to execute goal on project spigot-api: Could not resolve dependencies for project org.spigotmc:spigot-api:jar:1.9.2-R0.1-SNAPSHOT: Could not find artifact net.md-5:bungeecord-chat:jar:1.9-SNAPSHOT in repo.md-5.net (http://repo.md-5.net/content/repositories/snapshots/) -> [Help 1]

Related build log here: http://pastebin.com/HDvQPF01



 Comments   
Comment by bluekelp [ 12/Jul/17 ]

I have a similar issue (see SPIGOT-3413) and manually adding the sonatype repo fixes it as well.

The issue may be related to maven version? I get the following warning compiling Spigot/Spigot-APIĀ 

[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.spigotmc:spigot-api:jar:1.12-R0.1-SNAPSHOT
[WARNING] 'parent.relativePath' of POM org.spigotmc:spigot-api:1.12-R0.1-SNAPSHOT (/Users/bluekelp/mc/spigot-1.12/Spigot/Spigot-API/pom.
xml) points at org.spigotmc:spigot-parent instead of org.sonatype.oss:oss-parent, please verify your project structure @ line 6, colum
n 13
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]

Might point to the reason the repository URL needs to be manually added for some users.

Maven version info:

Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T08:41:47-08:00)
Maven home: /usr/local/Cellar/maven/3.3.9/libexec
Java version: 1.8.0_45, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.10.5", arch: "x86_64", family: "mac"
Comment by md_5 [ 15/May/16 ]
                                                                        
------------------------------------------------------------------------
Building Spigot-API 1.9.4-R0.1-SNAPSHOT
------------------------------------------------------------------------
Downloading: https://oss.sonatype.org/content/repositories/snapshots/net/md-5/bungeecord-chat/1.9-SNAPSHOT/maven-metadata.xml
         
Downloaded: https://oss.sonatype.org/content/repositories/snapshots/net/md-5/bungeecord-chat/1.9-SNAPSHOT/maven-metadata.xml (2 KB at 0.7 KB/sec)
Downloading: https://oss.sonatype.org/content/repositories/snapshots/net/md-5/bungeecord-chat/1.9-SNAPSHOT/bungeecord-chat-1.9-20160510.115240-33.pom
         
Downloaded: https://oss.sonatype.org/content/repositories/snapshots/net/md-5/bungeecord-chat/1.9-SNAPSHOT/bungeecord-chat-1.9-20160510.115240-33.pom (2 KB at 2.0 KB/sec)
Downloading: https://oss.sonatype.org/content/repositories/snapshots/net/md-5/bungeecord-parent/1.9-SNAPSHOT/maven-metadata.xml
            
Downloaded: https://oss.sonatype.org/content/repositories/snapshots/net/md-5/bungeecord-parent/1.9-SNAPSHOT/maven-metadata.xml (600 B at 0.9 KB/sec)
Downloading: https://oss.sonatype.org/content/repositories/snapshots/net/md-5/bungeecord-parent/1.9-SNAPSHOT/bungeecord-parent-1.9-20160510.115230-33.pom
         
Downloaded: https://oss.sonatype.org/content/repositories/snapshots/net/md-5/bungeecord-parent/1.9-SNAPSHOT/bungeecord-parent-1.9-20160510.115230-33.pom (7 KB at 10.6 KB/sec)
Downloading: https://oss.sonatype.org/content/repositories/snapshots/net/md-5/bungeecord-chat/1.9-SNAPSHOT/bungeecord-chat-1.9-20160510.115240-33.jar
           
Downloaded: https://oss.sonatype.org/content/repositories/snapshots/net/md-5/bungeecord-chat/1.9-SNAPSHOT/bungeecord-chat-1.9-20160510.115240-33.jar (55 KB at 49.6 KB/sec)
Comment by Grant Mills [ 13/May/16 ]

After examining the pom.xml file for Spigot-API I believe the issue is that the repository information is not being shared to the child Spigot-API pom during the build process.

I have a potential fix I'd like to submit but my account is not yet activated with the CLA yet. I solved it by adding this to the Spigot-API pom.xml:

<repositories>
        <repository>
            <id>sonatype</id>
            <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
        </repository>
    </repositories>

I'm sure there are multiple ways to resolve this issue. There may be a simpler way. I'm just looking to get involved and help out where I can.

I also noticed that the parent pom version in the Spigot folder was dev-SNAPSHOT and wondered if that was correct.

Generated at Mon Dec 15 03:28:04 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.