Having problem when using maven to compile iPVP's fork paperspigot

Status
This thread has been locked.

Akiez

Feedback score
0
Posts
65
Reactions
41
Resources
0
Code:
$ mvn clean install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] PaperSpigot-Parent
[INFO] Minecraft Server
[INFO] Minecraft Server Relocation
[INFO] PaperSpigot-API
[INFO] PaperSpigot
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building PaperSpigot-Parent dev-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ paperspigot-parent ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ paperspigot-parent ---
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ paperspigot-parent ---
[INFO] Installing C:\Users\Akif\Desktop\iPVP Fork\Paper-1.7\pom.xml to C:\Users\Akif\.m2\repository\org\github\paperspigot\paperspigot-parent\dev-SNAPSHOT\paperspigot-parent-dev-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Minecraft Server 1.7.10-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://repo.bukkit.org/content/groups/public/org/bukkit/minecraft-server/1.7.10/minecraft-server-1.7.10.pom
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] PaperSpigot-Parent ................................. SUCCESS [  4.057 s]
[INFO] Minecraft Server ................................... FAILURE [  4.127 s]
[INFO] Minecraft Server Relocation ........................ SKIPPED
[INFO] PaperSpigot-API .................................... SKIPPED
[INFO] PaperSpigot ........................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.405 s
[INFO] Finished at: 2017-01-17T14:31:32+08:00
[INFO] Final Memory: 14M/102M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project minecraft-server: Could not resolve dependencies for project org.github.paperspigot:minecraft-server:jar:1.7.10-SNAPSHOT: Failed to collect dependencies at org.bukkit:minecraft-server:jar:1.7.10: Failed to read artifact descriptor for org.bukkit:minecraft-server:jar:1.7.10: Could not transfer artifact org.bukkit:minecraft-server:pom:1.7.10 from/to repobo-snap (http://repo.bukkit.org/content/groups/public): repo.bukkit.org: Unknown host repo.bukkit.org -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :minecraft-server
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Teg

Developer
Supreme
Feedback score
9
Posts
63
Reactions
166
Resources
0
Code:
Failed to read artifact descriptor for org.bukkit:minecraft-server:jar:1.7.10: Could not transfer artifact org.bukkit:minecraft-server:pom:1.7.10 from/to repobo-snap (http://repo.bukkit.org/content/groups/public)
Bukkit's repo is down. You have to use a local file, or find another repo
 
Last edited:

Akiez

Feedback score
0
Posts
65
Reactions
41
Resources
0
Code:
Failed to read artifact descriptor for org.bukkit:minecraft-server:jar:1.7.10: Could not transfer artifact org.bukkit:minecraft-server:pom:1.7.10 from/to repobo-snap (http://repo.bukkit.org/content/groups/public)
Bukkit's repo is down. You have to use a local file, or find another repo
Is there a way to get all local file while bukkit repo is down?
 

Teg

Developer
Supreme
Feedback score
9
Posts
63
Reactions
166
Resources
0
Edit the pom.xml file and replace the minecraft server dependency with something like this:

XML:
<dependency>
    <groupId>org.bukkit</groupId>
    <artifactId>minecraft-server</artifactId>
    <version>1.7.10</version>
    <scope>system</scope>
    <systemPath>${basedir}/lib/craftbukkit-1.7.10</systemPath>
</dependency>
 
Last edited:

Akiez

Feedback score
0
Posts
65
Reactions
41
Resources
0
Edit the pom.xml file and replace the minecraft server dependency with something like this:

XML:
<dependency>
    <groupId>org.bukkit</groupId>
    <artifactId>minecraft-server</artifactId>
    <version>1.7.10</version>
    <scope>system</scope>
    <systemPath>${basedir}/lib/craftbukkit-1.7.10</systemPath>
</dependency>
Ok i will try that method and thanks for helping me with this problem and will inform you if i encounter any problems next.[DOUBLEPOST=1484643174][/DOUBLEPOST]
Edit the pom.xml file and replace the minecraft server dependency with something like this:

XML:
<dependency>
    <groupId>org.bukkit</groupId>
    <artifactId>minecraft-server</artifactId>
    <version>1.7.10</version>
    <scope>system</scope>
    <systemPath>${basedir}/lib/craftbukkit-1.7.10</systemPath>
</dependency>
Code:
This error happen:
[ERROR] Failed to execute goal on project paperspigot-parent: Could not resolve dependencies for project org.github.paperspigot:paperspigot-parent:pom:dev-SNAPSHOT: Could not find artifact org.bukkit:minecraft-server:jar:1.7.10 at specified path C:\Users\Akif\Desktop\iPVP Fork\Paper-1.7\lib\craftbukkit-1.7.10 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[DOUBLEPOST=1484658792][/DOUBLEPOST]Help anyone :(?
 
Last edited:

Teg

Developer
Supreme
Feedback score
9
Posts
63
Reactions
166
Resources
0
A "developer" promoting the use of a system path dependency in Maven. What a shame.
Yes what a shame. No developer should ever use the system scope for a dependency. Who ever uses it will eventually burst into flames and die a slow death.

Seriously though, using that scope shouldn't cause any problems with compiling this plugin. I'm pretty sure he's not gonna shade minecraft-server into his plugin
 
Status
This thread has been locked.
Top