You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Luther Baker <lu...@gmail.com> on 2009/03/13 16:45:43 UTC

jetty and intellij

I just fired up a new download of IntelliJ 8.1. Haven't used it much - so
pulled an existing Maven/Tapestry project and created a "configuration" for
jetty:run.

That works great. Through the settings, I also associated *.tml files with
an html filetype.

Now, if I start the app all is well - but if I make a change to a *.tml file
- the change is not showing up in the app unless I stop and restart. The
same goes for Java. I tested by changing a return class from a submit
handler - but the return page stayed the same.

I know I must be missing a setting in IntelliJ - thoughts?

-Luther

Re: jetty and intellij

Posted by Luther Baker <lu...@gmail.com>.
Thanks for all the suggestions. I'll try these out Monday morning.

-Luther


On Sat, Mar 14, 2009 at 7:29 PM, Angelo Chen <an...@yahoo.com.hk>wrote:

>
> Hi,
>
> I have similar problem in 8.0, but when I upgraded to 8.1, it went away, my
> config is very simple, just add a Maven configuration, add jetty:run,
> that's
> all.
>
> I did not do this, but might worth trying:
>
> settings/compiler/resources patterns   add ?*.tml;
>
> actually when I switch to Maven config under Intellij, I never need to
> update resources patterns, it simply works.
>
>
>
> luther.baker wrote:
> >
> > I just fired up a new download of IntelliJ 8.1. Haven't used it much - so
> > pulled an existing Maven/Tapestry project and created a "configuration"
> > for
> > jetty:run.
> >
> > That works great. Through the settings, I also associated *.tml files
> with
> > an html filetype.
> >
> > Now, if I start the app all is well - but if I make a change to a *.tml
> > file
> > - the change is not showing up in the app unless I stop and restart. The
> > same goes for Java. I tested by changing a return class from a submit
> > handler - but the return page stayed the same.
> >
> > I know I must be missing a setting in IntelliJ - thoughts?
> >
> > -Luther
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/jetty-and-intellij-tp22499286p22518864.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: jetty and intellij

Posted by Angelo Chen <an...@yahoo.com.hk>.
Hi,

I have similar problem in 8.0, but when I upgraded to 8.1, it went away, my
config is very simple, just add a Maven configuration, add jetty:run, that's
all.

I did not do this, but might worth trying:

settings/compiler/resources patterns   add ?*.tml;

actually when I switch to Maven config under Intellij, I never need to
update resources patterns, it simply works.



luther.baker wrote:
> 
> I just fired up a new download of IntelliJ 8.1. Haven't used it much - so
> pulled an existing Maven/Tapestry project and created a "configuration"
> for
> jetty:run.
> 
> That works great. Through the settings, I also associated *.tml files with
> an html filetype.
> 
> Now, if I start the app all is well - but if I make a change to a *.tml
> file
> - the change is not showing up in the app unless I stop and restart. The
> same goes for Java. I tested by changing a return class from a submit
> handler - but the return page stayed the same.
> 
> I know I must be missing a setting in IntelliJ - thoughts?
> 
> -Luther
> 
> 

-- 
View this message in context: http://www.nabble.com/jetty-and-intellij-tp22499286p22518864.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: jetty and intellij

Posted by Richard Clark <rd...@gmail.com>.
On Fri, Mar 13, 2009 at 2:28 PM, Luther Baker <lu...@gmail.com> wrote:

> In this specific case, I was just looking for the magic flag inside of
> IntelliJ to push changes out ... not complaining about it.

The wiki page also has the procedure to make reloading work with
Jetty. It's a combination of running with an exploded WAR and setting
the ScanIntervalSeconds flag.

...Richard

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: jetty and intellij

Posted by Otho <ta...@googlemail.com>.
Just make a second run config with only "compile" as maven goal.

2009/3/13 Luther Baker <lu...@gmail.com>

> Hey Howard,
>
> > I know I must be missing a setting in IntelliJ - thoughts?
>
> Who's complaining? My original post asked for thoughts ...
>
> The majority of my second post was was in <pulpit> brackets. Don't take
> that
> too too seriously - your response to my original question - with another
> question was essentially asking "well, why would you want to do a thing
> like
> that?" ... so, I elaborated :) Again - it was in brackets so you'd know I
> was preaching, big ideals, big picture stuff ...
>
> No insult taken - I didn't know Maven bothered you so. We've not had to
> tweak, refactor or worry about plugins with Maven. I just type mvn
> jetty:run
> and everything downloads and has worked well. Luntbuild, Cruise Conrol,
> Netbeans, Eclipse and IntelliJ all run from the same project build and been
> doing so without custom tweaks for the past year.
>
> In this specific case, I was just looking for the magic flag inside of
> IntelliJ to push changes out ... not complaining about it.
>
> -Luther
>
>
>
> On Fri, Mar 13, 2009 at 4:08 PM, Howard Lewis Ship <hl...@gmail.com>
> wrote:
>
> > Ok, then, why are you then complaining on the Tapestry mailing list
> > about your Maven stuff not working correctly?  I don't mean to be
> > insulting ... I'm just saying that the myth of Maven seems to far
> > outdistance the reality.  It's always just one more little tweak, one
> > more refactoring, one more update to a plugin ... and it never ends!
> >
> > I think the core idea: versioned dependencies with transitive
> > relationships, is very, very good. I just want to get away from using
> > the build portion.
> >
> > On Fri, Mar 13, 2009 at 11:48 AM, Luther Baker <lu...@gmail.com>
> > wrote:
> > > Thanks Richard. That helps and I'll take a look ...
> > >
> > > <pulpit>
> > > One build process. Cross platform. IDE agnostic. That is our motto.
> > >
> > > Our continuous integration / build process is IDE agnostic. Maven
> builds,
> > > runs and tests the app on Unix servers, windows boxes and Macs.
> > > Additionally, NetBeans has native support for Maven projects. Most of
> our
> > > team uses Eclipse and the Maven plugin works without any Eclipse
> specific
> > > config. I fired up IntelliJ and the app built and deployed right out of
> > the
> > > box ... I'm just wondering where the flag is to automatically update
> apps
> > > running via that plugin.
> > >
> > > I can/will look at the IDE specific plugin - but it is not my first
> > choice -
> > > and it's alot more than just *simplicity*.
> > >
> > > By leveraging Maven, configuration and classpaths are always built the
> > same
> > > way - dev, test and prod builds (cruise control, luntbuild, etc) and
> can
> > be
> > > built and deployed without IDE dependencies. It forms the baseline and
> > > everything else works around that foundation. As soon as I have to
> custom
> > > configure Eclipse WTP, MyEclipse or IntelliJ specific Jetty plugins, I
> > have
> > > to setup the IDE with IDE specific classpaths, etc that don't always
> work
> > > out of the box in the other builds. Maven takes care of all of that for
> > us.
> > >
> > > I've developed with Emacs and Maven on the command line. NetBeans opens
> > > Maven projects natively. Maven and Eclipse work almost seamlessly
> > (updating
> > > classes as source changes). Out of the box, IntelliJ works for the most
> > part
> > > if I restart the app manually - but I thought I'd check to see if there
> > were
> > > a flag to auto-restart on changes to source.
> > >
> > > If one of these IDE editors need special handling, sobeit - but it
> isn't
> > the
> > > first thing I'd try or want to do since the general process around
> Maven
> > > works so well. It might be considered forward (or backward) thinking
> ....
> > > but alot of it works now - and it is quite simple to setup. Just
> download
> > > and unzip Maven :)
> > > </pulpit>
> > >
> > > Honestly, once you embrace and use it regularly, Maven becomes very
> > > powerful. IDEs become arbitrary since all of them import or open Maven
> > > projects. Continuous Integration, Testing and Standard Build processes
> > can
> > > now define project structure and lifecycle - and IDEs simply adhere to
> it
> > -
> > > not the other way around.
> > >
> > > -Luther
> > >
> > >
> > >
> > >
> > > On Fri, Mar 13, 2009 at 12:55 PM, Richard Clark <rd...@gmail.com>
> > wrote:
> > >
> > >> P.S. http://wiki.apache.org/tapestry/Tapestry5_Run_Jetty_From_IDEA
> > >>
> > >> (5 minutes and 2 page loads later)
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > >> For additional commands, e-mail: users-help@tapestry.apache.org
> > >>
> > >>
> > >
> >
> >
> >
> > --
> > Howard M. Lewis Ship
> >
> > Creator Apache Tapestry and Apache HiveMind
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>

