Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello all,
Ok since version 7 of Talend Open Studio, it is more difficult to maintain a Talend project into git repository. But I don't give up! For an important project in my company, we used the TOS 6 version maintained in a git repository. It was tedious but with a bit of rigor, it was ok and we managed to complete the project.
So I give it a shot with version 7. Since Talend dragged the Java sources directly into the project, I've been looking to drag them into the Git repository. And I wondered if it was possible to use Maven to compile the job out of the studio.
And it works!
You can consult the git repository here: https://gitlab.com/michad/tos-esb-7-framework
I use Talend Open Studio ESB 7.3.1 for my test. The studio is available at https://sourceforge.net/projects/talendesb/files/Talend%20Open%20Studio%20for%20ESB/7.3.1/
Instruction to test the external compilation, assuming that:
Now, a zip archive of the job must be present into C:\talend\workspace\FRAMEWORK\poms\jobs\process\Lab\checkifyoucancompilme_0.1\target\checkifyoucancompilme_0_1.zip 🙂
To be able to execute the Maven command, it was necessary to modify the default POM of the standalone jobs in the properties of the project (it is necessary to remove the use of the plugin org.talend.ci:signer-maven-plugin...). This modification is present in the git repository.
Then to check that the project is not broken by opening it in the studio :
The ignored files are present in .gitignore. I let you consult its contents.
These are my first attempts so I'm still expecting surprises. But it's promising! And it leaves the way open for the CI/CD to do the open studio version of Talend. 😉
Ok I see that some dependencies only appear if you run the job at least once or if you generate the code (via the code tab) in the Talend studio.
So I suggest you to do it in reverse order. Start by opening the studio and loading the project, then run the job at least once in the studio. Then try to compile the job by running the mvn command.
I just did the test and it's OK. Obviously when using the Big Data studio, there are some changes in the Java code, but that's normal and that's even what we want.
It got solved by adding talend_file_enhanced_20070724 jar in .m2 repository, btw thank you very much for the quick response...
@Michael Duflot, nice post! Thanks for your great contribution to community.
Regards
Shong
@Michael Duflot - How to make the build with specific Context group like - Dev, QA, PROD
Is there any parameter we need to add in above maven command?
Thanks,
Kiran