Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
ytchirikov
Contributor
Contributor

Talend 7.2.1 CI/CD : builder-maven-plugin:7.2.1 NullPointerException

Hello

We have a problem with job construction via Jenkins.

The Jenkins job based on recommendations :

Talend Software Development Life Cycle - Guide de bonnes pratiques,

https://community.talend.com/s/article/Continuous-Integration-with-Talend-on-premises-using-Azure-DevOps-14MMf

https://community.talend.com/s/article/Talend-CI-zero-install-workflow-explained-YXru9

4 servers : Nexus, GIT, Jenkins and TAC

Talend_Full_Studio_p2_repository-20190620_1446-V7.2.1.zip is installed in [TAC]/apache-tomcat/webapps

Jenkins job is Maven project (maven 3.6.0) 

Maven goals : clean deploy -fn -e -pl -am

MAVEN_OPTS : 

-Dgeneration.type=local\

-Dlicense.path=${TALEND-LICENSE}\

-Dupdatesite.path=http://TAC_URL/P2/\

-DaltDeploymentRepository=snapshots::default::https://NEXUS_URL/repository/snapshots/\

We are blocked. Without any idea to fix.  

Thanks for your help.

-------------

[INFO] Reactor Build Order:

[INFO] 

[INFO] PROJET1 Codes Master                  [pom]

[INFO] PROJET1 Routines                    [jar]

[INFO] PROJET1 Job_Purge-1.0.0 (1.0,Jobs)   [jar]

[INFO] 

[INFO] ---------------------< eu.lss.talend:code.Master >----------------------

[INFO] Building PROJET1 Codes Master 7.2.1          [1/3]

[INFO] --------------------------------[ pom ]---------------------------------

[INFO] 

[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ code.Master ---

[DEBUG] Skipping non-existing directory /data/jenkins/workspace/Talend/test/PROJET1/poms/target

[DEBUG] Skipping non-existing directory /data/jenkins/workspace/Talend/test/PROJET1/poms/target/classes

[DEBUG] Skipping non-existing directory /data/jenkins/workspace/Talend/test/PROJET1/poms/target/test-classes

[DEBUG] Skipping non-existing directory /data/jenkins/workspace/Talend/test/PROJET1/poms/target/classes

[INFO] 

[INFO] --- builder-maven-plugin:7.2.1:generate (default) @ code.Master ---

[DEBUG] CurrentProject=PROJET1 Codes Master

[DEBUG] **** START **** Prepare List to build

[DEBUG] CurrentProject=PROJET1 Codes Master

[DEBUG] firstProject=PROJET1 Codes Master

[DEBUG] Nothing to build in=PROJET1 Codes Master

[DEBUG] Nothing to build in=PROJET1 Routines

[DEBUG] Project=PROJET1 / id=_FIyDkEm2EeqgZKUgfvCtqQ / version=1.0

[DEBUG] **** END **** Prepare List to build

[INFO] 

[INFO] *****************************************************

[INFO] Workspace found :/data/jenkins/workspace/Talend/test

[INFO] List projects from:/data/jenkins/workspace/Talend/test

[INFO]  Not valid folder (no talend project) in:.git

[INFO]  Found project:PROJET1

[INFO] 

[INFO] --------------------< eu.lss.talend.code:routines >---------------------

[INFO] Building PROJET1 Routines 7.2.1            [2/3]

[INFO] --------------------------------[ jar ]---------------------------------

[WARNING] The POM for org.talend.libraries:crypto-utils:jar:6.0.0-SNAPSHOT is missing, no dependency information available

[WARNING] The POM for org.talend.libraries:talend_file_enhanced_20070724:jar:6.0.0 is missing, no dependency information available

[INFO] 

[INFO] ------------< eu.lss.talend.job:Job_Purge >-------------

[INFO] Building PROJET1 Job_Purge-1.0.0 (1.0,Jobs) 1.0.0 [3/3]

[INFO] --------------------------------[ jar ]---------------------------------

[WARNING] The POM for org.talend.ci:signer-maven-plugin:jar:7.2.1 is missing, no dependency information available

[INFO] ------------------------------------------------------------------------

[INFO] Reactor Summary:

[INFO] 

[INFO] PROJET1 Codes Master 7.2.1 ............. FAILURE [ 0.852 s]

[INFO] PROJET1 Routines 7.2.1 ................. FAILURE [ 0.075 s]

[INFO] PROJET1 Job_Purge-1.0.0 (1.0,Jobs) 1.0.0 FAILURE [ 0.025 s]

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 3.378 s

[INFO] Finished at: 2020-12-15T14:45:06+01:00

[INFO] ------------------------------------------------------------------------

Waiting for Jenkins to finish collecting data

[ERROR] Failed to execute goal org.talend.ci:builder-maven-plugin:7.2.1:generate (default) on project code.Master: Execution default of goal org.talend.ci:builder-maven-plugin:7.2.1:generate failed. NullPointerException -> [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: Execution default of goal org.talend.ci:builder-maven-plugin:7.2.1:generate failed.

  at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)

  at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)