Re: jetty and intellij

Posted by Luther Baker <lu...@gmail.com>.
Hey Howard,

> I know I must be missing a setting in IntelliJ - thoughts?

Who's complaining? My original post asked for thoughts ...

The majority of my second post was was in <pulpit> brackets. Don't take that
too too seriously - your response to my original question - with another
question was essentially asking "well, why would you want to do a thing like
that?" ... so, I elaborated :) Again - it was in brackets so you'd know I
was preaching, big ideals, big picture stuff ...

No insult taken - I didn't know Maven bothered you so. We've not had to
tweak, refactor or worry about plugins with Maven. I just type mvn jetty:run
and everything downloads and has worked well. Luntbuild, Cruise Conrol,
Netbeans, Eclipse and IntelliJ all run from the same project build and been
doing so without custom tweaks for the past year.

In this specific case, I was just looking for the magic flag inside of
IntelliJ to push changes out ... not complaining about it.

-Luther



On Fri, Mar 13, 2009 at 4:08 PM, Howard Lewis Ship <hl...@gmail.com> wrote:

> Ok, then, why are you then complaining on the Tapestry mailing list
> about your Maven stuff not working correctly?  I don't mean to be
> insulting ... I'm just saying that the myth of Maven seems to far
> outdistance the reality.  It's always just one more little tweak, one
> more refactoring, one more update to a plugin ... and it never ends!
>
> I think the core idea: versioned dependencies with transitive
> relationships, is very, very good. I just want to get away from using
> the build portion.
>
> On Fri, Mar 13, 2009 at 11:48 AM, Luther Baker <lu...@gmail.com>
> wrote:
> > Thanks Richard. That helps and I'll take a look ...
> >
> > <pulpit>
> > One build process. Cross platform. IDE agnostic. That is our motto.
> >
> > Our continuous integration / build process is IDE agnostic. Maven builds,
> > runs and tests the app on Unix servers, windows boxes and Macs.
> > Additionally, NetBeans has native support for Maven projects. Most of our
> > team uses Eclipse and the Maven plugin works without any Eclipse specific
> > config. I fired up IntelliJ and the app built and deployed right out of
> the
> > box ... I'm just wondering where the flag is to automatically update apps
> > running via that plugin.
> >
> > I can/will look at the IDE specific plugin - but it is not my first
> choice -
> > and it's alot more than just *simplicity*.
> >
> > By leveraging Maven, configuration and classpaths are always built the
> same
> > way - dev, test and prod builds (cruise control, luntbuild, etc) and can
> be
> > built and deployed without IDE dependencies. It forms the baseline and
> > everything else works around that foundation. As soon as I have to custom
> > configure Eclipse WTP, MyEclipse or IntelliJ specific Jetty plugins, I
> have
> > to setup the IDE with IDE specific classpaths, etc that don't always work
> > out of the box in the other builds. Maven takes care of all of that for
> us.
> >
> > I've developed with Emacs and Maven on the command line. NetBeans opens
> > Maven projects natively. Maven and Eclipse work almost seamlessly
> (updating
> > classes as source changes). Out of the box, IntelliJ works for the most
> part
> > if I restart the app manually - but I thought I'd check to see if there
> were
> > a flag to auto-restart on changes to source.
> >
> > If one of these IDE editors need special handling, sobeit - but it isn't
> the
> > first thing I'd try or want to do since the general process around Maven
> > works so well. It might be considered forward (or backward) thinking ....
> > but alot of it works now - and it is quite simple to setup. Just download
> > and unzip Maven :)
> > </pulpit>
> >
> > Honestly, once you embrace and use it regularly, Maven becomes very
> > powerful. IDEs become arbitrary since all of them import or open Maven
> > projects. Continuous Integration, Testing and Standard Build processes
> can
> > now define project structure and lifecycle - and IDEs simply adhere to it
> -
> > not the other way around.
> >
> > -Luther
> >
> >
> >
> >
> > On Fri, Mar 13, 2009 at 12:55 PM, Richard Clark <rd...@gmail.com>
> wrote:
> >
> >> P.S. http://wiki.apache.org/tapestry/Tapestry5_Run_Jetty_From_IDEA
> >>
> >> (5 minutes and 2 page loads later)
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >> For additional commands, e-mail: users-help@tapestry.apache.org
> >>
> >>
> >
>
>
>
> --
> Howard M. Lewis Ship
>
> Creator Apache Tapestry and Apache HiveMind
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: jetty and intellij

