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.
Created attachment 114645 [details] top maven project, variation 0 Attaching two zips: nbbug and nbbug1 containing two variations of the same maven project: *top pom *mavenproject1 *sub pom **mavenproject2 In both mavenproject1 and mavenproject1 there is a dependency that is duplicated causing maven to warn you of the problem when compiling. The Output window will say something like: Some problems were encountered while building the effective model for com.mycompany.top:mavenproject1:jar:1.0-SNAPSHOT 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: log4j:log4j:jar -> duplicate declaration of version (?) @ line 23, column 19 which does show you the correct location of the issue, but if you click on the hyperlink, it will go into the top pom, not the pom of the module of where the dependency is duplicated.
Created attachment 114646 [details] top maven project, variation 1
Because Maven itself offers no file path: [WARNING] Some problems were encountered while building the effective model for com.mycompany.top:mavenproject1:jar:1.0-SNAPSHOT [WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: log4j:log4j:jar -> duplicate declaration of version (?) @ line 23, column 19 [WARNING] [WARNING] Some problems were encountered while building the effective model for com.mycompany.top.sub:mavenproject2:jar:1.0-SNAPSHOT [WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.slf4j:slf4j-log4j12:jar -> duplicate declaration of version (?) @ line 28, column 19 so the IDE's hyperlinker just guesses that line/column numbers are in the POM you started the build with. Not trivially solvable; loading project models for all submodules to find matching coordinates when a hyperlink is clicked would be possible, but potentially slow on big trees.
Makes sense. Would it be possible to remove the hyper-linking altogether then? That would apply, i guess, to all hyperlinks in the Output Window that happen to not hyperlink correctly, for the sake of not being confusing.
Possible, though I would prefer to see if it can be fixed properly.
fixed as part of https://hg.netbeans.org/core-main/rev/71289f0dadeb only fixed when build occurs with maven 3.x, not 2.x