NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
marteno_rodia
Joined: 08 Aug 2009 Posts: 7 Location: Warsaw, PL
|
Posted: Sun Nov 27, 2011 9:11 am Post subject: maven doesn't resolve properties (with $) |
|
|
Hello, I'm a little new to Maven, and people who usually support me in using it don't use Netbeans. I'm using Netbeans 7.0.1 and a slight modification of Maven 3.0.3 (pointed by: Tools->Options->Misc->Maven->Maven Home).
During last days, our project team started to use Maven properties in POM files. Maven builds projects just fine, but Netbeans IDE shows many errors. I think it the IDE can't resolve properties (defined in Maven's settings.xml file or parent's POM file) because it tries to download version of a project ${something-dep-versions-parent-pom.version} instead of resolving it to 1.0.0, which the external Maven does.
I experienced a similar problem (errors in IDE and successful builds) after migration to Netbeans 7 from 6.9 and to Maven 3 from 2.2.1. Then I copied M2_HOME/conf/settings.xml file to directory USER/.m2, which was completely a satisfactory solution. The file is still residing in .m2 directory now, but the problem has returned.
Any suggestions? Is the feature of resolving properties really so exotic to maven 3.0.3?
More general question is: why does Netbeans seem to use two completely different versions of Maven? The first one for building projects, and the second one for displaying its contents, and an external Maven can be used in the first case only. Am I right? |
|
| Back to top |
|
 |
marteno_rodia
Joined: 08 Aug 2009 Posts: 7 Location: Warsaw, PL
|
Posted: Sun Nov 27, 2011 9:15 am Post subject: |
|
|
Admins,
Please, delete this post (I mean one copy of it). It is doubled due to network error
MR |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|