NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

maven doesn't resolve properties (with $)

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
marteno_rodia



Joined: 08 Aug 2009
Posts: 7
Location: Warsaw, PL

PostPosted: Sun Nov 27, 2011 9:11 am    Post subject: maven doesn't resolve properties (with $) Reply with quote

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

PostPosted: Sun Nov 27, 2011 9:15 am    Post subject: Reply with quote

Admins,
Please, delete this post (I mean one copy of it). It is doubled due to network error Sad

MR
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo