This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Product Version: NetBeans IDE 8.1 (Build 201510222201) Updates: NetBeans IDE is updated to version NetBeans 8.1 Patch 1 Java: 1.8.0_92; Java HotSpot(TM) 64-Bit Server VM 25.92-b14 Runtime: Java(TM) SE Runtime Environment 1.8.0_92-b14 System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb) User directory: D:\dev\netbeans\user\8.1 Cache directory: D:\dev\netbeans\cache\8.1 After working with a Maven project for a while, Netbeans keeps on adding the following lines to pom.xml: <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> I'm not sure which action I am triggering that adds this lines. All I know is that I am not explicitly asking for this (I am not working with Selenium at all, for that matter) and somehow it ends up in my pom.xml.
You can reproduce it by using the hotkey ctrl+alt+t (which should switch between test class and the class being tested) in a non test class (eg there is no class that lines with the test class) inside of the test packages.
I'm facing the same bug