You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Wendy Smoak <ws...@gmail.com> on 2006/05/07 05:27:23 UTC
Re: Site plugin changes, site:run
On 3/14/06, Brett Porter <br...@apache.org> wrote:
> I've made a round of changes to the site plugin, which should be the
> last major set. I plan to call a vote for a final beta in a couple of days.
...
> One of the new features to try out (though its rough - no locale support
> yet) is:
>
> mvn site:run
I tried this several times before I figured out what I was doing
wrong. I kept visiting 'http://localhost:8080' and seeing only a
directory listing. Finally I read the directions:
> This will start Jetty and if you go to http://localhost:8080/index.html
> you can dynamically browse the site.
Apparently the 'index.html' part is important. :) Would it be
possible to get the usual default page to work, so that visiting
http://localhost:8080 automatically loads index.html?
--
Wendy
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: Site plugin changes, site:run
Posted by Brett Porter <br...@apache.org>.
Thanks for the research!
I can probably harass some Jetty folk if I can't figure it out from there.
- Brett
Wendy Smoak wrote:
> On 5/6/06, Brett Porter <br...@apache.org> wrote:
>
>> Probably a simple change to the Jetty construction. Can you file a bug?
>
> Done. http://jira.codehaus.org/browse/MSITE-127
>
>> (even better, can you file a patch? :D)
>
> Apparently not. :( And comments don't come through in the email from
> JIRA when you attach a patch, so:
>
> The welcome file list is there and includes index.html, but the
> DoxiaFilter doesn't get applied. I remember Tomcat 4.1 used to
> redirect to welcome files-- then it would work.
>
> Jetty's release notes [1] say they switched from redirecting to
> forwarding to welcome files in version 3.0.0.rc8. Since Jetty6
> supports Servlet 2.4, I switched the the web.xml to Servlet 2.4 and
> changed the filter mapping to:
> <filter-mapping>
> <filter-name>doxia</filter-name>
> <url-pattern>*.html</url-pattern>
> <dispatcher>FORWARD</dispatcher>
> <dispatcher>REQUEST</dispatcher>
> <dispatcher>INCLUDE</dispatcher>
> </filter-mapping>
>
> I really think that should work, and the filter should get applied on
> the forwrard to the welcom page, but it doesn't. :/
>
> [1] http://jetty.mortbay.org/jetty/versions.txt
> --
> Wendy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: Site plugin changes, site:run
Posted by Wendy Smoak <ws...@gmail.com>.
On 5/6/06, Brett Porter <br...@apache.org> wrote:
> Probably a simple change to the Jetty construction. Can you file a bug?
Done. http://jira.codehaus.org/browse/MSITE-127
> (even better, can you file a patch? :D)
Apparently not. :( And comments don't come through in the email from
JIRA when you attach a patch, so:
The welcome file list is there and includes index.html, but the
DoxiaFilter doesn't get applied. I remember Tomcat 4.1 used to
redirect to welcome files-- then it would work.
Jetty's release notes [1] say they switched from redirecting to
forwarding to welcome files in version 3.0.0.rc8. Since Jetty6
supports Servlet 2.4, I switched the the web.xml to Servlet 2.4 and
changed the filter mapping to:
<filter-mapping>
<filter-name>doxia</filter-name>
<url-pattern>*.html</url-pattern>
<dispatcher>FORWARD</dispatcher>
<dispatcher>REQUEST</dispatcher>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping>
I really think that should work, and the filter should get applied on
the forwrard to the welcom page, but it doesn't. :/
[1] http://jetty.mortbay.org/jetty/versions.txt
--
Wendy
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: Site plugin changes, site:run
Posted by Brett Porter <br...@apache.org>.
Probably a simple change to the Jetty construction. Can you file a bug?
(even better, can you file a patch? :D)
- Brett
Wendy Smoak wrote:
> On 3/14/06, Brett Porter <br...@apache.org> wrote:
>
>> I've made a round of changes to the site plugin, which should be the
>> last major set. I plan to call a vote for a final beta in a couple of
>> days.
> ...
>> One of the new features to try out (though its rough - no locale support
>> yet) is:
>>
>> mvn site:run
>
> I tried this several times before I figured out what I was doing
> wrong. I kept visiting 'http://localhost:8080' and seeing only a
> directory listing. Finally I read the directions:
>
>> This will start Jetty and if you go to http://localhost:8080/index.html
>> you can dynamically browse the site.
>
> Apparently the 'index.html' part is important. :) Would it be
> possible to get the usual default page to work, so that visiting
> http://localhost:8080 automatically loads index.html?
>
> --
> Wendy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org