NetBeans Forums

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

Maven integration in Netbeans 7.0

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
JF
Posted via mailing list.





PostPosted: Tue Mar 01, 2011 2:36 pm    Post subject: Maven integration in Netbeans 7.0 Reply with quote

I wish to debug a MOJO in netbeans.

I followed the brief instructions in http://wiki.netbeans.org/FaqDebugMojo

However
1) I wish to be able to change the JVM settings which the debugger is
using. I tried changing this in the usual places but to no effect
2) I need to pass parameters to my mojo, for example in a pom.xml I have
the following

<plugin>
<groupId>com.aqera.reporter</groupId>
<artifactId>report_plugin</artifactId>
<version>0.0.1-SNAPSHOT</version>
<executions>
<execution>
<id>report</id>
<goals>
<goal>report</goal>
</goals>
<configuration>
<reportId>BehaviourReport.txt</reportId>
<reportClass>com.aqera.reporter.report1.Reporter</reportClass>
<outputType
implementation="com.aqera.reporter.interfaces.OutputType">FILE</outputType>
<specNames>
<specName>AqeraOne</specName>
</specNames>
</configuration>
</execution>
</executions>
</plugin>


What is the best way to do this.

Thanks
Back to top
JF
Posted via mailing list.





PostPosted: Tue Mar 01, 2011 5:16 pm    Post subject: Maven integration in Netbeans 7.0 Reply with quote

The simplest way of changing ( indeed undesrtanding what is going on )
is to change the mvn.bat file in C:\Program Files\NetBeans 7.0 Beta
2\java\maven\bin

The parameters can successfuly be got going using the custom actions as
outlined in the previous link to the netbeans wiki - I had forgot I was
not using an expression in my @parameter annotation.

However the custom configuration stuff in the project.properties does
not seem to bear any relationship in my netbeans 7 beta to the docs, nor
does it seem to work. But will investigate more...
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