1 Reply Latest reply on Aug 20, 2019 4:54 AM by jdenise

    How to run galleon in a proxy environment

    kk.ogura

      Dear community,

       

      I tried to install WildFly using galleon.sh(4.0.3.Final), but I couldn't connect to the repository on the Internet. The following settings were made because this was a proxy environment, but the settings had no effect.

       

      If you have successfully run galleon.sh in a proxy environment, I would like you to share the method.

       

      $ cat /home/vagrant/.m2/repository/settings.xml

      <settings>

        <proxies>

          <proxy>

            <active>true</active>

            <id>myHttpProxy</id>

            <protocol>http</protocol>

            <host>examplehost</host>

            <port>8080</port>

            <username>example</username>

            <password>example</password>

          </proxy>

          <proxy>

            <active>true</active>

            <id>myHttpsProxy</id>

            <protocol>https</protocol>

            <host>examplehost</host>

            <port>8080</port>

            <username>example</username>

            <password>example</password>

          </proxy>

        </proxies>

      </settings>

       

      $ ./galleon.sh

      [bin]$ maven set-settings-file /home/vagrant/.m2/repository/settings.xml

      [bin]$ maven get-info

      ======================= ==============================================================

      Configuration Item      Value                                                        

      ======================= ==============================================================

      Default release policy  daily                                                        

      Default snapshot policy never                                                        

      Enable release          true                                                         

      Enable snapshot         false                                                        

      Local repository        /home/vagrant/.m2/repository                                 

      Maven xml settings      /home/vagrant/.m2/repository/settings.xml                    

      Offline                 false                                                        

      Remote repositories     jboss-public-repository-group

                                            url=https://repository.jboss.org/nexus/content/groups/public/

                                            type=default

                                            release=true

                                            releaseUpdatePolicy=daily

                                            snapshot=false

                                            snapshotUpdatePolicy=never

                                           maven-central

                                            url=https://repo1.maven.org/maven2/

                                            type=default

                                            release=true

                                            releaseUpdatePolicy=daily

                                            snapshot=false

                                            snapshotUpdatePolicy=never

       

      [bin]$ install wildfly:current --dir=my-wildfly-server

      Error: Install failed.

      * Failed to resolve Maven universe org.jboss.universe:community-universe

        * Failed to determine the latest version of org.jboss.universe:community-universe:jar:[0.0,). Make sure the remote Maven repository is properly configured and available.

       

      Thanks,

      kk.ogura