I am not using maven with netbeans any more - at some point I configured, that
it worked more or less OK, but I did not see any benefit in using it (from
netbeans). Everything was slower and just pain to configure and run. Built in
ant for netbeans works very well. Starting Jetty from runner class (Shift-F5)
in debug mode handles many class changes without Jetty restart. F11 rebuilds
war and copies html. And restarting jetty is very fast.

Jetty7 runner class:
public class Main {
  public static void main(String[] args) throws Exception {
    Server server = new Server(8084);
    WebAppContext webapp = new WebAppContext();
    webapp.setContextPath("/example");
    webapp.setWar("build/web");
    server.setHandler(webapp);
    server.start();
    server.join();
  }
}

 

On Tue, 24 Aug 2010 10:27:32 -0700 (PDT)
LutherBaker <lutherba...@gmail.com> wrote:

> 
> Per the  http://wicket.apache.org/start/quickstart.html quickstart page , I
> built the quickstart project ala:
> 
> c:\var\dev\netbeans>mvn archetype:create 
>  -DarchetypeGroupId=org.apache.wicket 
>  -DarchetypeArtifactId=wicket-archetype-quickstart 
>  -DarchetypeVersion=1.4.10 -DgroupId=foo.bar -DartifactId=foo
> 
> opened it in Netbeans, created the action "jetty:run" and started the
> application. All is well and I can see the greeting page.
> 
> If I change the text on the html file or alter the message in the class file
> - nothing happens. If I shutdown and restart jetty:run, the changes appear.
> I added the scanIntervalSeconds:
> 
>                       <plugin>
>                               <groupId>org.mortbay.jetty</groupId>
>                               <artifactId>maven-jetty-plugin</artifactId>
>                                 <configuration>
>                                    
> <scanIntervalSeconds>3</scanIntervalSeconds>
>                                 </configuration>
>                       </plugin>
> 
> to the POM file but still no change. Is there something else I must do in
> Netbeans to see and publish changes I make to Wicket files or ... is there a
> better way to do this so that I'm not constantly restarting the web server?
> 
> I also tried the 'Start' class - and I can see the pages - but they do not
> refresh when I change anything on them or their related class files.
> 
> What is generally the best routine for the smoothest development workflow
> with wicket. A different IDE?
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to