You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Nicolò Boschi - Diennea <ni...@diennea.com.INVALID> on 2020/07/01 12:22:24 UTC

Maven dependencies automatically added

Hi,
Sometimes while working on my maven projects on netbeans, I find out that Netbeans added some dependencies that I never requested. These dependencies are always the same.

<dependency>
            <groupId>org.seleniumhq.selenium</groupId>
            <artifactId>selenium-java</artifactId>
            <scope>test</scope>
            <version>2.44.0</version>
        </dependency>
        <dependency>
            <groupId>com.opera</groupId>
            <artifactId>operadriver</artifactId>
            <scope>test</scope>
            <version>1.5</version>
            <exclusions>
                <exclusion>
                    <groupId>org.seleniumhq.selenium</groupId>
                    <artifactId>selenium-remote-driver</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>test</scope>
            <version>4.11</version>
        </dependency>


How I can avoid it? Maybe the responsible is a plugin?
In this example the project already has Junit as dependency but is declared in the parent project

I use v11.3 with jdk14


Nicolò Boschi

Software Engineer @ Diennea – MagNews

Tel.: (+39) 0546 066100 - Int. - Mob.:
Viale G.Marconi 30/14 - 48018 Faenza (RA)


[Diennea | MagNews]

www.diennea.com<https://www.diennea.com/?utm_source=Firma&utm_medium=Web&utm_campaign=Firma_Outlook> | www.magnews.it<https://www.magnews.it/?utm_source=Firma&utm_medium=Web&utm_campaign=Firma_Outlook>

[In]<https://www.linkedin.com/company/diennea---magnews/?utm_source=Firma&utm_medium=Web&utm_campaign=Firma_Outlook>

[Tw]<https://twitter.com/DienneaMagNews?utm_source=Firma&utm_medium=Web&utm_campaign=Firma_Outlook>

[Fb]<https://www.facebook.com/DienneaMagNews/?utm_source=Firma&utm_medium=Web&utm_campaign=Firma_Outlook>

[NL]<https://www.magnews.it/newsletter/?utm_source=Firma&utm_medium=Web&utm_campaign=Firma_Outlook>





________________________________

CONFIDENTIALITY & PRIVACY NOTICE
This e-mail (including any attachments) is strictly confidential and may also contain privileged information. If you are not the intended recipient you are not authorised to read, print, save, process or disclose this message. If you have received this message by mistake, please inform the sender immediately and destroy this e-mail, its attachments and any copies. Any use, distribution, reproduction or disclosure by any person other than the intended recipient is strictly prohibited and the person responsible may incur in penalties.
The use of this e-mail is only for professional purposes; there is no guarantee that the correspondence towards this e-mail will be read only by the recipient, because, under certain circumstances, there may be a need to access this email by third subjects belonging to the Company.

Re: Maven dependencies automatically added

Posted by Neil C Smith <ne...@apache.org>.
On Wed, 1 Jul 2020 at 13:22, Nicolò Boschi - Diennea
<ni...@diennea.com.invalid> wrote:
> Sometimes while working on my maven projects on netbeans, I find out that Netbeans added some dependencies that I never requested. These dependencies are always the same.
...
>
> How I can avoid it? Maybe the responsible is a plugin?
>
> In this example the project already has Junit as dependency but is declared in the parent project

You might want to read / join in on
https://lists.apache.org/thread.html/ra3b5dc328a3edbd358ae98b5032aad309ed381a3c1b390c873c0328c%40%3Cdev.netbeans.apache.org%3E

Best wishes,

Neil

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


RE: Maven dependencies automatically added

Posted by "Greenberg, Gary" <gg...@visa.com.INVALID>.
Strange,
I am working with Maven projects all the time and it never adds anything like that.
Actually, starting from 11.1 it never add anything I want it to add either.
I.e. back with NB 8.2, if I specify non-JDK class it asked me if I want to search for the dependencies
and find them and present me a list of possible matches and add what I selects into the POM.
Now, with NB12 and OpenJDK14 this list is always empty, even when dependency is already in my .m2
repository. Now I have to edit my pom.xml manually.

Gary Greenberg
Staff Software Engineer
Data Product Development, BI-A
E: ggreenbe@visa.com
M: 650-269-7902

[EmailSig-TaglineVersion]

From: Nicolò Boschi - Diennea <ni...@diennea.com.INVALID>
Sent: Wednesday, July 1, 2020 5:22 AM
To: users@netbeans.apache.org
Subject: Maven dependencies automatically added



