2020-05-06 15:41:14 +02:00
|
|
|
---
|
|
|
|
|
title: Building SCM-Manager from source
|
|
|
|
|
---
|
2020-03-09 08:01:43 +01:00
|
|
|
|
|
|
|
|
### Software Requirements
|
|
|
|
|
|
2020-05-06 15:41:14 +02:00
|
|
|
- JDK 1.8 or higher
|
|
|
|
|
([download](https://openjdk.java.net/install/))
|
2020-03-31 17:28:30 +02:00
|
|
|
- Maven 3 or higher ([download](http://maven.apache.org/))
|
|
|
|
|
- Mercurial ([download](https://www.mercurial-scm.org/))
|
2020-03-09 08:01:43 +01:00
|
|
|
|
2020-05-06 15:41:14 +02:00
|
|
|
### Build SCM-Manager 2.x from source
|
2020-03-09 08:01:43 +01:00
|
|
|
|
2020-03-31 17:28:30 +02:00
|
|
|
```bash
|
2020-05-06 15:41:14 +02:00
|
|
|
hg clone https://github.com/scm-manager/scm-manager.git
|
2020-03-31 17:28:30 +02:00
|
|
|
cd scm-manager
|
2020-05-06 15:41:14 +02:00
|
|
|
git checkout develop
|
2020-03-31 17:28:30 +02:00
|
|
|
mvn clean install
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
**Note**: if you use the \"package\" phase rather than the \"install\" phase,
|
|
|
|
|
the standalone version may include an old version of the WAR file in the distribution bundle,
|
|
|
|
|
rather than the version you just built.
|
2020-03-09 08:01:43 +01:00
|
|
|
|
|
|
|
|
After mvn finished, the war bundle is located at
|
2020-03-31 17:28:30 +02:00
|
|
|
**scm-webapp/target/scm-webapp.war** and the standalone version is
|
|
|
|
|
located at **scm-server/target/scm-server-app**.
|
2020-03-09 08:01:43 +01:00
|
|
|
|
2020-03-31 17:28:30 +02:00
|
|
|
You can also start a dev server using `mvn jetty:run-war -f
|
|
|
|
|
scm-webapp`. SCM-Manager is served at <http://localhost:8081/scm>.
|