Taking a long time to compile...

Discussion in 'Plugin Development' started by thebiologist13, May 31, 2013.

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

    thebiologist13

    Hello All!

    I use maven to build my plugin, however it recently has been taking ages (over 5 minutes) to build my plugin. The resulting jar is only about 350Kb.

    I believe it is because of these files trying to download when I compile with the goals "clean install":
    Code:
    Downloading: http://files.zachsthings.com/repo/org/bukkit/bukkit/0.0.1-SNAPSHOT/maven-metadata.xml
    [WARNING] Could not transfer metadata org.bukkit:bukkit:0.0.1-SNAPSHOT/maven-metadata.xml from/to zml-repo (http://files.zachsthings.com/repo): Remotely Closed [id: 0x78fa83fa, /127.0.0.1:57238 :> files.zachsthings.com/24.22.98.123:80]
    [WARNING] Failure to transfer org.bukkit:bukkit:0.0.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:0.0.1-SNAPSHOT/maven-metadata.xml from/to zml-repo (http://files.zachsthings.com/repo): Remotely Closed [id: 0x78fa83fa, /127.0.0.1:57238 :> files.zachsthings.com/24.22.98.123:80]
    Downloading: http://files.zachsthings.com/repo/org/spout/vanilla/dev-SNAPSHOT/maven-metadata.xml
    
    Is there a way to skip these files? Or is it something else? My plugin seems to compile fine without them.

    Thanks!
    ~thebiologist13
     
  2. Offline

    gomeow

    Did you put bukkit files onto your own server instead of using the ones at repo.bukkit.org?

    Also, its because it can't connect to that site
     
  3. Offline

    thebiologist13

    No, I just have the Bukkit repository in my pom.xml.

    Here are my pom.xml files if they are helpful:

    Parent POM:
    Code:xml
    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>com.github.thebiologist13</groupId>
    5. <artifactId>customspawners-parent</artifactId>
    6. <version>parent</version>
    7. <name>CustomSpawners Parent</name>
    8. <url>[url]http://dev.bukkit.org/server-mods/customspawners</url>[/url]
    9. <packaging>pom</packaging>
    10.  
    11. <modules>
    12. <module>modules/API</module>
    13. <module>modules/v1_4_R1</module>
    14. <module>modules/v1_5_R1</module>
    15. <module>modules/v1_5_R2</module>
    16. <module>modules/v1_5_R3</module>
    17. <module>modules/CustomSpawners</module>
    18. </modules>
    19.  
    20. <properties>
    21. <sk89q.we>5.5</sk89q.we>
    22. <sk89q.wg>5.7.2-SNAPSHOT</sk89q.wg>
    23. </properties>
    24.  
    25. <repositories>
    26. <repository>
    27. <id>bukkit-repo</id>
    28. <url>[url]http://repo.bukkit.org/content/groups/public/</url>[/url]
    29. </repository>
    30. <repository>
    31. <id>craftbukkit-repo</id>
    32. <url>[url]https://github.com/Bukkit/CraftBukkit</url>[/url]
    33. </repository>
    34. <repository>
    35. <id>sk89q-repo</id>
    36. <url>[url]http://maven.sk89q.com/repo/</url>[/url]
    37. </repository>
    38. </repositories>
    39.  
    40. </project>
    POM for my API module (the one that takes ages to build):
    Code:xml
    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>com.github.thebiologist13</groupId>
    5. <artifactId>customspawners-api</artifactId>
    6. <version>API</version>
    7. <name>CustomSpawners API Implementation</name>
    8. <packaging>jar</packaging>
    9. <url>[url]http://dev.bukkit.org/server-mods/customspawners</url>[/url]
    10.  
    11. <parent>
    12. <groupId>com.github.thebiologist13</groupId>
    13. <artifactId>customspawners-parent</artifactId>
    14. <version>parent</version>
    15. <relativePath>../../</relativePath>
    16. </parent>
    17.  
    18. <dependencies>
    19. <dependency>
    20. <groupId>org.bukkit</groupId>
    21. <artifactId>bukkit</artifactId>
    22. <version>LATEST</version>
    23. <type>jar</type>
    24. </dependency>
    25. <dependency>
    26. <groupId>org.bukkit</groupId>
    27. <artifactId>craftbukkit</artifactId>
    28. <version>LATEST</version>
    29. <type>jar</type>
    30. </dependency>
    31. <dependency>
    32. <groupId>net.astesana</groupId>
    33. <artifactId>javaluator</artifactId>
    34. <version>1.2.2</version>
    35. <type>jar</type>
    36. </dependency>
    37. <dependency>
    38. <groupId>com.sk89q</groupId>
    39. <artifactId>worldedit</artifactId>
    40. <version>${sk89q.we}</version>
    41. <type>jar</type>
    42. </dependency>
    43. <dependency>
    44. <groupId>com.sk89q</groupId>
    45. <artifactId>worldguard</artifactId>
    46. <version>${sk89q.wg}</version>
    47. <type>jar</type>
    48. </dependency>
    49. </dependencies>
    50.  
    51. </project>

    Also, any ideas as to why I can't connect to that website?

    Thanks Again!
    ~thebiologist13
     
Thread Status:
Not open for further replies.

Share This Page