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 195914 - Maven pom editor tab is not resolving the artifactId
Summary: Maven pom editor tab is not resolving the artifactId
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.0
Hardware: PC Other
: P4 normal (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks: 154508
  Show dependency tree
 
Reported: 2011-02-23 22:31 UTC by rptmaestro
Modified: 2012-07-20 10:12 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of the the pom.xml editor's tab (5.51 KB, image/png)
2011-02-23 22:34 UTC, rptmaestro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rptmaestro 2011-02-23 22:31:28 UTC
The IDE is not properly resolving the artifact name for the pom.xml file's editor tab. For the following project, the pom.xml editor tab has the label "pom.xml [${parent.artifactId}-web]"

	<parent>
		<artifactId>lufas</artifactId>
		<groupId>org.myorg.ics.lufas</groupId>
		<version>2.0</version>
	</parent>

	<modelVersion>4.0.0</modelVersion>
	<artifactId>${parent.artifactId}-web</artifactId>
	<packaging>war</packaging>
Comment 1 rptmaestro 2011-02-23 22:34:21 UTC
Created attachment 106382 [details]
Screenshot of the the pom.xml editor's tab
Comment 2 Jesse Glick 2011-02-28 15:19:05 UTC
Probably WONTFIX since a fix would involve loading the project model, and the editor tab information is based solely on a literal parse of pom.xml. Might replace property substitutions with ellipses or similar.
Comment 3 Milos Kleint 2012-07-20 10:12:12 UTC
I guess there's only limited number of sane expressions one can use in the artifactId.

but looking at current maven codebase [1], having expression in artifactId, groupId or version (or relevant parent properties) triggers a warning for both maven2 and maven3

[1]
http://svn.apache.org/repos/asf/maven/maven-3/trunk/maven-model-builder/src/main/java/org/apache/maven/model/validation/DefaultModelValidator.java

-> wontfix, not worth supporting something considered not correct.