Skip to content

Setting useDefaultRepo=false in ${wlp.install.dir}/etc/repositories.properties ensures featureUtility does not install from Maven Central #8334

@adityarao2005

Description

@adityarao2005

Document: featureUtility commands
http://openliberty.io/docs/latest/reference/command/featureUtility-commands.html

The following behavior needs to be added in accordance to these 2 issues:

You can set the following in ${wlp.install.dir}/etc/repositories.properties:

useDefaultRepository=false

and with the following invalid liberty repo in ${wlp.install.dir}/etc/featureUtility.properties:

myRepo.url=http://alt.mycomp.com/maven2

the output will be something similar:

> featureUtility install mpHealth-2.2
Initializing ...
Using 8 threads to download artifacts.
http://alt.mycomp.com/maven2 cannot be connected
<---------------------> 0.00%
com.ibm.ws.install.InstallException: CWWKF1248E: One of the repositories that is specified in the configuration cannot be reached. Verify that your computer has network access and firewalls are configured correctly, then try the action again. If the connection still fails, the repository server might be temporarily unavailable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions