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 270841 - Gratuitous <type>jar</type> included when adding dependency to POM
Summary: Gratuitous <type>jar</type> included when adding dependency to POM
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: Dev
Hardware: PC Linux
: P4 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords: PATCH_AVAILABLE
Depends on:
Blocks:
 
Reported: 2017-06-09 14:57 UTC by Jesse Glick
Modified: 2017-07-20 17:51 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Proposed patch (1.48 KB, patch)
2017-06-09 14:59 UTC, Jesse Glick
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2017-06-09 14:57:56 UTC
20170504 but for as long as I can recall, when you use for example the editor hint to add a Maven dependency corresponding to an unresolvable symbol, and the dependency is of type `jar` (which it usually is), the `<dependency>` element includes `<type>jar</type>` which is just noise since that is the default in Maven.
Comment 1 Jesse Glick 2017-06-09 14:59:25 UTC
Created attachment 164497 [details]
Proposed patch
Comment 2 Tomas Stupka 2017-07-17 17:14:08 UTC
fixed in jet-main #782ede862dd3
Comment 3 Tomas Stupka 2017-07-17 17:15:32 UTC
thanks for the patch
Comment 4 Quality Engineering 2017-07-20 17:51:08 UTC
Integrated into 'main-silver', will be available in build *201707201608* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/782ede862dd3
User: Tomas Stupka <tstupka@netbeans.org>
Log: Issue #270841 - Gratuitous <type>jar</type> included when adding dependency to POM