Build a job with maven and talend P2 to deploy it on TMC

Four Stars

Build a job with maven and talend P2 to deploy it on TMC

Hello

I try to build and deploy un talend job dowloanded from a git repository for deploy on TMC

For that i used the next commande

 

mvn -s setting.xml -f TEST_TALEND_CI_DEV/poms/pom.xml \
clean deploy -fn -e -pl jobs/process/test_job_dev_ci_0.1 -am \
-Dlicense.path=license \
-Dupdatesite.path=Talend_Full_Studio_p2 \
-Dservice.url=https://iam.eu.cloud.talend.com/ \
-Dcloud.publisher.screenshot=true -Dcloud.publisher.environment=default \
-Dcloud.publisher.workspace=Personal -Pcloud-publisher


Note

We use our own nexus is configured in setting.xml file

and command is execute in test-ci folder which contente the licence the talend p2 the talend job and the setting.xml for maven

~/Desktop/test_ci
$ ls
ci-setting.properties  license  setting.xml  Talend_Full_Studio_p2/  TEST_TALEND_CI_DEV/

The error i get is this :

$ mvn -s setting.xml -f TEST_TALEND_CI_DEV/poms/pom.xml clean deploy -fn -e -pl jobs/process/test_job_dev_ci_0.1 -am -Dlicense.path=license -Dupdatesite.path=Talend_Full_Studio_p2 -Dservice.url=https://iam.eu.cloud.talend.com/ -Dcloud.publisher.screenshot=true -Dcloud.publisher.environment=default -Dcloud.publisher.workspace=Personal -Pcloud-publisher
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]	
[INFO] TEST_TALEND_CI_DEV Codes Master                                    [pom]
[INFO] TEST_TALEND_CI_DEV Routines                                        [jar]
[INFO] TEST_TALEND_CI_DEV test_job_dev_ci-0.1.0 (0.1,Jobs)                [jar]
[INFO]
[INFO] -------------< org.example.test_talend_ci_dev:code.Master >-------------
[INFO] Building TEST_TALEND_CI_DEV Codes Master 7.2.1                     [1/3]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ code.Master ---
[INFO]
[INFO] --- builder-maven-plugin:7.2.1:generate (default) @ code.Master ---
[INFO]
[INFO] *****************************************************
[INFO] Workspace found :E:\Utilisateurs\SI076329\Desktop\test_ci
[INFO] List projects from:E:\Utilisateurs\SI076329\Desktop\test_ci
[INFO]   Found project:TEST_TALEND_CI_DEV
[INFO]   Not valid folder (no talend project) in:Talend_Full_Studio_p2
[INFO]
[INFO] --------< P2Installer start >--------
[INFO] --------< P2Installer end >----------
[INFO]
[INFO] ------------< org.example.test_talend_ci_dev.code:routines >------------
[INFO] Building TEST_TALEND_CI_DEV Routines 7.2.1                         [2/3]
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from talend-custom-libs-snapshot: http://eufrtoptal002.randstaddta.gis:8081/repository/talend-custom-libs-snapshot/org/talend/libraries/crypto-utils/6.0.0-SNAPSHOT/maven-metadata.xml
Downloaded from talend-custom-libs-snapshot: http://eufrtoptal002.randstaddta.gis:8081/repository/talend-custom-libs-snapshot/org/talend/libraries/crypto-utils/6.0.0-SNAPSHOT/maven-metadata.xml (785 B at 1.1 kB/s)
Downloading from talend-custom-libs-snapshot: http://eufrtoptal002.randstaddta.gis:8081/repository/talend-custom-libs-snapshot/org/talend/libraries/crypto-utils/6.0.0-SNAPSHOT/crypto-utils-6.0.0-20191216.141608-64.pom
Downloaded from talend-custom-libs-snapshot: http://eufrtoptal002.randstaddta.gis:8081/repository/talend-custom-libs-snapshot/org/talend/libraries/crypto-utils/6.0.0-SNAPSHOT/crypto-utils-6.0.0-20191216.141608-64.pom (425 B at 1.6 kB/s)
Downloading from talend-custom-libs-snapshot: http://eufrtoptal002.randstaddta.gis:8081/repository/talend-custom-libs-snapshot/org/talend/libraries/crypto-utils/6.0.0-SNAPSHOT/crypto-utils-6.0.0-20191216.141608-64.jar
Downloaded from talend-custom-libs-snapshot: http://eufrtoptal002.randstaddta.gis:8081/repository/talend-custom-libs-snapshot/org/talend/libraries/crypto-utils/6.0.0-SNAPSHOT/crypto-utils-6.0.0-20191216.141608-64.jar (22 kB at 110 kB/s)
[INFO]
[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ routines ---
[INFO] Deleting E:\Utilisateurs\SI076329\Desktop\test_ci\TEST_TALEND_CI_DEV\poms\code\routines\target
[INFO]
[INFO] --- builder-maven-plugin:7.2.1:generate (default) @ routines ---
[INFO]
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ routines ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory E:\Utilisateurs\SI076329\Desktop\test_ci\TEST_TALEND_CI_DEV\poms\code\routines\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ routines ---
Downloading from talend-custom-libs-release: http://eufrtoptal002.randstaddta.gis:8081/repository/talend-custom-libs-release/org/eclipse/platform/org.eclipse.osgi/maven-metadata.xml
Downloading from apache.snapshots: https://repository.apache.org/snapshots/org/eclipse/platform/org.eclipse.osgi/maven-metadata.xml
Downloading from plexus-snapshots: https://oss.sonatype.org/content/repositories/plexus-snapshots/org/eclipse/platform/org.eclipse.osgi/maven-metadata.xml
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ routines ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory E:\Utilisateurs\SI076329\Desktop\test_ci\TEST_TALEND_CI_DEV\poms\code\routines\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) @ routines ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.20:test (default-test) @ routines ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:3.0.2:jar (default-jar) @ routines ---
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building jar: E:\Utilisateurs\SI076329\Desktop\test_ci\TEST_TALEND_CI_DEV\poms\code\routines\target\routines-7.2.1.jar
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ routines ---
[INFO] Skipping artifact installation
[INFO]
[INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @ routines ---
[INFO] Skipping artifact deployment
[INFO]
[INFO] --- cloudpublisher-maven-plugin:7.2.1:publish (default) @ routines ---
[INFO] Skipping non-job artifact publishing
[INFO]
[INFO] ---------< org.example.test_talend_ci_dev.job:test_job_dev_ci >---------
[INFO] Building TEST_TALEND_CI_DEV test_job_dev_ci-0.1.0 (0.1,Jobs) 0.1.0 [3/3]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ test_job_dev_ci ---
[INFO] Deleting E:\Utilisateurs\SI076329\Desktop\test_ci\TEST_TALEND_CI_DEV\poms\jobs\process\test_job_dev_ci_0.1\target
[INFO]
[INFO] --- builder-maven-plugin:7.2.1:generate (default) @ test_job_dev_ci ---
[INFO]
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ test_job_dev_ci ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory E:\Utilisateurs\SI076329\Desktop\test_ci\TEST_TALEND_CI_DEV\poms\jobs\process\test_job_dev_ci_0.1\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ test_job_dev_ci ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ test_job_dev_ci ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory E:\Utilisateurs\SI076329\Desktop\test_ci\TEST_TALEND_CI_DEV\poms\jobs\process\test_job_dev_ci_0.1\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) @ test_job_dev_ci ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.20:test (default-test) @ test_job_dev_ci ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:3.0.2:jar (default-jar) @ test_job_dev_ci ---
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building jar: E:\Utilisateurs\SI076329\Desktop\test_ci\TEST_TALEND_CI_DEV\poms\jobs\process\test_job_dev_ci_0.1\target\test_job_dev_ci_0_1.jar
[INFO]
[INFO] --- maven-assembly-plugin:3.0.0:single (default) @ test_job_dev_ci ---
[INFO] Reading assembly descriptor: E:\Utilisateurs\SI076329\Desktop\test_ci\TEST_TALEND_CI_DEV\poms\jobs\process\test_job_dev_ci_0.1/src/main/assemblies/assembly.xml
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] TEST_TALEND_CI_DEV Codes Master 7.2.1 .............. FAILURE [  0.831 s]
[INFO] TEST_TALEND_CI_DEV Routines 7.2.1 .................. SUCCESS [  6.734 s]
[INFO] TEST_TALEND_CI_DEV test_job_dev_ci-0.1.0 (0.1,Jobs) 0.1.0 FAILURE [  0.454 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  8.128 s
[INFO] Finished at: 2019-12-17T11:01:53+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.talend.ci:builder-maven-plugin:7.2.1:generate (default) on project code.Master: Can not find equinox launcher! -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.talend.ci:builder-maven-plugin:7.2.1:generate (default) on project code.Master: Can not find equinox launcher!
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.apache.maven.plugin.MojoExecutionException: Can not find equinox launcher!
    at org.talend.jobbuilder.JobBuilder.executeByLocalCommandline (JobBuilder.java:650)
    at org.talend.jobbuilder.JobBuilder.execute (JobBuilder.java:438)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:3.0.0:single (default) on project test_job_dev_ci: Error reading assemblies: Error locating assembly descriptor: E:\Utilisateurs\SI076329\Desktop\test_ci\TEST_TALEND_CI_DEV\poms\jobs\process\test_job_dev_ci_0.1/src/main/assemblies/assembly.xml
[ERROR]
[ERROR] [1] [INFO] Searching for file location: E:\Utilisateurs\SI076329\Desktop\test_ci\TEST_TALEND_CI_DEV\poms\jobs\process\test_job_dev_ci_0.1\E:\Utilisateurs\SI076329\Desktop\test_ci\TEST_TALEND_CI_DEV\poms\jobs\process\test_job_dev_ci_0.1\src\main\assemblies\assembly.xml
[ERROR]
[ERROR] [2] [INFO] File: E:\Utilisateurs\SI076329\Desktop\test_ci\TEST_TALEND_CI_DEV\poms\jobs\process\test_job_dev_ci_0.1\E:\Utilisateurs\SI076329\Desktop\test_ci\TEST_TALEND_CI_DEV\poms\jobs\process\test_job_dev_ci_0.1\src\main\assemblies\assembly.xml does not exist.
[ERROR]
[ERROR] [3] [INFO] File: E:\Utilisateurs\SI076329\Desktop\test_ci\TEST_TALEND_CI_DEV\poms\jobs\process\test_job_dev_ci_0.1\src\main\assemblies\assembly.xml does not exist.
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:3.0.0:single (default) on project test_job_dev_ci: Error reading assemblies: Error locating assembly descriptor: E:\Utilisateurs\SI076329\Desktop\test_ci\TEST_TALEND_CI_DEV\poms\jobs\process\test_job_dev_ci_0.1/src/main/assemblies/assembly.xml

[1] [INFO] Searching for file location: E:\Utilisateurs\SI076329\Desktop\test_ci\TEST_TALEND_CI_DEV\poms\jobs\process\test_job_dev_ci_0.1\E:\Utilisateurs\SI076329\Desktop\test_ci\TEST_TALEND_CI_DEV\poms\jobs\process\test_job_dev_ci_0.1\src\main\assemblies\assembly.xml

[2] [INFO] File: E:\Utilisateurs\SI076329\Desktop\test_ci\TEST_TALEND_CI_DEV\poms\jobs\process\test_job_dev_ci_0.1\E:\Utilisateurs\SI076329\Desktop\test_ci\TEST_TALEND_CI_DEV\poms\jobs\process\test_job_dev_ci_0.1\src\main\assemblies\assembly.xml does not exist.

[3] [INFO] File: E:\Utilisateurs\SI076329\Desktop\test_ci\TEST_TALEND_CI_DEV\poms\jobs\process\test_job_dev_ci_0.1\src\main\assemblies\assembly.xml does not exist.
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error reading assemblies: Error locating assembly descriptor: E:\Utilisateurs\SI076329\Desktop\test_ci\TEST_TALEND_CI_DEV\poms\jobs\process\test_job_dev_ci_0.1/src/main/assemblies/assembly.xml

[1] [INFO] Searching for file location: E:\Utilisateurs\SI076329\Desktop\test_ci\TEST_TALEND_CI_DEV\poms\jobs\process\test_job_dev_ci_0.1\E:\Utilisateurs\SI076329\Desktop\test_ci\TEST_TALEND_CI_DEV\poms\jobs\process\test_job_dev_ci_0.1\src\main\assemblies\assembly.xml

[2] [INFO] File: E:\Utilisateurs\SI076329\Desktop\test_ci\TEST_TALEND_CI_DEV\poms\jobs\process\test_job_dev_ci_0.1\E:\Utilisateurs\SI076329\Desktop\test_ci\TEST_TALEND_CI_DEV\poms\jobs\process\test_job_dev_ci_0.1\src\main\assemblies\assembly.xml does not exist.

[3] [INFO] File: E:\Utilisateurs\SI076329\Desktop\test_ci\TEST_TALEND_CI_DEV\poms\jobs\process\test_job_dev_ci_0.1\src\main\assemblies\assembly.xml does not exist.
    at org.apache.maven.plugins.assembly.mojos.AbstractAssemblyMojo.execute (AbstractAssemblyMojo.java:445)
    at org.apache.maven.plugins.assembly.mojos.SingleAssemblyMojo.execute (SingleAssemblyMojo.java:58)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.apache.maven.plugins.assembly.io.AssemblyReadException: Error locating assembly descriptor: E:\Utilisateurs\SI076329\Desktop\test_ci\TEST_TALEND_CI_DEV\poms\jobs\process\test_job_dev_ci_0.1/src/main/assemblies/assembly.xml

[1] [INFO] Searching for file location: E:\Utilisateurs\SI076329\Desktop\test_ci\TEST_TALEND_CI_DEV\poms\jobs\process\test_job_dev_ci_0.1\E:\Utilisateurs\SI076329\Desktop\test_ci\TEST_TALEND_CI_DEV\poms\jobs\process\test_job_dev_ci_0.1\src\main\assemblies\assembly.xml

[2] [INFO] File: E:\Utilisateurs\SI076329\Desktop\test_ci\TEST_TALEND_CI_DEV\poms\jobs\process\test_job_dev_ci_0.1\E:\Utilisateurs\SI076329\Desktop\test_ci\TEST_TALEND_CI_DEV\poms\jobs\process\test_job_dev_ci_0.1\src\main\assemblies\assembly.xml does not exist.

[3] [INFO] File: E:\Utilisateurs\SI076329\Desktop\test_ci\TEST_TALEND_CI_DEV\poms\jobs\process\test_job_dev_ci_0.1\src\main\assemblies\assembly.xml does not exist.
    at org.apache.maven.plugins.assembly.io.DefaultAssemblyReader.addAssemblyFromDescriptor (DefaultAssemblyReader.java:295)
    at org.apache.maven.plugins.assembly.io.DefaultAssemblyReader.readAssemblies (DefaultAssemblyReader.java:116)
    at org.apache.maven.plugins.assembly.mojos.AbstractAssemblyMojo.execute (AbstractAssemblyMojo.java:441)
    at org.apache.maven.plugins.assembly.mojos.SingleAssemblyMojo.execute (SingleAssemblyMojo.java:58)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[INFO] Build failures were ignored.


Accepted Solutions
Employee

Re: Build a job with maven and talend P2 to deploy it on TMC

From log found that problem should be this:

-Dupdatesite.path=Talend_Full_Studio_p2

it should be an absolute path here, please modify the command then try again.

Sorry we didn't clarify it in the description of ci-builder, we'll update it later.

View solution in original post


All Replies
Highlighted
Employee

Re: Build a job with maven and talend P2 to deploy it on TMC

Light commandline didn't install correctly from p2 repository(updatesite.path), please make sure Talend_Full_Studio_p2/ is the parent folder of features, plugins, content.jar, artifact.jar, then run the command again to see if it works:

mvn -s setting.xml -f TEST_TALEND_CI_DEV/poms/pom.xml \
clean deploy -pl jobs/process/test_job_dev_ci_0.1 -am \
-Dlicense.path=license \
-Dupdatesite.path=Talend_Full_Studio_p2 \
-Dservice.url=https://iam.eu.cloud.talend.com/ \
-Dcloud.publisher.screenshot=true -Dcloud.publisher.environment=default \
-Dcloud.publisher.workspace=Personal -DforceUpdate -Pcloud-publisher -X

if it still failed, please send back the maven log to check.

Four Stars

Re: Build a job with maven and talend P2 to deploy it on TMC

Hello zwxue, 

Thank you for your feedback, I tried to execute your maven command, Unfortunately it's still the same(I add in attachment the logs).  

About my P2 directory it's seem correct (we download it from TMC)

 

/# tree -L 2 test_ci/
test_ci/
|-- TEST_TALEND_CI_DEV
|   |-- Databases
|   |-- Maps
|   |-- Namespace\ Containers
|   |-- Reports
|   |-- Sample\ Data
|   |-- Structures
|   |-- TDQ_Data\ Profiling
|   |-- TDQ_Libraries
|   |-- businessProcess
|   |-- businessProcessSVG
|   |-- code
|   |-- components
|   |-- context
|   |-- documentations
|   |-- images
|   |-- joblets
|   |-- joblets_spark
|   |-- joblets_spark_streaming
|   |-- metadata
|   |-- poms
|   |-- process
|   |-- process_mr
|   |-- process_storm
|   |-- resources
|   |-- route_resources
|   |-- routelets
|   |-- routes
|   |-- services
|   |-- sqlPatterns
|   |-- talend.project
|   `-- tests
|-- Talend_Full_Studio_p2
|   |-- artifacts.jar
|   |-- content.jar
|   |-- features
|   `-- plugins
|-- ci-setting.properties
|-- license
`-- setting.xml

 

 

Employee

Re: Build a job with maven and talend P2 to deploy it on TMC

From log found that problem should be this:

-Dupdatesite.path=Talend_Full_Studio_p2

it should be an absolute path here, please modify the command then try again.

Sorry we didn't clarify it in the description of ci-builder, we'll update it later.

View solution in original post

Four Stars

Re: Build a job with maven and talend P2 to deploy it on TMC

 

 

Hello zwxue,

it's seem it can build now but cannot publish. 

 

...
[INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @ test_job_dev_ci --- [DEBUG] Configuring mojo org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-deploy-plugin:2.7, parent: sun.misc.Launcher$AppClassLoader@1b6d3586] [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy' with basic configurator --> [DEBUG] (f) artifact = org.example.test_talend_ci_dev.job:test_job_dev_ci:jar:0.1.0 [DEBUG] (f) attachedArtifacts = [org.example.test_talend_ci_dev.job:test_job_dev_ci:zip:0.1.0] [DEBUG] (s) localRepository = id: local url: file:///root/.m2/repository/ layout: default snapshots: [enabled => true, update => always] releases: [enabled => true, update => always] [DEBUG] (f) offline = false [DEBUG] (f) packaging = jar [DEBUG] (f) pomFile = /test_ci/TEST_TALEND_CI_DEV/poms/jobs/process/test_job_dev_ci_0.1/pom.xml [DEBUG] (f) project = MavenProject: org.example.test_talend_ci_dev.job:test_job_dev_ci:0.1.0 @ /test_ci/TEST_TALEND_CI_DEV/poms/jobs/process/test_job_dev_ci_0.1/pom.xml [DEBUG] (f) retryFailedDeploymentCount = 1 [DEBUG] (f) skip = true [DEBUG] (f) updateReleaseInfo = false [DEBUG] -- end configuration -- [INFO] Skipping artifact deployment [INFO] [INFO] --- cloudpublisher-maven-plugin:7.2.1:publish (default) @ test_job_dev_ci --- [DEBUG] Configuring mojo org.talend.ci:cloudpublisher-maven-plugin:7.2.1:publish from plugin realm ClassRealm[plugin>org.talend.ci:cloudpublisher-maven-plugin:7.2.1, parent: sun.misc.Launcher$AppClassLoader@1b6d3586] [DEBUG] Configuring mojo 'org.talend.ci:cloudpublisher-maven-plugin:7.2.1:publish' with basic configurator --> [DEBUG] (f) environment = default [DEBUG] (f) jobScreenshot = true [DEBUG] (f) serviceUrl = https://iam.eu.cloud.talend.com/ [DEBUG] (f) session = org.apache.maven.execution.MavenSession@5fe8b721 [DEBUG] (f) workspace = Personal [DEBUG] -- end configuration -- [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] TEST_TALEND_CI_DEV Codes Master 7.2.1 .............. SUCCESS [03:45 min] [INFO] TEST_TALEND_CI_DEV Routines 7.2.1 .................. SUCCESS [ 8.865 s] [INFO] TEST_TALEND_CI_DEV test_job_dev_ci-0.1.0 (0.1,Jobs) 0.1.0 FAILURE [ 10.889 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 04:05 min [INFO] Finished at: 2020-01-27T14:09:54Z [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.talend.ci:cloudpublisher-maven-plugin:7.2.1:publish (default) on project test_job_dev_ci: Use at least service token or service username and password! -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.talend.ci:cloudpublisher-maven-plugin:7.2.1:publish (default) on project test_job_dev_ci: Use at least service token or service username and password! at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288) at org.apache.maven.cli.MavenCli.main (MavenCli.java:192) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356) Caused by: org.apache.maven.plugin.MojoFailureException: Use at least service token or service username and password! at org.talend.cloud.publisher.CloudPublisher.execute (CloudPublisher.java:186) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288) at org.apache.maven.cli.MavenCli.main (MavenCli.java:192) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356) [ERROR] [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :test_job_dev_ci

We use this setting.xml file like this: 

 

<?xml version="1.0" encoding="UTF-8"?>
<settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd" xmlns="http://maven.apache.org/SETTINGS/1.1.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <!--<localRepository>C:/Talend/CommandLine_7.1.1/configuration/.m2/repository</localRepository-->
    <servers>
		<!-- credentials to access Talend Cloud -->   
		<server>
            <id>https://ipaas.eu.cloud.talend.com/ipaas-services/services/inventory</id>
            <username>idir.aithammi@company.fr</username>
            <password>mypassword</password>
        </server>
		<!-- identification for the default Nexus releases/snapshots repository -->
		<!-- identification for the shared Libraries repository -->
        <server>
            <id>talend-custom-libs-release</id>
            <username>talend-custom-libs-admin</username>
            <password>talend-custom-libs-admin</password>
        </server>
        <server>
            <id>talend-custom-libs-snapshot</id>
            <username>talend-custom-libs-admin</username>
            <password>talend-custom-libs-admin</password>
        </server>
	</servers> 
    <proxies>

    <proxy>
        <id>proxy_http</id>
        <active>true</active>
        <protocol>https</protocol>
        <host>192.1.1.3</host>
        <port>8080</port>
        <nonProxyHosts>localhost|ourNexus.company.fr</nonProxyHosts> 
    </proxy>
    <proxy>
        <id>proxy_https</id>
        <active>true</active>
        <protocol>http</protocol>
        <host>192.1.1.3</host>
        <port>8080</port>
        <nonProxyHosts>localhost|ourNexus.company.fr|</nonProxyHosts> 
    </proxy>
    </proxies>

	<profiles>
        <profile>
            <id>local_repository</id>
            <repositories>
                <repository>
                    <id>talend-custom-libs-release</id>
                    <name>talend-custom-libs-release</name>
                    <url>http://ourNexus.company.fr:8081/repository/talend-custom-libs-release/</url>
					<releases>
						<enabled>true</enabled>
					</releases>
					<snapshots>
						<enabled>false</enabled>
					</snapshots>
                    <layout>default</layout>
                </repository>
                <repository>
                    <id>talend-custom-libs-snapshot</id>
                    <name>talend-custom-libs-snapshot</name>
                    <url>http://ourNexus.company.fr:8081/repository/talend-custom-libs-snapshot/</url>
					<releases>
						<enabled>false</enabled>
					</releases>
					<snapshots>
						<enabled>true</enabled>
					</snapshots>
                    <layout>default</layout>
                </repository>
            </repositories>
			<pluginRepositories>
				<pluginRepository>
                    <id>talend-custom-libs-release</id>
                    <name>talend-custom-libs-release</name>
                    <url>http://ourNexus.company.fr:8081/repository/talend-custom-libs-release/</url>
                    <layout>default</layout>
                </pluginRepository>
            </pluginRepositories>
        </profile>	
    </profiles>
    <activeProfiles>
        <activeProfile>local_repository</activeProfile>
    </activeProfiles>
</settings>

 

 

Employee

Re: Build a job with maven and talend P2 to deploy it on TMC

OK, at least it can run now.

for now problem is here:

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.talend.ci:cloudpublisher-maven-plugin:7.2.1:publish (default) on project test_job_dev_ci: Use at least service token or service username and password!

you need to provide service.username and service.password/token to it, but I'm not sure if it's the only problem since it's maintained by another team, I don't know if you have the help doc of ci-builder, normally it's with the plugin jar inside the zip, you can find all available properties in it. if no, please ask support team for wiki/documentation to see what else properties are needed here.

 

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Talend Cloud Available on Microsoft Azure

An integration platform-as-a-serviceto help enterprises collect, govern, transform, and share data from any data sources

Watch Now

Self-service Talend Migration: Moving from On-Premises to the Cloud

Move from On-Premises to the Cloud by following the advice of experts

Read Now

Put Massive Amounts of Data to Work

Learn how to make your data more available, reduce costs and cut your build time

Watch Now