How I can avoid it? Maybe the responsible is a plugin?
In this example the project already has Junit as dependency but is declared in the parent project

I use v11.3 with jdk14


Nicolò Boschi
Software Engineer @ Diennea – MagNews
Tel.: (+39) 0546 066100 - Int. - Mob.:
Viale G.Marconi 30/14 - 48018 Faenza (RA)

[Diennea | MagNews]
www.diennea.com<https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.diennea.com%2F%3Futm_source%3DFirma%26utm_medium%3DWeb%26utm_campaign%3DFirma_Outlook&data=02%7C01%7Cggreenbe%40visa.com%7C7b6c9d1ef4104feec02408d81db97722%7C38305e12e15d4ee888b9c4db1c477d76%7C0%7C1%7C637292029691449231&sdata=CgBtFwZ4juS8hY4vnWXTc0A0LwYw2zp4Hrm%2Br1%2FpmkU%3D&reserved=0> | www.magnews.it<https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.magnews.it%2F%3Futm_source%3DFirma%26utm_medium%3DWeb%26utm_campaign%3DFirma_Outlook&data=02%7C01%7Cggreenbe%40visa.com%7C7b6c9d1ef4104feec02408d81db97722%7C38305e12e15d4ee888b9c4db1c477d76%7C0%7C1%7C637292029691459224&sdata=mQxAkVVe5VS5hffaV2f0rfWeVHO6T2lyNT2Oo7Rxhlo%3D&reserved=0>
[In]<https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Fdiennea---magnews%2F%3Futm_source%3DFirma%26utm_medium%3DWeb%26utm_campaign%3DFirma_Outlook&data=02%7C01%7Cggreenbe%40visa.com%7C7b6c9d1ef4104feec02408d81db97722%7C38305e12e15d4ee888b9c4db1c477d76%7C0%7C1%7C637292029691459224&sdata=m03sfFAuIsrkJFUWO0gwoSsMQ99WHxRrF79N%2BzOoEN4%3D&reserved=0>
[Tw]<https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2FDienneaMagNews%3Futm_source%3DFirma%26utm_medium%3DWeb%26utm_campaign%3DFirma_Outlook&data=02%7C01%7Cggreenbe%40visa.com%7C7b6c9d1ef4104feec02408d81db97722%7C38305e12e15d4ee888b9c4db1c477d76%7C0%7C1%7C637292029691469218&sdata=bVvxuIpQSkVOk%2Bkhffyx%2FAUNak%2BHxp8LsyXFNfn2uig%3D&reserved=0>
[Fb]<https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2FDienneaMagNews%2F%3Futm_source%3DFirma%26utm_medium%3DWeb%26utm_campaign%3DFirma_Outlook&data=02%7C01%7Cggreenbe%40visa.com%7C7b6c9d1ef4104feec02408d81db97722%7C38305e12e15d4ee888b9c4db1c477d76%7C0%7C1%7C637292029691469218&sdata=8DeH9ZZlEUfQ8zWiZ79eEKt14cTFXiLIk%2BzVy%2B61nK4%3D&reserved=0>
[NL]<https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.magnews.it%2Fnewsletter%2F%3Futm_source%3DFirma%26utm_medium%3DWeb%26utm_campaign%3DFirma_Outlook&data=02%7C01%7Cggreenbe%40visa.com%7C7b6c9d1ef4104feec02408d81db97722%7C38305e12e15d4ee888b9c4db1c477d76%7C0%7C1%7C637292029691469218&sdata=OslcFyFiT2Yr3Lg83PEs%2BeC7z0QGh1RR%2FJqcQMxdEwk%3D&reserved=0>



________________________________

CONFIDENTIALITY & PRIVACY NOTICE
This e-mail (including any attachments) is strictly confidential and may also contain privileged information. If you are not the intended recipient you are not authorised to read, print, save, process or disclose this message. If you have received this message by mistake, please inform the sender immediately and destroy this e-mail, its attachments and any copies. Any use, distribution, reproduction or disclosure by any person other than the intended recipient is strictly prohibited and the person responsible may incur in penalties.
The use of this e-mail is only for professional purposes; there is no guarantee that the correspondence towards this e-mail will be read only by the recipient, because, under certain circumstances, there may be a need to access this email by third subjects belonging to the Company.