Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
sus_1478
Contributor II
Contributor II

Issue in upgrade talend version 7.3.1 to Talend 8.0.1 with pom.xml.

Recently I have upgrade talend version 7.3.1 to Talend 8.0.1

I faced below major issue after migration of code in talend 8.0.1.

  • I found major difference in pom.xml file after upgrading code 7.3.1 to 8.0.1. I am not able see modules tag in project pom.xml. In 7.3.1 talend version's pom.xml we have modules section in pom.xml. which is used for  job build in maven command with -pl parameter in CICD by Jenkins. However In talend 8 I can not see whole modules section in pom.xml. Due to this major difference I am not able make to automation build using maven command of talend job.

2024-03-04 18_05_51-New Text Compare_ - Text Compare - Beyond Compare.png

Could you please help how can we add modules section in pom.xml using talend studio 8.0.1?

Any lead would be greatly appreciated.

Thanks In advance.

 

 

 

4 Replies
Xiaodi_Shi
Support
Support

Hello,

Generating POM files, installing a patch and creating a custom scriptWarning: From version 8 onwards and for performance reasons, the POM files of your project are not saved by default but can be easily generated and updated when necessary. This generation step is thus mandatory to execute a CI build successfully.

Please have a look at this online documentation:

https://help.talend.com/r/en-US/8.0/software-dev-lifecycle-best-practices-guide/regenerate-pom-files
Feel free to let me know if it helps.

 

Best regards

Sabrina

sus_1478
Contributor II
Contributor II
Author

Hi ,

Thanks for reply.

I am facing below issue with maven genearteallpom and generate and maven build command with talend 8.0.1 and I am not able complete talend job build process due to this error.

Commands :-

Generates all poms command :-

mvn org.talend.ci:builder-maven-plugin:8.0.1:generateAllPoms -Dproduct.path=C:\Programs\Talend-Studio-20231027-V8.0.1 -Dlicense.path=C:\Programs\Talend-Studio-20231027-V8.0.1 -Dtalend.studio.p2.base=C:\Programs\Talend-Studio-20231027-V8.0.1 -Dtalend.studio.p2.update=C:\Programs\Talend-StudioV8.0.1

Code generate command :

mvn org.talend.ci:builder-maven-plugin:8.0.1:generate -e -X -f C:\Programs\BuildGitBranch8\file-interface-1059223155\FI\poms\ -s C:\Programs\apache-maven-3.6.3\conf\settings.xml -Dgeneration.type=local -Dlicense.path=C:\Programs\Talend8_L -Dproduct.path=C:\Programs\Talend-Studio-20231027-V8.0.1

Maven build command:-

mvn -e -X -f C:\Users\Development\TalendPOC8\FILE_INTERFACE\poms\pom.xml

clean package

-s C:\Programs\apache-maven-3.6.3\conf\settings.xml

-Dgeneration.type=local

-Dlicense.path=C:\Programs\Talend-StudioV8.0.1

-Dupdatesite.path=C:\Programs\Talend-StudioV8.0.1

-Dproduct.path=C:\Programs\Talend-StudioV8.0.1

if I used ci.builder.plugin 8.0.1 then its giving below error .PFB scrrenshot

2024-03-08 16_05_07-Administrator_ Command Prompt - mvn  org.talend.ci_builder-maven-plugin_8.0.1_ge.png

and if running with ci.builder.plugin 8.0.13 then its giving below error

 "Caused by: org.apache.maven.plugin.MojoExecutionException:
*****************************************************
The Talend Commandline version 0.0.0 is older than project version. Use -Dtalend.studio.p2.update to change the update URL to match or supersede the project version and try again.
*****************************************************"

please suggest how can we resolve theses above issue.

Any lead would be greatly appreciated.

Thanks in advance.

Xiaodi_Shi
Support
Support

Hello,

Could you clarify what's inside the /repo-update folder?

The error is suggesting that the patch version you have placed inside this folder is older than the project version.

If you're able to reach out to the internet from this CI builder you could put

-Dtalend.studio.p2.update =https://update.talend.com/Studio/8/updates/latest

on you maven command and check if that works better?

Best regards

Sabrina

 

MahiwalVinit
Creator
Creator

In talend 8 for below parameter better to specify url rather then local path. 
Dtalend.studio.p2.base
Dtalend.studio.p2.update
i.e

-Dtalend.studio.p2.base=https://update.talend.com/Studio/8/base 
-Dtalend.studio.p2.update=https://update.talend.com/Studio/8/updates/R2023-02