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.

Bug 262591 - Netbeans adds selenium to pom.xml
Summary: Netbeans adds selenium to pom.xml
Status: NEW
Alias: None
Product: utilities
Classification: Unclassified
Component: Selenium (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal with 4 votes (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-27 16:57 UTC by _ gtzabari
Modified: 2017-10-27 10:49 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ gtzabari 2016-06-27 16:57:48 UTC
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.
Comment 1 gdaniels13 2016-11-04 19:28:07 UTC
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.
Comment 2 hmlnarik 2017-08-28 06:34:45 UTC
I'm facing the same bug