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.
In the project's pom.xml, I specify a dependency to JDK's "tools.jar" with system scope: <dependency> <groupId>com.sun</groupId> <artifactId>tools</artifactId> <version>1.6</version> <scope>system</scope> <systemPath>${jdk16_x86_Path}/lib/tools.jar</systemPath> </dependency> The property jdk16_x86_Path is defined in the current user's private settings.xml (under $HOME/.m2/settings.xml as follows: <jdk16_x86_Path>/usr/lib/jvm/java-6-sun</jdk16_x86_Path> However Netbeans complains about a system-scoped dependency having a relative path while the project can be built successfully (and obviously maven is happy with this). When I substitute the property with its actual value in the project's pom.xml, Netbeans is OK with it. This bug appeared in NB 7.0 M2 - in 6.9 and previous 6.10 development build it was working fine.
Probably related to bug #154507, though that deals with environment variables. (In reply to comment #0) > the project can be built successfully (and obviously maven is happy with this) Don't be too sure. At least in the case of Maven plugins, you cannot run a plugin whose POM included a system-scope dependency of relative path, even when the plugin could be built from source just fine: other Maven processes (perhaps on someone else's machine) will read the *.pom from the local repo, see an unevaluated property or invalid relative path, and choke. Not sure if this problem applies to other usages of a built artifact. I would recommend trying ${java.home}/../lib/tools.jar (perhaps controlled by a profile) rather than relying on a path in settings.xml, at least until there is some resolution to <http://jira.codehaus.org/browse/MNG-1867>.
Reproducible, but so far I have no clue where this is supposed to be fixed. MavenEmbedder does call MavenExecutionRequest.setUserSettingsFile with the expected value.
*** Bug 154507 has been marked as a duplicate of this bug. ***
core-main #ee31298e328a
*** Bug 191309 has been marked as a duplicate of this bug. ***