You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
93 lines
2.0 KiB
93 lines
2.0 KiB
9 years ago
|
<!--
|
||
9 years ago
|
# BUILD.md
|
||
9 years ago
|
# Libresonic/libresonic
|
||
|
-->
|
||
|
Requirements
|
||
|
------------
|
||
|
|
||
9 years ago
|
* Recent version of [Maven](http://maven.apache.org/).
|
||
|
* A JDK installation. 1.8.x series of OpenJDK or Oracle JDK 8+ should work.
|
||
9 years ago
|
* Optional: lintian and fakeroot, for .deb package
|
||
8 years ago
|
* Optional: rpm and rpmlint, for .rpm package
|
||
9 years ago
|
* Test as follows:
|
||
|
|
||
|
```
|
||
|
$ which mvn
|
||
|
/usr/local/bin/mvn
|
||
|
$ echo $JAVA_HOME
|
||
9 years ago
|
/usr/lib/jvm/java-1.8.0-openjdk.x86_64
|
||
9 years ago
|
$
|
||
|
```
|
||
|
|
||
9 years ago
|
Now you can clone a copy of this repository:
|
||
9 years ago
|
|
||
|
```
|
||
|
$ git clone git://github.com/Libresonic/libresonic.git
|
||
|
$ cd libresonic
|
||
|
$
|
||
|
```
|
||
|
|
||
|
Standalone WAR
|
||
|
--------------
|
||
|
|
||
9 years ago
|
At this point you are ready to build the basic Libresonic WAR. This is required for all the other build targets, so you should do it before proceeding.
|
||
9 years ago
|
|
||
|
```
|
||
|
$ mvn package
|
||
|
<lots of buildspam>
|
||
9 years ago
|
[INFO] Building war: /path/to/repo/libresonic/libresonic-main/target/libresonic.war
|
||
9 years ago
|
<more buildspam>
|
||
|
$
|
||
|
```
|
||
|
|
||
|
Tomcat Installation
|
||
|
-------------------
|
||
|
|
||
|
The WAR may be copied directly to a Tomcat server's webapps/ directory and deployed.
|
||
|
|
||
|
```
|
||
9 years ago
|
$ cp libresonic-main/target/libresonic.war /var/lib/tomcat6/webapps/
|
||
9 years ago
|
$
|
||
|
```
|
||
|
|
||
|
|
||
|
Packaged .deb
|
||
|
-------------
|
||
|
|
||
8 years ago
|
You can furthermore go ahead to create a .deb suitable for installation on
|
||
|
Debian or Ubuntu.
|
||
9 years ago
|
|
||
|
```
|
||
9 years ago
|
$ mvn -P full -pl libresonic-booter -am install
|
||
8 years ago
|
$ mvn -P full -pl libresonic-installer-debian -am install
|
||
9 years ago
|
$ sudo dpkg -i ./libresonic-installer-debian/target/libresonic-*.deb
|
||
9 years ago
|
```
|
||
|
|
||
8 years ago
|
Packaged RPM
|
||
|
------------
|
||
|
|
||
|
Building a RPM package is very similar :
|
||
|
|
||
|
```
|
||
|
$ mvn -P full -pl libresonic-booter -am install
|
||
|
$ mvn -P full,rpm -pl libresonic-installer-rpm -am install
|
||
|
$ sudo rpm -ivh libresonic-installer-rpm/target/libresonic-*.rpm
|
||
|
```
|
||
9 years ago
|
|
||
8 years ago
|
Additional release archives
|
||
|
---------------------------
|
||
|
|
||
|
Additional release archives can be built using the following commands :
|
||
|
|
||
|
```
|
||
|
$ mvn -Pfull -pl libresonic-assembly assembly:single
|
||
|
```
|
||
|
|
||
|
These archives are built in `libresonic-assembly/targets` and include :
|
||
|
|
||
|
* The source distribution
|
||
|
* The standalone archive (for use without a WAR container)
|
||
|
* The WAR archive (for WAR containers)
|
||
|
|
||
|
Good luck!
|