• Overview
    Key features
    • Observability
    • Auto-scaling
    • Multiframework
    • Security
    Frameworks
    • Django
    • Next.js
    • Drupal
    • WordPress
    • Symfony
    • Magento
    • See all frameworks
    Languages
    • PHP
    • Python
    • Node.js
    • Ruby
    • Java
    • Go
  • Industries
    • Consumer Goods
    • Media/Entertainment
    • Higher Education
    • Government
    • Ecommerce
  • 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
  • Login
  • Request a demo
  • Free Trial
Meet Upsun. The new, self-service, fully managed PaaS, powered by Platform.sh.Try it now
Blog

Java Ant and Maven build scripts supported

php
17 November, 2015
Ori Pekelman
Ori Pekelman
Chief Strategy Officer

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:

hooks:
build: ant

Maven

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

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

Related Content

A festive treat: PHP 8.3 is already available on Platform.sh

A festive treat: PHP 8.3 is already available on Platform.sh

Company
AboutSecurity and complianceTrust CenterCareersPressContact us
Thank you for subscribing!
  •  
Field required
Leader Winter 2023
System StatusPrivacyTerms of ServiceImpressumWCAG ComplianceAcceptable Use PolicyManage your cookie preferencesReport a security issue
© 2024 Platform.sh. All rights reserved.
Supported by Horizon 2020's SME Instrument - European Commission 🇪🇺