Ok I tried to compile musiccabinet from thomas48 github, but I couldn't get it working. This is on a headless debian wheezy server with java 8 & maven 3 installed.
joris@debian:~$ mvn -version
Apache Maven 3.0.4
Maven home: /usr/share/maven
Java version: 1.8.0_25, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-oracle/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.2.0-4-amd64", arch: "amd64", family: "unix"
First installed libspotify, than created an api key on spotify & cloned and installed libjahspotify from thomas48
after that cloned subsonic & musiccabinet from thomas48. Postgressql & postgresql-contrib were already installed.
on ~/musiccabinet/musiccabinet-server
- Code: Select all
mvn compile
mvn exec:java -Dexec.mainClass=com.github.hakko.musiccabinet.service.DatabaseAdministrationService
completed without any problem
but
- Code: Select all
mvn install
wouldn't pass the tests. Even mvn -fn install didn't complete succesful. Only if I skipped the tests totally with mvn install -DskipTests I could get a succesful build.
same happened in ~/subsonic where I could only get a succesful build with: mvn install -DskipTests
~/subsonic/subsonic-booter would do: mvn install without any problems.
But I can't get ~/subsonic/subsonic-installer-standalone to build a package with mvn package.
It fails with:
- Code: Select all
[INFO] Scanning for projects...
Downloading: http://repo.maven.apache.org/maven2/net/sourceforge/subsonic/subsonic/0.7/subsonic-0.7.pom
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project net.sourceforge.subsonic:subsonic-installer-standalone:0.7 (/home/joris/subsonic/subsonic-installer-standalone/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Could not find artifact net.sourceforge.subsonic:subsonic:pom:0.7 in central (http://repo.maven.apache.org/maven2) and 'parent.relativePath' points at wrong local POM @ line 6, column 10 -> [Help 2]
[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/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
I have no clue what that means & it is maybe/probably related to the failing tests earlier. Anyone an idea what is going wrong? Is it because I use java 8?