Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I want to build a standalone job but building fail at the end when assembling project.
When looking at the LastGenerated.log we can see that Jar building is ok for all jobs including the main job (all jobs produce same messages, here is the main job) :
[INFO] ------------------------------------------------------------------------
[INFO] Building PRODUCTION_UTC DWH_01_JOBS_LIST (Job Designs) 0.1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ DWH_01_JOBS_LIST ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 712 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ DWH_01_JOBS_LIST ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.7:copy-resources (copy-running-resources) @ DWH_01_JOBS_LIST ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ DWH_01_JOBS_LIST ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ DWH_01_JOBS_LIST ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ DWH_01_JOBS_LIST ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ DWH_01_JOBS_LIST ---
[INFO] Building jar: /opt/talend/workspace/.Java/target/dwh_01_jobs_list_0_1.jar
Reading for assembly descriptor give no error message but the path is wrong because job version is not included :
[INFO] --- maven-assembly-plugin:2.5.5:single (default) @ DWH_01_JOBS_LIST ---
[INFO] Reading assembly descriptor: /opt/talend/workspace/.Java/src/main/assemblies/assembly_DWH_01_JOBS_LIST.xml
And then comme the error messages :
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:02 min
[INFO] Finished at: 2018-10-05T10:33:04+01:00
[INFO] Final Memory: 59M/583M
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "packaging-and-assembly" could not be activated because it does not exist.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.5.5:single (default) on project DWH_01_JOBS_LIST: Error reading assemblies: Error locating assembly descriptor: /opt/talend/workspace/.Java/src/main/assemblies/assembly_DWH_01_JOBS_LIST.xml
[ERROR]
[ERROR] [1] [INFO] Searching for file location: /opt/talend/workspace/.Java/opt/talend/workspace/.Java/src/main/assemblies/assembly_DWH_01_JOBS_LIST.xml
[ERROR]
[ERROR] [2] [INFO] File: /opt/talend/workspace/.Java/opt/talend/workspace/.Java/src/main/assemblies/assembly_DWH_01_JOBS_LIST.xml does not exist.
[ERROR]
[ERROR] [3] [INFO] File: /opt/talend/workspace/.Java/src/main/assemblies/assembly_DWH_01_JOBS_LIST.xml does not exist.
The path is still wrong because of /opt/talend/workspace that is included twice.
I've read that the problem comes from MAVEN settings in the project settings.
Thanks
Hi,
I solved my problem. There was a custom script under "Setup custom scripts by folder". The changes i made before on default pom.xml were not used because of this. In the custom pom script, the descriptor in the configuration of the artifact maven-assembly-plugin was not complete. The ${talend.job.version} was missing to give a full xml filename.
I deleted the custom script. The default script work fine.
Thank
Hi,
I solved my problem. There was a custom script under "Setup custom scripts by folder". The changes i made before on default pom.xml were not used because of this. In the custom pom script, the descriptor in the configuration of the artifact maven-assembly-plugin was not complete. The ${talend.job.version} was missing to give a full xml filename.
I deleted the custom script. The default script work fine.
Thank