Problem compiling plugin with maven

Discussion in 'Plugin Development' started by Basurci, Aug 4, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    Basurci

    Hello, I'm trying to compile one plugin that i found on github but it had some broken repositories in it so I changed those. But now i'm having problem with them because they are downloading from wrong reps again.

    Code:
    [INFO] Scanning for projects...
    [INFO]                                                                       
    [INFO] ------------------------------------------------------------------------
    [INFO] Building Ultimate Skyblock 2.1.0
    [INFO] ------------------------------------------------------------------------
    Downloading: http://repo.bukkit.org/content/repositories/releases/org/bukkit/craftbukkit/1.7.9-R0.2/craftbukkit-1.7.9-R0.2.pom
            Downloaded: http://repo.bukkit.org/content/repositories/releases/org/bukkit/craftbukkit/1.7.9-R0.2/craftbukkit-1.7.9-R0.2.pom (12 KB at 17.7 KB/sec)
    Downloading: http://files.zachsthings.com/repo/org/bukkit/bukkit/1.6.2-R0.1-SNAPSHOT/maven-metadata.xml
            [WARNING] Could not transfer metadata org.bukkit:bukkit:1.6.2-R0.1-SNAPSHOT/maven-metadata.xml from/to zml-repo (http://files.zachsthings.com/repo): Connect to files.zachsthings.com:80 [files.zachsthings.com/71.193.197.67] failed: Connection timed out: connect
    [WARNING] Failure to transfer org.bukkit:bukkit:1.6.2-R0.1-SNAPSHOT/maven-metadata.xml from http://files.zachsthings.com/repo was cached in the local repository, resolution will not be reattempted until the update interval of zml-repo has elapsed or updates are forced. Original error: Could not transfer metadata org.bukkit:bukkit:1.6.2-R0.1-SNAPSHOT/maven-metadata.xml from/to zml-repo (http://files.zachsthings.com/repo): Connect to files.zachsthings.com:80 [files.zachsthings.com/71.193.197.67] failed: Connection timed out: connect
    [WARNING] The POM for net.milkbowl:VaultAPI:jar:1.4 is missing, no dependency information available
    Downloading: http://repo.bukkit.org/content/repositories/releases/org/bukkit/craftbukkit/1.7.9-R0.2/craftbukkit-1.7.9-R0.2.jar
                    Downloaded: http://repo.bukkit.org/content/repositories/releases/org/bukkit/craftbukkit/1.7.9-R0.2/craftbukkit-1.7.9-R0.2.jar (19975 KB at 494.2 KB/sec)
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 01:02 min
    [INFO] Finished at: 2014-08-04T16:35:46+01:00
    [INFO] Final Memory: 6M/226M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal on project uSkyBlock: Could not resolve dependencies for project us.talabrek.ultimateskyblock:uSkyBlock:jar:2.1.0: Failure to find net.milkbowl:VaultAPI:jar:1.4 in http://repo.bukkit.org/content/repositories/releases/ was cached in the local repository, resolution will not be reattempted until the update interval of bukkit-repo has elapsed or updates are forced -> [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


    And here is my pom.xml
    Code:java
    1. <project xmlns="[url]http://maven.apache.org/POM/4.0.0[/url]" xmlns:xsi="[url]http://www.w3.org/2001/XMLSchema-instance[/url]"
    2. xsi:schemaLocation="[url]http://maven.apache.org/POM/4.0.0[/url] [url]http://maven.apache.org/xsd/maven-4.0.0.xsd[/url]">
    3. <modelVersion>4.0.0</modelVersion>
    4. <groupId>us.talabrek.ultimateskyblock</groupId>
    5. <artifactId>uSkyBlock</artifactId>
    6. <version>2.1.0</version>
    7. <name>Ultimate Skyblock</name>
    8. <repositories>
    9. <repository> <!-- Bukkit repository -->
    10. <id>bukkit-repo</id>
    11. <url>[url]http://repo.bukkit.org/content/repositories/releases/</url>[/url]
    12. <snapshots>
    13. <enabled>true</enabled>
    14. </snapshots>
    15. </repository>
    16. <repository> <!-- sk89q' WorldEdit and WorldGuard repository -->
    17. <id>sk89q-repo</id>
    18. <url>[url]http://maven.sk89q.com/repo/</url>[/url]
    19. </repository>
    20. <repository> <!-- Vault repository -->
    21. <id>vault-repo</id>
    22. <url>[url]http://nexus.theyeticave.net/content/repositories/pub_releases/</url>[/url]
    23. </repository>
    24. </repositories>
    25. <build>
    26. <finalName>uSkyBlock</finalName>
    27. <resources>
    28. <resource>
    29. <targetPath>.</targetPath>
    30. <filtering>true</filtering>
    31. <directory>${basedir}/resources</directory>
    32. <includes>
    33. <include>plugin.yml</include>
    34. <include>config.yml</include>
    35. <include>README.md</include>
    36. <include>skyblockData.yml</include>
    37. </includes>
    38. </resource>
    39. </resources>
    40. <sourceDirectory>src</sourceDirectory>
    41. <plugins>
    42. <plugin> <!-- Maven Compiler Plugin -->
    43. <groupId>org.apache.maven.plugins</groupId>
    44. <artifactId>maven-compiler-plugin</artifactId>
    45. <version>2.3.2</version>
    46. <configuration>
    47. <source>1.6</source>
    48. <target>1.6</target>
    49. </configuration>
    50. </plugin>
    51. </plugins>
    52. </build>
    53. <dependencies>
    54. <dependency> <!-- Bukkit implementation -->
    55. <groupId>org.bukkit</groupId>
    56. <artifactId>craftbukkit</artifactId>
    57. <version>1.7.9-R0.2</version>
    58. <scope>compile</scope>
    59. <type>jar</type>
    60. </dependency>
    61. <dependency> <!-- WorldEdit implementation -->
    62. <groupId>com.sk89q</groupId>
    63. <artifactId>worldedit</artifactId>
    64. <version>5.6.3</version>
    65. <scope>compile</scope>
    66. <type>jar</type>
    67. </dependency>
    68. <dependency> <!-- WorldGuard implementation -->
    69. <groupId>com.sk89q</groupId>
    70. <artifactId>worldguard</artifactId>
    71. <version>5.9.1-SNAPSHOT</version>
    72. <scope>compile</scope>
    73. <type>jar</type>
    74. </dependency>
    75. <dependency> <!-- Vault implementation -->
    76. <groupId>net.milkbowl</groupId>
    77. <artifactId>VaultAPI</artifactId>
    78. <version>1.4</version>
    79. <scope>compile</scope>
    80. <type>jar</type>
    81. </dependency>
    82. </dependencies>
    83. </project>


    I'm not pro at this and I'd like to get some help with this :O
     
  2. Offline

    fireblast709

    Basurci the Vault version is 1.4.1
     
  3. Offline

    Basurci

    I know I tried to use VaultAPI and Vault from rep but i'm getting same error.
     
  4. Offline

    fireblast709

    Basurci whoops didn't read the artifact id xD. Try the groupId net.milkbowl.vault
     
  5. Offline

    Basurci

    Didn't help :/ I think this pom.xaml that came from github is wrongly written.

    *bump* ?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 9, 2016
  6. Offline

    Syd

    Basurci
    The groupId is, as mentioned by fireblast709, net.milkbowl.vault

    Also, is it the forum, or why are there
    Code:
    [url][/url]
    Tags in your pom.xml?
     
  7. Offline

    fireblast709

    Syd it's the forum
     
  8. Offline

    Basurci

    Yea I said it didn't help. If you can check out this https://github.com/wolfwork/uSkyBlock it's github of that plugin.
    No clue why reps are not working.
     
Thread Status:
Not open for further replies.

Share This Page