Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
LFR1665328374
Contributor
Contributor

Need information to build a standalone job with maven command

Hello,

In Talend Open Studio we can build a project. The result is a zip file containing scripts for Unix and Windows environments and our jar file.

Is it possible to produce the same zip file but by using a maven command ? (e.g: mvn clean package)

In project settings, I saw it was possible to create 2 files pom.xml and assembly.xml for the standalone job desired, but I don't know how fill them for certains variables as

@ProjectGroupId@ / @ProjectArtifactId / @ProjectRelativePath@ / @JobPath@ ...

Please, could you help me or an pom's example ?

Thanks for your help.

Laurent

Below the pom.xml generated from project settings of my job.

<?xml version="1.0" encoding="UTF-8"?>

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>

<parent>

<groupId>@ProjectGroupId@</groupId>

<artifactId>@ProjectArtifactId@</artifactId>

<version>@ProjectVersion@</version>

<relativePath>@ProjectRelativePath@</relativePath>

</parent>

<groupId>@JobGroupId@</groupId>

<artifactId>@JobArtifactId@</artifactId>

<version>@JobVersion@</version>

<name>@ProjectName@ @JobName@-@JobVersion@ (@TalendJobVersion@,@JobType@)</name>

<properties>

<talend.job.path>@JobPath@</talend.job.path>

<!-- for jobInfo.properties -->

<maven.build.timestamp.format>@JobDateFormat@</maven.build.timestamp.format>

<talend.project.name>@ProjectName@</talend.project.name>

<talend.project.name.lowercase>@ProjectName@</talend.project.name.lowercase>

<talend.routine.groupid>@RoutineGroupId@</talend.routine.groupid>

<talend.pigudf.groupid>@PigudfGroupId@</talend.pigudf.groupid>

<talend.project.id>@ProjectId@</talend.project.id>

<talend.job.name>@JobName@</talend.job.name>

<talend.job.version>@TalendJobVersion@</talend.job.version>

<talend.job.date>${maven.build.timestamp}</talend.job.date>

<talend.job.context>@JobContext@</talend.job.context>

<talend.job.id>@JobId@</talend.job.id>

<talend.job.type>@JobType@</talend.job.type>

<talend.job.folder>@JobFolder@</talend.job.folder>

<talend.job.framework>@Framework@</talend.job.framework>

<talend.job.stat>@JobStat@</talend.job.stat>

<talend.job.applyContextToChildren>@JobApplyContextToChildren@</talend.job.applyContextToChildren>

<talend.product.version>@ProductVersion@</talend.product.version>

<talend.job.finalName>@JobFinalName@</talend.job.finalName>

<!-- for global properties -->

Labels (2)
1 Reply
Anonymous
Not applicable

This is not supported in the Talend Open Studio version I am afraid.