Zu Hauptinhalt springen

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 <settings> 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 
    -Dtalend.studio.p2.base=http://<p2_site>/base/ 
    -Dtalend.studio.p2.update=http://<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 
-Dtalend.studio.p2.base=http://<p2_site>/base/ 
-Dtalend.studio.p2.update=http://<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 finden Sie weitere Informationen zur Proxy-Konfiguration.

Hat diese Seite Ihnen geholfen?

Wenn Sie Probleme mit dieser Seite oder ihren Inhalten feststellen – einen Tippfehler, einen fehlenden Schritt oder einen technischen Fehler –, teilen Sie uns bitte mit, wie wir uns verbessern können!