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

Caused by: org.apache.maven.plugin.MojoExecutionException: The Talend Commandline version 0.0.0 is older than project version.

Hi ,

I have recently upgrade talend 7.3.1 to talend 8.0.1. In talend 8.0.1  I am not able run command line server on window.

I could not find commandline.bat after unzip talend8.01 file. I found only commandline_upgrade.bat.

  • when try run commandline_upgrade.bat its gives exception "java.lang.RuntimeException: Application "org.talend.commandline.CommandLine" could not be found in the registry" .

 

  • And when I try run below maven commands for regenerate pom file and build packaging then its gives exception  "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.
    *****************************************************"

I already try with -Dtalend.studio.p2.update= https://update.talend.com/Studio/8/updates/latest but we have firewall limitation on server so it could not access  https://update.talend.com/Studio/8/updates/latest .

Maven Commands :- 

mvn org.talend.ci:builder-maven-plugin:8.0.12:generateAllPoms -Dgeneration.type=local -Dproduct.path=C:\Programs\Talend-StudioV8.0.1 -Dlicense.path=C:\Programs\Talend-StudioV8.0.1 -Dtalend.studio.p2.base=C:\Programs\Talend-StudioV8.0.1 -Dtalend.studio.p2.update=C:\Programs\Talend-StudioV8.0.1

please suggest how can we resolve theses above issue.

Any lead would be greatly appreciated.

Thanks in advance.

 

4 Replies
Shicong_Hong
Support
Support

Hi

Talend CommandLine as a server is removed from Talend 8.0 onwards.

https://help.talend.com/r/en-US/8.0/release-notes/data-integration-deprecated-and-removed-items

Regards

Shicong

sus_1478
Contributor II
Contributor II
Author

Hi ,

How can we perform the custom maven build and code generate commands, as well as the generateallpom maven command for pom regeneration, if Talend CommandLine is removed as a server from Talend 8.0 onwards?

because we are facing below issue with each maven command with talend 8.0.1 and I am not able complete talend job build process due to this error.

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

Any lead would be greatly appreciated.

Thanks in advance.

MahiwalVinit
Creator
Creator

Hello Friend

 

As Talend command line is removed from Talend8 onwards also there is changes in the way patching is applied as compare to Talend 7.3.1. Now the next solution to build talend Job is using CICD pipeline using Jenkins please see Continuous Integration and Deployment using Jenkins.

As per attached error in screenshot can you share what command you are running ?

Regards 
Vinit

sus_1478
Contributor II
Contributor II
Author

Hi Vinit,

I have fixed command line issue after updating patch version over the talend studio  8.0.1.

Now the current version is :- Talend 8.0.1 2024-02  and CI.builder.plugin also updated with  8.0.13 version.

But after update I am able to run genratesallpoms maven commands with CI.builder.plugin 8.0.1.

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\Talend8_L -Dtalend.studio.p2.base=C:\Programs\Talend-Studio-20231027-V8.0.1  (this command is running successful after update patch).

But I am trying with CI.builder.plugin also update 8.0.13

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\Talend8_L -Dtalend.studio.p2.base=C:\Programs\Talend-Studio-20231027-V8.0.1 (its giving below error)

[ERROR] Failed to execute goal org.talend.ci:builder-maven-plugin:8.0.13:generateAllPoms (default-cli) on project standalone-pom: Transfer C:\Programs\Talend-V8.0.1 failed: C:\Programs\Talend-V8.0.1 (Access is denied) -> [Help 1]

I am trying run custom maven build using below command.

mvn -e -X -f C:\Programs\BuildGitBranch8\file-interface-1059223155\FI\poms\pom.xml clean package -s C:\Programs\apache-maven-3.6.3\conf\settings.xml -pl jobs/process/jb_file_interface_3.494,jobs/process/jb_file_interface_iterator_0.37,jobs/process/jb_cdi_file_validation_3.1 -am -Dgeneration.type=local -Dlicense.path=C:\Programs\Talend8_L -Dtalend.studio.p2.base=C:\Programs\Talend-Studio-20231027-V8.0.1 -Dproduct.path=C:\Programs\Talend-Studio-20231027-V8.0.1 -Dtalend.job.context=Production_environment -Dtalend.job.applyContextToChildren=true -Dcommandline.skip=true -P-signature

Thanks ,

Sushil