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 249118 - Creating Test Always Adds TestNG Dependency to Maven Sub-Projects
Summary: Creating Test Always Adds TestNG Dependency to Maven Sub-Projects
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.0.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-04 17:30 UTC by saden1
Modified: 2015-09-03 01:25 UTC (History)
0 users

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 saden1 2014-12-04 17:30:35 UTC
I have a multi-project maven project where the parent pom.xml declares TestNG as a test scoped dependency and all of its sub-projects inherit this dependency. Whenever I create a test class in a sub-project Netbeans appears to simply check if the sub-project explicitly declares testng dependency and if it does not adds it as a dependency regardless of whether the parent project declares it.

Rather than simply check to see if the sub-project contains testng dependency and adding it if it not present Netbeans should check the sub-project's effective dependencies for the pretense of TestNG dependency.
Comment 1 Theofanis Oikonomou 2015-09-02 16:14:42 UTC
Changeset: e089f3b789a3
Author:    Theofanis Oikonomou <theofanis@netbeans.org>
Date:      2015-09-02 18:14
Message:
Comment 2 Theofanis Oikonomou 2015-09-02 16:15:21 UTC
Should work as expected now. Please verify. Thank you
Comment 3 Quality Engineering 2015-09-03 01:25:33 UTC
Integrated into 'main-silver', will be available in build *201509030002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/e089f3b789a3
User: Theofanis Oikonomou <theofanis@netbeans.org>
Log: Task #249118 - Creating Test Always Adds TestNG Dependency to Maven Sub-Projects