After project migration, building a Job fails with 'Error locating assembly descriptor: .../assembly_JobName_@JobVersion@.xml'

Problem Description

After project migration, building a Job fails with the error:

java.lang.Exception: Job was not built successfully, please check the logs for more details available on the workspace/.Java/lastGenerated.log.
In the file lastGenerated.log:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.5.5:single (default) on project JobName: Error reading assemblies: Error locating assembly descriptor: C:\TALEND\6.4.1\workspace\.Java/src/main/assemblies/assembly_JobName_@JobVersion@.xml

 

Root Cause

Wrong Maven POM settings in Project Settings.

 

Solution

  1. In Studio, navigate to File > Edit Project properties > Project Settings > Build > Default > Maven > Standalone Job.

    edit_project_properties.png

     

  2. Edit the Maven POM settings by replacing the line:

    <talend.job.version>@JobVersion@</talend.job.version>

    with

    <talend.job.version>@TalendJobVersion@</talend.job.version>

     

    Maven_POM_settings.png

     

  3. Click Apply, then OK.
Version history
Revision #:
5 of 5
Last update:
‎12-05-2018 06:32 PM
Updated by:
 
Labels (3)