# Proxy-Konfiguration für Talend CommandLine

Talend ermöglicht Ihnen die Konfiguration eines Proxy-Servers für Talend CommandLine durch Bearbeitung der Maven-Einstellungsdatei und Hinzufügen neuer Generierungsparameter.

Gehen Sie zur Konfiguration eines Proxy-Servers vor wie folgt:

* Fügen Sie in der Section &lt;settings&gt; der Maven-Einstellungsdatei Folgendes hinzu:
  ```
    <proxies>
      <proxy>
        <id>httpProxy</id>
        <active>true</active>
        <protocol>http</protocol>
        <host><proxy_host></host>
        <port><proxy_port></port>
        <username><username></username>
        <password><password></password>
        <nonProxyHosts>localhost</nonProxyHosts>
      </proxy>
      <proxy>
        <id>httpsProxy</id>
        <active>true</active>
        <protocol>https</protocol>
        <host><proxy_host></host>
        <port><proxy_port></port>
        <username><username></username>
        <password><password></password>
        <nonProxyHosts>localhost</nonProxyHosts>
      </proxy>
    </proxies>
  ```
* Fügen Sie im Maven-Befehl zur Generierung Ihres Projekts folgende Parameter hinzu:
  ```
  -Dhttp.proxyHost=<proxy_host> 
  -Dhttp.proxyPort=<proxy_port> 
  -Dhttp.proxyUser=<username> 
  -Dhttp.proxyPassword=<password> 
  -Dhttp.nonProxyHosts=localhost 
  -Dhttps.proxyHost=<proxy_host> 
  -Dhttps.proxyPort=<proxy_port> 
  -Dhttps.proxyUser=<username> 
  -Dhttps.proxyPassword=<password> 
  -Dhttps.nonProxyHosts=localhost
  -Djdk.http.auth.tunneling.disabledSchemes= 
  ```

  Beispiel:
  ```
  mvn org.talend.ci:builder-maven-plugin:<version>:generateAllPoms 
  -s <studio_path>\configuration\maven_user_settings.xml 
  <!-- This parameter is only supported for users with Talend Studio 8.0.1 R2024-04 or lower 
  -Dtalend.studio.p2.base=https://<p2_site>/base --> 
  -Dtalend.studio.p2.update=https://<p2_site>/update/ 
  -Dlicense.path=<license_path> 
  -Dhttp.proxyHost=<proxy_host> 
  -Dhttp.proxyPort=<proxy_port> 
  -Dhttp.proxyUser=<username> 
  -Dhttp.proxyPassword=<password> 
  -Dhttp.nonProxyHosts=localhost 
  -Dhttps.proxyHost=<proxy_host> 
  -Dhttps.proxyPort=<proxy_port> 
  -Dhttps.proxyUser=<username> 
  -Dhttps.proxyPassword=<password> 
  -Dhttps.nonProxyHosts=localhost
  -Djdk.http.auth.tunneling.disabledSchemes= 
  ```

Informationen zum Parameter -Djdk.http.auth.tunneling.disabledSchemes:

Für den Zugriff auf den Proxy-Server wird nur die Basisauthentifizierung unterstützt. Da JVM die Basisauthentifizierung standardmäßig deaktiviert, müssen Sie diesen Parameter in Ihren CI-Befehlen hinzufügen, um sie verwenden zu können. Das Feld des Parameterwerts können Sie nach Bedarf leer lassen.

Hinweis für Headless Linux-Benutzer:

Wenn Sie CI-Befehle ohne installierte GUI ausführen, erhalten Sie unter Umständen folgenden Fehler:

```
[INFO] !ENTRY org.eclipse.equinox.security 4 0 YYYY-MM-DD HH:MM:SS
[INFO] !MESSAGE No password was found. Value of "pass" is being stored as a non-encrypted value in the node  "/org.eclipse.core.net.proxy.auth/HTTP".
```

Dieser Fehler ist nicht blockierend, fungiert jedoch als Warnung, um darauf zu verweisen, dass das Serverpasswort auf nicht sichere Weise gespeichert ist. Um das zu berichtigen, können Sie den Parameter -Declipse.password in Maven-Befehlen hinzufügen.

Beispiel:

```
mvn org.talend.ci:builder-maven-plugin:<version>:generateAllPoms 
-s <studio_path>\configuration\maven_user_settings.xml 
<!-- This parameter is only supported for users with Talend Studio 8.0.1 R2024-04 or lower 
-Dtalend.studio.p2.base=https://<p2_site>/base -->
-Dtalend.studio.p2.update=https://<p2_site>/update/ 
-Dlicense.path=<license_path> 
-Dhttp.proxyHost=<proxy_host> 
-Dhttp.proxyPort=<proxy_port> 
-Dhttp.proxyUser=<username> 
-Dhttp.proxyPassword=<password> 
-Dhttp.nonProxyHosts=localhost 
-Dhttps.proxyHost=<proxy_host> 
-Dhttps.proxyPort=<proxy_port> 
-Dhttps.proxyUser=<username> 
-Dhttps.proxyPassword=<password> 
-Dhttps.nonProxyHosts=localhost 
-Djdk.http.auth.tunneling.disabledSchemes= 
-Declipse.password=<path_to_master_password_file>
```

In der entsprechenden [Maven Apache-Dokumentation](https://maven.apache.org/guides/mini/guide-proxies.html) finden Sie weitere Informationen zur Proxy-Konfiguration.