A short walk through with scripts to help you get Prebid Server Java up and running.
- Mac OS
- Java v22
- Maven v3.9.6
- Install sdk man for managing the Java runtime.
curl -s "https://get.sdkman.io" | bash
- Install Java v22
sdk install java 22.0.1-amzn
- Make sure the Java v22 is the default Java runtime.
sdk default java 22.0.1-amzn
- Install Maven v3.9.6
sdk install maven 3.9.6
- Clone the Prebid Server Java repository.
git clone https://github.com/prebid/prebid-server-java.git
- Navigate to the Prebid Server Java repository.
cd prebid-server-java
- Build the Prebid Server Java project.
mvn clean package -Dmaven.test.skip=true
- Run the Prebid Server Java project.
java -jar target/prebid-server.jar --spring.config.additional-location=sample/configs/prebid-config.yaml
- Use CURL / Postman to test the Prebid Server Java project.
curl 'http://0.0.0.0:8080/status'
/info/bidders - Shows a list of bidders that are available to bid.
/info/bidders/33across - Shows bid configurations for 33across.
/openrtb2/auction - Sends out bid request, receives bid responses.
/cookie_sync - Synchronizes cookies.
/status - Shows the status of the Prebid Server Java project.