You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Matthias Dorfner <po...@matthias-dorfner.de> on 2008/09/29 15:56:07 UTC
creating a project
Hi guys,
I use this command from the archetype plugin:
Mvn archetype:create -DarchetpeGroupId=org.apache.maven.archetypes \
-DarchetypeArtifactId=maven-archetype-site \
-DgroupId=com.mycompany \
-DartifactId=my-site
It creates a dedicated site project where I can customize the layout and the html (via apt, faq files etc.) output stuff. How can I integrate my java sources and reports for that sources (e.g. from javadoc, checkstyle, pmd, xref...) to this site?
Regards,
Matthias
project site with two languages
Posted by Matthias Dorfner <po...@matthias-dorfner.de>.
I got one question, concerning the internationalization of the site generation plugin. Is there a preset ref like it is for reports
<project>
...
<body>
...
<menu ref="reports" />
...
</body>
...
</project>
also existing for different languages? I generated the site in en and de locales (I got two versions except the index.html (only "English/default").
Is there a switch or something like that? How can I comfortably include both language version (e.g via click on a german and english flag picture or something like this) within one central index page?
Thank you in advance!
Regards,
Matthias
-----Ursprüngliche Nachricht-----
Von: Felix Knecht [mailto:felixk@apache.org]
Gesendet: Dienstag, 30. September 2008 08:29
An: Maven Users List
Betreff: Re: AW: creating a project
Matthias Dorfner schrieb:
> Hi,
>
> I can now answer the question myself. If you want to create an skeleton with site structure for a already existing project, you have to run e.g. the archetype quickstart plugin first, second the e.g. maven-archetype-site-simple plugin. Of course both with same group and artifact Id.
>
> But the "out-of-the-box" linking for project information, project reports html files which is generated automatically by running the mvn site command is now on your own, as far as I know.
>
> Is there a "blank" index.apt somewhere which includes all these standard links?
>
See http://maven.apache.org/guides/mini/guide-site.html. What you need
to create a navigation of your site with the links mentioned is a
site.xml file and not the index.apt.
"<menu ref="reports"/>" in the site.xml will create links for all your
configured reports in poms reporting section.
HTH
Felix
> Thank you!
>
> Regards,
> Matthias
>
> -----Ursprüngliche Nachricht-----
> Von: Matthias Dorfner [mailto:post@matthias-dorfner.de]
> Gesendet: Montag, 29. September 2008 15:56
> An: users@maven.apache.org
> Betreff: creating a project
>
> Hi guys,
>
>
>
> I use this command from the archetype plugin:
>
>
>
> Mvn archetype:create -DarchetpeGroupId=org.apache.maven.archetypes \
>
> -DarchetypeArtifactId=maven-archetype-site \
>
> -DgroupId=com.mycompany \
>
> -DartifactId=my-site
>
>
>
> It creates a dedicated site project where I can customize the layout and the html (via apt, faq files etc.) output stuff. How can I integrate my java sources and reports for that sources (e.g. from javadoc, checkstyle, pmd, xref...) to this site?
>
>
>
> Regards,
>
> Matthias
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: AW: creating a project
Posted by Felix Knecht <fe...@apache.org>.
Matthias Dorfner schrieb:
> Hi,
>
> I can now answer the question myself. If you want to create an skeleton with site structure for a already existing project, you have to run e.g. the archetype quickstart plugin first, second the e.g. maven-archetype-site-simple plugin. Of course both with same group and artifact Id.
>
> But the "out-of-the-box" linking for project information, project reports html files which is generated automatically by running the mvn site command is now on your own, as far as I know.
>
> Is there a "blank" index.apt somewhere which includes all these standard links?
>
See http://maven.apache.org/guides/mini/guide-site.html. What you need
to create a navigation of your site with the links mentioned is a
site.xml file and not the index.apt.
"<menu ref="reports"/>" in the site.xml will create links for all your
configured reports in poms reporting section.
HTH
Felix
> Thank you!
>
> Regards,
> Matthias
>
> -----Ursprüngliche Nachricht-----
> Von: Matthias Dorfner [mailto:post@matthias-dorfner.de]
> Gesendet: Montag, 29. September 2008 15:56
> An: users@maven.apache.org
> Betreff: creating a project
>
> Hi guys,
>
>
>
> I use this command from the archetype plugin:
>
>
>
> Mvn archetype:create -DarchetpeGroupId=org.apache.maven.archetypes \
>
> -DarchetypeArtifactId=maven-archetype-site \
>
> -DgroupId=com.mycompany \
>
> -DartifactId=my-site
>
>
>
> It creates a dedicated site project where I can customize the layout and the html (via apt, faq files etc.) output stuff. How can I integrate my java sources and reports for that sources (e.g. from javadoc, checkstyle, pmd, xref...) to this site?
>
>
>
> Regards,
>
> Matthias
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
AW: creating a project
Posted by Matthias Dorfner <po...@matthias-dorfner.de>.
Hi,
I can now answer the question myself. If you want to create an skeleton with site structure for a already existing project, you have to run e.g. the archetype quickstart plugin first, second the e.g. maven-archetype-site-simple plugin. Of course both with same group and artifact Id.
But the "out-of-the-box" linking for project information, project reports html files which is generated automatically by running the mvn site command is now on your own, as far as I know.
Is there a "blank" index.apt somewhere which includes all these standard links?
Thank you!
Regards,
Matthias
-----Ursprüngliche Nachricht-----
Von: Matthias Dorfner [mailto:post@matthias-dorfner.de]
Gesendet: Montag, 29. September 2008 15:56
An: users@maven.apache.org
Betreff: creating a project
Hi guys,
I use this command from the archetype plugin:
Mvn archetype:create -DarchetpeGroupId=org.apache.maven.archetypes \
-DarchetypeArtifactId=maven-archetype-site \
-DgroupId=com.mycompany \
-DartifactId=my-site
It creates a dedicated site project where I can customize the layout and the html (via apt, faq files etc.) output stuff. How can I integrate my java sources and reports for that sources (e.g. from javadoc, checkstyle, pmd, xref...) to this site?
Regards,
Matthias
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org