Posted by Howard Lewis Ship <hl...@gmail.com>.
Ok, then, why are you then complaining on the Tapestry mailing list
about your Maven stuff not working correctly?  I don't mean to be
insulting ... I'm just saying that the myth of Maven seems to far
outdistance the reality.  It's always just one more little tweak, one
more refactoring, one more update to a plugin ... and it never ends!

I think the core idea: versioned dependencies with transitive
relationships, is very, very good. I just want to get away from using
the build portion.

On Fri, Mar 13, 2009 at 11:48 AM, Luther Baker <lu...@gmail.com> wrote:
> Thanks Richard. That helps and I'll take a look ...
>
> <pulpit>
> One build process. Cross platform. IDE agnostic. That is our motto.
>
> Our continuous integration / build process is IDE agnostic. Maven builds,
> runs and tests the app on Unix servers, windows boxes and Macs.
> Additionally, NetBeans has native support for Maven projects. Most of our
> team uses Eclipse and the Maven plugin works without any Eclipse specific
> config. I fired up IntelliJ and the app built and deployed right out of the
> box ... I'm just wondering where the flag is to automatically update apps
> running via that plugin.
>
> I can/will look at the IDE specific plugin - but it is not my first choice -
> and it's alot more than just *simplicity*.
>
> By leveraging Maven, configuration and classpaths are always built the same
> way - dev, test and prod builds (cruise control, luntbuild, etc) and can be
> built and deployed without IDE dependencies. It forms the baseline and
> everything else works around that foundation. As soon as I have to custom
> configure Eclipse WTP, MyEclipse or IntelliJ specific Jetty plugins, I have
> to setup the IDE with IDE specific classpaths, etc that don't always work
> out of the box in the other builds. Maven takes care of all of that for us.
>
> I've developed with Emacs and Maven on the command line. NetBeans opens
> Maven projects natively. Maven and Eclipse work almost seamlessly (updating
> classes as source changes). Out of the box, IntelliJ works for the most part
> if I restart the app manually - but I thought I'd check to see if there were
> a flag to auto-restart on changes to source.
>
> If one of these IDE editors need special handling, sobeit - but it isn't the
> first thing I'd try or want to do since the general process around Maven
> works so well. It might be considered forward (or backward) thinking ....
> but alot of it works now - and it is quite simple to setup. Just download
> and unzip Maven :)
> </pulpit>
>
> Honestly, once you embrace and use it regularly, Maven becomes very
> powerful. IDEs become arbitrary since all of them import or open Maven
> projects. Continuous Integration, Testing and Standard Build processes can
> now define project structure and lifecycle - and IDEs simply adhere to it -
> not the other way around.
>
> -Luther
>
>
>
>
> On Fri, Mar 13, 2009 at 12:55 PM, Richard Clark <rd...@gmail.com> wrote:
>
>> P.S. http://wiki.apache.org/tapestry/Tapestry5_Run_Jetty_From_IDEA
>>
>> (5 minutes and 2 page loads later)
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: jetty and intellij

