Hi Nuwan,

Please find answers inline below.

On Tue, Sep 21, 2021 at 12:45 AM Nuwan Jayawardene <nsga...@gmail.com>
wrote:

> [image: image.gif]Hi All,
>
>    1. I did some further work on this and tried importing the new version
>    of JUnit (version 5) using the following snippet in the pom.xml;[image:
>    image.png]
>    however, this did not prompt the newly added dependency to be
>    downloaded after a mvn clean install.
>    Would greatly appreciate some thoughts on how to rectify this.
>
> This version of the library might be already in your local m2 repo (.m2
directory).

>
>    1. I also noticed that the repositories included in the pom.xml is
>    only the WSO2 public maven repo and Maven central is not included.
>    Is it allowed to include Maven central as well so there's access to a
>    wider no. of external libraries?
>
> Yes. We can get libraries from Maven central.


> Kind regards
>
>
>
>
>
>
> On Fri, Sep 17, 2021 at 1:49 AM Nuwan Jayawardene <nsga...@gmail.com>
> wrote:
>
>> Hi All,
>> I've a couple of doubts to clarify on importing external libraries into
>> Synapse.
>>
>>    1. Is there a vouching process to see if a particular library is
>>    suitable to be used (other than the license).
>>
>> The license is the most important factor. If you are introducing a new
dependency, please initiate a mail and discuss it with the community before
proceeding.

>
>>    1. When adding a new dependency after including it in the pom.xml as
>>    follows...
>>    [image: image.png]
>>    is running a mvn clean install or mvn install -Dmaven.test.skip=true 
>> sufficient
>>    or do we need to delete the .m2 directory as well and redownload all the
>>    dependencies?
>>
>> If you already have the particular version of the library in your local
m2 repo (.m2 directory) it won't download again until you delete it from
the .m2 directory.

>
>>    1.
>>    I tried the 2 former commands however it doesn't seem to
>>    have downloaded the library from maven central.
>>
>> Would appreciate your thoughts on this.
>> Regards
>> --
>> *Nuwan Jayawardene*
>> Assistant Lecturer, Informatics Institute of Technology (IIT).
>> Research Assistant, University of Moratuwa
>>
>> https://www.linkedin.com/m/in/nuwanjaya
>>
>>
>>
>
> --
> *Nuwan Jayawardene*
> Assistant Lecturer, Informatics Institute of Technology (IIT).
> Research Assistant, University of Moratuwa
>
> https://www.linkedin.com/m/in/nuwanjaya
>
>

-- 
*Isuru Udana*
Associate Director/Architect



*; WSO2 Inc.; http://wso2.com <http://wso2.com>email: isud...@gmail.com
<isud...@gmail.com> *

Reply via email to