...

Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default of goal org.talend.ci:builder-maven-plugin:7.2.1:generate failed.

  at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:148)

  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)

...

Caused by: java.lang.NullPointerException

  at java.util.Hashtable.put (Hashtable.java:459)

  at java.util.Properties.setProperty (Properties.java:166)

  at org.talend.jobbuilder.JobBuilder.setSignerSessionInfo (JobBuilder.java:448)

  at org.talend.jobbuilder.JobBuilder.execute (JobBuilder.java:441)

  at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)

  at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)

...

[ERROR] Failed to execute goal on project routines: Could not resolve dependencies for project eu.lss.talend.code:routines:jar:7.2.1: The following artifacts could not be resolved: org.talend.libraries:crypto-utils:jar:6.0.0-SNAPSHOT, org.talend.libraries:talend_file_enhanced_20070724:jar:6.0.0: Failure to find org.talend.libraries:crypto-utils:jar:6.0.0-SNAPSHOT in https://NEXUS_URL/repository/public/ was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 2]

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project routines: Could not resolve dependencies for project eu.lss.talend.code:routines:jar:7.2.1: The following artifacts could not be resolved: org.talend.libraries:crypto-utils:jar:6.0.0-SNAPSHOT, org.talend.libraries:talend_file_enhanced_20070724:jar:6.0.0: Failure to find org.talend.libraries:crypto-utils:jar:6.0.0-SNAPSHOT in https://NEXUS_URL/repository/public/ was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced

  at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies (LifecycleDependencyResolver.java:269)

  at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies (LifecycleDependencyResolver.java:147)

  at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved (MojoExecutor.java:248)

  at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:202)

  at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)

...

Labels (4)
2 Replies
ytchirikov
Contributor
Contributor
Author

UPD

Hi

This probleme was fixed by installation of Talend Studio with full .m2 repository on Jenkins server.

Well ... Talend 7.x is not terrible as DevOps solution 😣 !!! And we can see that option with p2 under Tomcat (TAC) dont works....

 

But we have other probleme :

/src/main/assemblies/assembly.xml does not exist

 

What is it ? Why ?

Help please !

ASlim
Contributor
Contributor

Hi @Yura Tchirikov​ ,

 

I am encountering the same issue on builder-maven-plugin not able to execute goal on code.Master with the nullPointer exception.

(Failed to execute goal org.talend.ci:builder-maven-plugin:7.3.5:generate (default) on project code.Master: Fail to execute command: BuildItemSourcesCommand

....)

 

Afterwards, compiling Talend jobs are failing because of the unability to find assembly descriptor

(Error reading assemblies: Error locating assembly descriptor: ..... /src/main/assemblies/assembly.xml).

 

Did you manage to fix it?

 

Thanks