• Overview
    • Django
    • Next.js
    • Drupal
    • WordPress
    • Symfony
    • Magento
    • See all frameworks
    • Observability
    • Auto-scaling
    • Marketing Teams
    • Retail
    • Higher Education
  • Pricing
  • Featured articles
    • Switching to Platform.sh can help IT/DevOps organizations drive 219% ROI
    • Organizations, the ultimate way to manage your users and projects
  • Support
  • Docs
  • Contact
  • Login
  • Free Trial

Java Ant and Maven build scripts supported

November 17, 2015
Ori Pekelman
Ori Pekelman

Platform.sh is a tool for serious people; And serious people use Java tooling.

Anyway, if you are serious or not.. you can now use Ant and Maven build scripts on Platform.sh this is supported for PHP versions 5.6 and up (and will not be back-ported to earlier versions).

This is great news for people who have their tool-chain based on these environments… and this should allow you to pull basically any Java dependency and use it in your Platform.sh project.

So make sure that in your .platform.app.yaml you specify the PHP version as follows:

type: php:5.6

Apache Ant

To use Ant or Maven simply call them from your build hook. Assuming you have a build.xml file in your root directory you could simply run:

build: ant


For maven you would have a pom.xml file in a subdirectory you would do something like:

build: mvn compile
Get the latest Platform.sh news and resources

Related Content

PHP 8.2 lays new ground on Platform.sh

PHP 8.2 lays new ground on Platform.sh

AboutSecurity and complianceTrust CenterBoard and investorsCareersPressContact us
Leader Winter 2023
System StatusPrivacyTerms of ServiceImpressumWCAG ComplianceManage your cookie preferencesReport a security issue
© 2023 Platform.sh. All rights reserved.
Supported by Horizon 2020's SME Instrument - European Commission 🇪🇺