NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
likenetbeans
Joined: 08 Oct 2011 Posts: 7
|
Posted: Mon Oct 10, 2011 8:13 pm Post subject: MAVEN_OPTS problems |
|
|
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
|
Posted: Tue Oct 11, 2011 7:39 am Post subject: |
|
|
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
|
Posted: Wed Oct 12, 2011 4:00 pm Post subject: |
|
|
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 |
|
 |
|
|
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
|
|