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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
yoxler
Contributor III
Contributor III

Maven cannot find JARs

Hi,

 

I've got problem with building job on Jenkins. The project juns just fine in Studio and it is pushed to GIT.

 

But when I try to build it using Jenkins I get this error message:

1. ERROR in C:\jenkins\workspace\aep\deploy\aep-talend-SNPAC\SNPAC_2\poms\jobs\process\fetchfile_0.1\src\main\java\snpac_2\fetchfile_0_1\FetchFile.java (at line 1646)
com.enterprisedt.net.ftp.FTPClient conn = (com.enterprisedt.net.ftp.FTPClient) connObj;
^^^^^^^^^^^^^^^^
com.enterprisedt cannot be resolved to a type

 

I figured out so much that it cannot find some JARs. We have a Jenkins server and a command line server, however on the command line we have a Jenkins slave so the build is run on the command line.

 

The JARs that it is looking for is lokated on the command line server:
c:\Talend\7.0.1\cmdline\studio\plugins\org.talend.libraries.ftp_7.0.1.20180411_1414\lib\

 

I have no idea how jenkins should find the JARs needed to build the project.

 

I do specify the path to the command line in the Maven config:
-X deploy -Dgeneration.type=local -Dproduct.path="C:\Talend\7.0.1\cmdline\studio" -DaltDeploymentRepository=snapshotRepo::default::http://nexus.ourserver.com/repository/maven-snapshots/

 

Any ideas?

Labels (3)
1 Solution

Accepted Solutions
yoxler
Contributor III
Contributor III
Author

Hi,

 

Yes project and environment was set up correct.

 

I did found the issue. As I mentioned the job did run without error in Studio. However when looking in the Code I could se errors, strange that it still ran.

 

I found which component(in this case ftpclose) caused the error. Just removed it and put a new ftpclose component and the problem resolved it self. 

 

View solution in original post

3 Replies
Anonymous
Not applicable

Hello,

Are you following this instructions to setup a Jenkins BuildSources job?

https://help.talend.com/reader/mpVLyjeAbBh7eHWdz_0SlQ/HF8MMjUq3bllDlzOz2lqxw

Best regards

Sabrina

 

yoxler
Contributor III
Contributor III
Author

Hi,

 

Yes project and environment was set up correct.

 

I did found the issue. As I mentioned the job did run without error in Studio. However when looking in the Code I could se errors, strange that it still ran.

 

I found which component(in this case ftpclose) caused the error. Just removed it and put a new ftpclose component and the problem resolved it self. 

 

Anonymous
Not applicable

Hello,

Feel free to let us know if this error still reproduces on your end.

Best regards

Sabrina