Skip to main content

Talend custom Maven build options

Maven options you can pass when building, executing, and publishing artifacts on your Continuous Integration server.
Information noteNote: There are three types of Maven parameters that you can use in your builds:
  • The generic build parameters used by the Talend CI Builder plugin.
  • The parameters related to deployment used by the Talend CI Builder and Cloud publisher plugins.
  • The other Talend parameters that are not defined in the CI Builder plugin.
Talend leverages a standard Maven-based Continuous Integration (CI) implementation. A CI Maven command typically looks like this:
mvn \
        -f <project name>/poms/pom.xml \
        -am -pl <comma separated list of jobs modules> \
        -Dgeneration.type=local
        -Dproduct.path=<CommandLine path>
        -Dlicense.path=<license local path or url> \
        -Dupdatesite.path=<update site local path> \
        -Dpatch.path=<patch local path or url>
        -Pcloud-publisher
        -Dservice.url=<talend cloud service url>
        -Dcloud.token=<talend cloud personal access token>
        -Dcloud.publisher.screenshot=<true or false>
        -Dcloud.publisher.environment=<name of your existing Cloud environment> 
        -Dcloud.publisher.workspace=<name of your existing Cloud workspace>
clean deploy
Example:
mvn -f C:/CI_CD/MYPROJECT/poms/pom.xml clean deploy -fae -e -pl jobs/process/priorTest_0.1 -am 
        -Dlicense.path=C:/CI_CD/license 
        -Dupdatesite.path=http://localhost:8080/P2/ 
        -Dpatch.path=D:/patches/Patch_TPS-2222.zip 
        -Dproduct.path=C:/Talend/studio 
        -Dproject.distributionManagement.snapshotRepository.url=http://localhost:8081/repository/snapshots/ 
        -Dproject.distributionManagement.snapshotRepository.id=snapshots 
        -DaltDeploymentRepository=snapshots::default::http://localhost:8081/repository/snapshots/
        -Pcloud-publisher
        -Dservice.url=https://tmc.eu.cloud.talend.com/inventory/
        -Dcloud.token=XYourPersonalAccessCloudTokenX 
        -Dcloud.publisher.screenshot=true 
        -Dcloud.publisher.environment=dev-ci 
        -Dcloud.publisher.workspace=ci-workspace

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!