Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
_AnonymousUser
Specialist III
Specialist III

Auto-synchronization from external jar between studio and nexus

Hello,
We are using "Talend Data Services Platform 6.2".
We want to use Nexus to storage the user libraries. We would like that the libraries are automatically upload to Nexus and that the studio automatically retrieve them from Nexus if they don't exist on local.
So, I follow the documentation:
And I also follow this ticket because we will need it works with CI.
To summarize, currently we have :

TAC with "User librairies" configured with Nexus
On local, the file configuration/config.ini has variables: nexus.url, nexus.lib.repo, nexus.user, nexus.password
I have a job with a tLibraryLoad, which using an external jar

This external jar is never uploaded to Nexus.
>> How to do for synchronize library to/from Nexus with studio ?

Thank you. 
Best regards,
Carole B.
Labels (2)
5 Replies
Anonymous
Not applicable

Hi,


Could you please follow up these steps to sync up these external libraries with commandline?


1: Open a remote project from studio (make sure that your SVN/ Nexus is running well at the same time)


2: Install your required external libraries by using Module view(Window-->Show View-->Talend-->Modules)


In this way, SVN/ Nexus will sync up your required external libraries automatically and then commandline will get them from .m2 repository to deploy your job.


Please take a look at my screenshots and let us know if it works.


Best regards


Sabrina



0683p000009MCug.png 0683p000009MCul.png
_AnonymousUser
Specialist III
Specialist III
Author

Hello,
Thank you for the reply.
I've already try with those steps and the result is the same: there is no synchronization to Nexus. 
Can you confirm me that for the method using the view "Modules", I must click on "Import external jars" ? When I use it and refresh. I don't see my jar added. I have no error in the studio, but I have error in the log file in "{workspace}/.metadata/.log" :
!ENTRY org.talend.platform.logging 2 0 2017-01-09 10:48:45.605

!MESSAGE 2017-01-09 10:48:45,604 WARN  org.talend.commons.exception.CommonExceptionHandler  - Missing module group definition: camel-kafka


!ENTRY org.talend.platform.logging 1 0 2017-01-09 10:48:46.983

!MESSAGE 2017-01-09 10:48:46,982 INFO  org.eclipse.m2e.core.internal.lifecyclemapping.LifecycleMappingFactory  - Using NULL lifecycle mapping for MavenProject: org.talend.master.etl_qa_test:code.Master:6.2.1 @ C:\Users\{me}\Documents\TALEND\6.2.1\workspace\.Java\pom.xml.
=> This log appear when I try to add the library by Modules view
Best regards,
Carole
_AnonymousUser
Specialist III
Specialist III
Author

Hello,
For information, my problem was due to the nexus url. To fix it, the url must not use "localhost" even if the nexus and tac are on the same host.
Regards.
Anonymous
Not applicable

Hi,
Thanks for your feedback. Can we consider this topic as resolved?
Best regards
Sabrina
Anonymous
Not applicable

Ideally if you give correct Username, password, URL it should work.

 

0683p000009M7Mt.png

If you are using Talend CI/CD then 

Try adding these parameters to the Maven options for release artifacts:

-Dproject.distributionManagement.repository.url=http://localhost:8081/repository/releases/

-Dproject.distributionManagement.repository.id=releases

 

Or the following parameters for snapshot artifacts:

-Dproject.distributionManagement.snapshotRepository.url=http://localhost:8081/repository/snapshots/

-Dproject.distributionManagement.snapshotRepository.id=snapshots