Posted by Luther Baker <lu...@gmail.com>.
Thanks Richard. That helps and I'll take a look ...

<pulpit>
One build process. Cross platform. IDE agnostic. That is our motto.

Our continuous integration / build process is IDE agnostic. Maven builds,
runs and tests the app on Unix servers, windows boxes and Macs.
Additionally, NetBeans has native support for Maven projects. Most of our
team uses Eclipse and the Maven plugin works without any Eclipse specific
config. I fired up IntelliJ and the app built and deployed right out of the
box ... I'm just wondering where the flag is to automatically update apps
running via that plugin.

I can/will look at the IDE specific plugin - but it is not my first choice -
and it's alot more than just *simplicity*.

By leveraging Maven, configuration and classpaths are always built the same
way - dev, test and prod builds (cruise control, luntbuild, etc) and can be
built and deployed without IDE dependencies. It forms the baseline and
everything else works around that foundation. As soon as I have to custom
configure Eclipse WTP, MyEclipse or IntelliJ specific Jetty plugins, I have
to setup the IDE with IDE specific classpaths, etc that don't always work
out of the box in the other builds. Maven takes care of all of that for us.

I've developed with Emacs and Maven on the command line. NetBeans opens
Maven projects natively. Maven and Eclipse work almost seamlessly (updating
classes as source changes). Out of the box, IntelliJ works for the most part
if I restart the app manually - but I thought I'd check to see if there were
a flag to auto-restart on changes to source.

If one of these IDE editors need special handling, sobeit - but it isn't the
first thing I'd try or want to do since the general process around Maven
works so well. It might be considered forward (or backward) thinking ....
but alot of it works now - and it is quite simple to setup. Just download
and unzip Maven :)
</pulpit>

Honestly, once you embrace and use it regularly, Maven becomes very
powerful. IDEs become arbitrary since all of them import or open Maven
projects. Continuous Integration, Testing and Standard Build processes can
now define project structure and lifecycle - and IDEs simply adhere to it -
not the other way around.

-Luther




On Fri, Mar 13, 2009 at 12:55 PM, Richard Clark <rd...@gmail.com> wrote:

> P.S. http://wiki.apache.org/tapestry/Tapestry5_Run_Jetty_From_IDEA
>
> (5 minutes and 2 page loads later)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: jetty and intellij

Posted by Richard Clark <rd...@gmail.com>.
P.S. http://wiki.apache.org/tapestry/Tapestry5_Run_Jetty_From_IDEA

(5 minutes and 2 page loads later)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: jetty and intellij

Posted by Richard Clark <rd...@gmail.com>.
On Fri, Mar 13, 2009 at 10:43 AM, Howard Lewis Ship <hl...@gmail.com> wrote:
> Why do people use jetty:run in IDEA when there's a very good IntelliJ
> plugin that runs Jetty perfectly for Tapestry applications?

Simplicity, I suspect. (There are setup instructions for the Jetty
plugin on the wiki, however.)

BTW, does tapestry.apache.org respond excruciatingly slowly for
anybody else? We're talking 2 1/2 minutes to load any page in the
subsite.

...Richard

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: jetty and intellij

Posted by Howard Lewis Ship <hl...@gmail.com>.
Why do people use jetty:run in IDEA when there's a very good IntelliJ
plugin that runs Jetty perfectly for Tapestry applications?

On Fri, Mar 13, 2009 at 8:45 AM, Luther Baker <lu...@gmail.com> wrote:
> I just fired up a new download of IntelliJ 8.1. Haven't used it much - so
> pulled an existing Maven/Tapestry project and created a "configuration" for
> jetty:run.
>
> That works great. Through the settings, I also associated *.tml files with
> an html filetype.
>
> Now, if I start the app all is well - but if I make a change to a *.tml file
> - the change is not showing up in the app unless I stop and restart. The
> same goes for Java. I tested by changing a return class from a submit
> handler - but the return page stayed the same.
>
> I know I must be missing a setting in IntelliJ - thoughts?
>
> -Luther
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org