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 255949 - Parent pom.xml property <netbeans.hint.licensePath> not inherited by child poms
Summary: Parent pom.xml property <netbeans.hint.licensePath> not inherited by child poms
Status: RESOLVED INVALID
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.0.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-15 12:00 UTC by desmond_kirrane
Modified: 2016-06-23 09:49 UTC (History)
1 user (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 desmond_kirrane 2015-10-15 12:00:20 UTC
When I add this pom property to the parents pom.xml

<netbeans.hint.licensePath>${project.basedir}/licenseheader.txt</netbeans.hint.licensePath>

The child poms projects do not pick it up and use the parents license header.
Comment 1 Tomas Stupka 2016-06-23 09:49:12 UTC
the property is honored and resolved by maven in the scope of the particular child module
${project.basedir} points then to {child.module.basedir}

try instead ${project.parent.basedir}