In version 6.0.0, Talend Studio uses Maven to build a Job. At start up, the Talend Studio will check the status of the Maven JARs required for building the job. If necessary, Talend Studio will try to download them automatically from the Internet. If the Maven JARs are not downloaded successfully, you may get an error when building the Job, or the archive file may not be created without displaying any error.
If you are behind a proxy, you need to configure its access in the Maven setting file to ensure that the Maven JARs are downloaded successfully. This article demonstrates how to configure a proxy in the Maven setting file.
This article applies only to v6.0.0. Since v6.0.1, the Maven repository is delivered natively with the Talend Studio and already contains all required Maven JARs. However, with 6.1 a new parameter was introduced for advanced users. See Changing the Maven repository location, below.
In Talend Studio, Click Windows > Preferences > Maven > User Settings.
In the maven setting file, add the following snippet, as shown in https://maven.apache.org/settings.html#Proxies.
<?xml version="1.0" encoding="UTF-8"?> <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> <proxies> <proxy> <id>myproxy</id> <active>true</active> <protocol>http</protocol> <host>proxy.somewhere.com</host> <port>8080</port> <username>proxyuser</username> <password>somepassword</password> <nonProxyHosts>*.google.com|ibiblio.org</nonProxyHosts> </proxy> </proxies> </settings>
By default, all artifacts are stored locally to the Studio (or the Commandline).
If the need arises, you may want to change the location of the Maven repository to a remote location based on the user setting.
To do so, simply change maven.repository=local to maven.repository=global. In this case, artifacts will then be stored in <user>/.m2, which will then require the user to have admin rights.