Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I was wondering if there is a way to get the command that generates a jar when building a Talend job. When i click 'Finish', somewhere in the backend, some command is bound to be executed. I am trying to do the following:
This issue is resolved. I was able to get it running by using "mvn -X -Dmaven.repo.local=/Applications/TOSDI-8.0.1/studio/configuration/.m2/repository clean install"
hello you are trying to build the job and not to export it. That's 2 differents things.
you can see how it works by watching the studio logs that are stored with workspace/.metadata/.log
Thanks @David Lucas. However, the logs do not contain the command that is run to build the jar. I was able to try a few things and came across another issue where there were missing jars in the maven repository. I ran "maven -X compile". It will fail on the missing dependencies in the repo. Please see below errors. I have attached my pom.xml and the log. I did find this repo: https://mvnrepository.com/artifact/org.talend (https://artifacts-oss.talend.com/nexus/content/repositories/TalendOpenSourceRelease/) but It didnt find the jars.
Could not find artifact org.talend.daikon:crypto-utils:jar:0.31.12 in central (https://repo.maven.apache.org/maven2)
org.talend.libraries:external_sort:jar:6.0.0 was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced
org.talend.libraries:external_sort:jar:6.0.0 was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced
org.talend.libraries:json-path-2.1.0:jar:6.0.0 was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced
org.talend.components:talendcsv:jar:1.0.0 was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced
org.example.tims_dwh.code:routines:jar:8.0.1 was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced
Hello,
By default, when a Job is built, all the required jars are included in the .bat or .sh command. For a complex Job that involves many Jars, the number of characters in the batch command may exceed the limitation of command length on certain operating systems. To avoid failure of running the batch command due to this limitation, before building your Job, go to Window > Preferences, select Talend > Import/Export, and then select the Add classpath jar in exported jobs check box to wrap the Jars in a classpath.jar file added to the built Job.
Best regards
Sabrina
This issue is resolved. I was able to get it running by using "mvn -X -Dmaven.repo.local=/Applications/TOSDI-8.0.1/studio/configuration/.m2/repository clean install"
Hello,
Glad you got it sorted and thanks for coming back to give your solution!
Best regards
Sabrina