Multiverse / Multiverse-Adventure

Provides Adventure-Support for Multiverse
18 stars 15 forks source link

Please add build instructions #9

Closed notro closed 12 years ago

notro commented 12 years ago

Can you please add some build instructions to the wiki. I tried to use the instructions on https://github.com/Multiverse/Multiverse-Core/wiki/Building

mvn install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Multiverse-Adventure
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).

Project ID: org.bukkit:bukkit

Reason: Error getting POM for 'org.bukkit:bukkit' from the repository: Unable to read local copy of metadata: Cannot read metadata from '/root/.m2/repository/org/bukkit/bukkit/0.0.1-SNAPSHOT/maven-metadata-bukkit-repo.xml': entity reference names can not start with character '&' (position: START_TAG seen ...agName(\'base\')[0], _bH = "http://forums.bukkit.org/";\n\t\t\tif (_b &&... @10:13)
  org.bukkit:bukkit:pom:0.0.1-SNAPSHOT

 for project org.bukkit:bukkit
timothyekl commented 12 years ago

It looks like you have some issues with your locally cached metadata in your maven directory (/root/.m2). Try clearing this and building again.

notro commented 12 years ago

I still get the same error:

rm -r ~/.m2
git clone http://github.com/Multiverse/Multiverse-Adventure
cd Multiverse-Adventure/
git submodule update --init --recursive
mvn install
[full output: http://pastie.org/3233204]
Downloading: http://repo.onarandombox.com/content/groups/public//com/sk89q/dummypermscompat/1.4/dummypermscompat-1.4.pom
1K downloaded  (dummypermscompat-1.4.pom)
[INFO] snapshot org.bukkit:bukkit:0.0.1-SNAPSHOT: checking for updates from OnARandomBox
[INFO] snapshot org.bukkit:bukkit:0.0.1-SNAPSHOT: checking for updates from sk89q-mvn2
[INFO] snapshot org.bukkit:bukkit:0.0.1-SNAPSHOT: checking for updates from bukkit-repo
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '410c7211dcd06018cd37d295c5e28ec6cd00ff65'; remote = '<!DOCTYPE' - RETRYING
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '623e1d6c574b90379f5c8ee5a7dd3a72cdc5cbeb'; remote = '<!DOCTYPE' - IGNORING
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).

Project ID: org.bukkit:bukkit

Reason: Error getting POM for 'org.bukkit:bukkit' from the repository: Unable to read local copy of metadata: Cannot read metadata from '/home/administrator/.m2/repository/org/bukkit/bukkit/0.0.1-SNAPSHOT/maven-metadata-bukkit-repo.xml': entity reference names can not start with character '&' (position: START_TAG seen ...agName(\'base\')[0], _bH = "http://forums.bukkit.org/";\n\t\t\tif (_b &&... @10:13)
  org.bukkit:bukkit:pom:0.0.1-SNAPSHOT

 for project org.bukkit:bukkit

A week ago I did build Multiverse-Core without issues.
To see if it still works I tried 'mvn install' and it worked.
Then I deleted all repos and ~/.m2 and started all over.
Now trying to build Multiverse-Core I get an error:
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /home/administrator/src/Multiverse-Core/src/test/java/com/onarandombox/MultiverseCore/test/utils/MockBlock.java:[19,7] com.onarandombox.MultiverseCore.test.utils.MockBlock is not abstract and does not override abstract method getDrops(org.bukkit.inventory.ItemStack) in org.bukkit.block.Block
[INFO] 1 error

Trying to build Multiverse-Portals I get the same error as Multiverse-Adventure.

fernferret commented 12 years ago

Well you closed this, so can we assume you got it working? If not, have you done a mvn install on core? I'm not sure if they'll download those from the repo...

notro commented 12 years ago

I gave up when I found the dev builds on http://ci.onarandombox.com/job/Multiverse-Adventure/. I even tried building on a fresh ubuntu install, but I got the same error.

I wrote a comment when I closed the issue. I understand now that I should have committed the comment before hitting close...