You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Brett Porter <br...@apache.org> on 2006/03/14 18:06:31 UTC

Site plugin changes, site:run

Hi,

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.

Since these changes were pretty large, please test (this includes the
project info reports plugin). Either build from source (trunk), or use:

<pluginRepositories>
  <pluginRepository>
    <id>apache.snapshots</id>
    <url>http://cvs.apache.org/maven-snapshot-repository</url>
  </pluginRepository>
</pluginRepositories>

One of the new features to try out (though its rough - no locale support
yet) is:

mvn site:run

This will start Jetty and if you go to http://localhost:8080/index.html
you can dynamically browse the site. The reports and pages re-render
each time so you can edit and review on a much faster cycle.

Enjoy!

Cheers,
Brett

---------------------------------------------------------------------
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>.
Vincent Siveton wrote:
>>> - Javadoc report link doesnt work : blank page
>> Bug in the javadoc plugin, you need the latest snapshot of that.
> 
> I retried with snapshot and trunk version, I have got always a blank page.
> Could you retry?

Oh, in site:rnu, that's probably right. Please open a bug.

- Brett

---------------------------------------------------------------------
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 Vincent Siveton <vi...@gmail.com>.
Hi Brett,

> > I took time to test your amazing stuff. Very nice feature :) Thanks!
> >
> > You've probably know these but just in case they can help you:
> > - error 404 for subprojects links from a multi project case:
> > http://localhost:8080/index.html
> > Clicks on a sub project
> > http://localhost:8080/framework1/index.html => error404
> 
> Yes, multiproject is not really supported yet. It will be, but maybe in
> the next version.

Ok

> > - "frenglish" project info reports without specify any french language
> > (see http://people.apache.org/~vsiveton/site_run/site_run_pir.jpg based
> on
> > http://www.javaworld.com/javaworld/jw-02-2006/jw-0227-maven.html)
> 
> Is this just missing translations or a bug?

It is a bug in the DoxiaFilter class:
context.setLocale( req.getLocale() );
(I have a French browser)

I will open an issue for that.

> > - Javadoc report link doesnt work : blank page
> 
> Bug in the javadoc plugin, you need the latest snapshot of that.

I retried with snapshot and trunk version, I have got always a blank page.
Could you retry?

Cheers,

Vincent


---------------------------------------------------------------------
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>.
Hi Vincent,

Vincent Siveton wrote:
> Brett,
> 
> I took time to test your amazing stuff. Very nice feature :) Thanks!
> 
> You've probably know these but just in case they can help you:
> - error 404 for subprojects links from a multi project case:
> http://localhost:8080/index.html
> Clicks on a sub project
> http://localhost:8080/framework1/index.html => error404

Yes, multiproject is not really supported yet. It will be, but maybe in
the next version.

> 
> - "frenglish" project info reports without specify any french language
> (see http://people.apache.org/~vsiveton/site_run/site_run_pir.jpg based on
> http://www.javaworld.com/javaworld/jw-02-2006/jw-0227-maven.html)

Is this just missing translations or a bug?

> 
> - Javadoc report link doesnt work : blank page

Bug in the javadoc plugin, you need the latest snapshot of that.

- Brett

---------------------------------------------------------------------
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 Vincent Siveton <vi...@gmail.com>.
Brett,

I took time to test your amazing stuff. Very nice feature :) Thanks!

You've probably know these but just in case they can help you:
- error 404 for subprojects links from a multi project case:
http://localhost:8080/index.html
Clicks on a sub project
http://localhost:8080/framework1/index.html => error404

- "frenglish" project info reports without specify any french language
(see http://people.apache.org/~vsiveton/site_run/site_run_pir.jpg based on
http://www.javaworld.com/javaworld/jw-02-2006/jw-0227-maven.html)

- Javadoc report link doesnt work : blank page

Cheers,

Vincent

2006/3/14, Brett Porter <br...@apache.org>:
> Hi,
>
> 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.
>
> Since these changes were pretty large, please test (this includes the
> project info reports plugin). Either build from source (trunk), or use:
>
> <pluginRepositories>
>  <pluginRepository>
>    <id>apache.snapshots</id>
>    <url>http://cvs.apache.org/maven-snapshot-repository</url>
>  </pluginRepository>
> </pluginRepositories>
>
> One of the new features to try out (though its rough - no locale support
> yet) is:
>
> mvn site:run
>
> This will start Jetty and if you go to http://localhost:8080/index.html
> you can dynamically browse the site. The reports and pages re-render
> each time so you can edit and review on a much faster cycle.
>
> Enjoy!
>
> Cheers,
> Brett
>
> ---------------------------------------------------------------------
> 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 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


Re: Site plugin changes, site:run

Posted by Wendy Smoak <ws...@gmail.com>.
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