NetBeans Forums

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

MAVEN_OPTS problems

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



Joined: 08 Oct 2011
Posts: 7

PostPosted: Mon Oct 10, 2011 8:13 pm    Post subject: MAVEN_OPTS problems Reply with quote

Hi all,

When I build a maven (bundled) project with Netbeans 7 I see in the netbeans output window:
---
Tasks: [MAVEN_OPTS, mx=1500M]
Unknown lifecycle phase "MAVEN_OPTS"
---
I have in my .profile: export MAVEN_OPTS="-Xms256m -Xmx512m"

I looks like Netbeans itself sets MAVEN_OPTS to something invalid and I can not change it. Does anybody know how to change this?

Thanks!
Back to top
sdlarsen



Joined: 11 Oct 2011
Posts: 4
Location: Denmark

PostPosted: Tue Oct 11, 2011 7:39 am    Post subject: Reply with quote

You can modify the run/debug action for your project and
add an environment variable in the 'set properties' box.

Use the Add... button or type
Env.MAVEN_OPTS=<your options here>
Back to top
likenetbeans



Joined: 08 Oct 2011
Posts: 7

PostPosted: Wed Oct 12, 2011 4:00 pm    Post subject: Reply with quote

I found the solution:
In my home directory there was a file .mavenrc which contained:
set MAVEN_OPTS -Xmx=1500M
I deleted this file and maven builds beautifully.
I do not know if this is a MAC thing, but for all the forum readers: if your maven refuses to build: check ~/.mavenrc
Thanks for the support!
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE 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