To answer the question about filling in the default informational bits with
more interesting stuff, I found this in the source code. I looked in
POM.xmlin the root folder of the source. Evidently you put these tags
in your
parent POM to cause things to get filled in in the docs. I copied some from
one POM and some from another but the examples should help.

(You can get more information on the tags here -
http://maven.apache.org/maven-model/maven.html - search for
"issueManagement" or "license" to find the part of that page that matters.
This page confused me at first. The top part of the page shows all the XML
tags that there can be and those tags have links down to the bottom part
where there are explanations of what the tags do.)

<mailingLists>

    <mailingList>
      <name>Development List</name>
      <subscribe>[EMAIL PROTECTED]</subscribe>
      <unsubscribe>[EMAIL PROTECTED]</unsubscribe>
      <post>dev@mojo.codehaus.org</post>
      <archive>http://archive.mojo.codehaus.org/dev/</archive>
    </mailingList>
  </mailingLists>

  <issueManagement>
    <system>jira</system>
    <url>http://jira.codehaus.org/browse/MOJO</url>
  </issueManagement>

  <scm>
    <connection>scm:svn:svn://svn.codehaus.org/mojo/scm/trunk/mojo</connection>
    
<developerConnection>scm:svn:https://svn.codehaus.org/mojo/trunk/mojo</developerConnection>
    <url>http://svn.mojo.codehaus.org/trunk/mojo</url>
  </scm>

  <ciManagement>
    <system>continuum</system>
    <notifiers>
      <notifier>
        <configuration>
          <address>commits@maven.apache.org</address>
        </configuration>
      </notifier>
    </notifiers>
  </ciManagement>

  <developers>
    <developer>
      <id>jvanzyl</id>
      <name>Jason van Zyl</name>
      <email>[EMAIL PROTECTED]</email>
      <organization>ASF</organization>
      <roles>
        <role>PMC Chair</role>
      </roles>
      <timezone>-5</timezone>
    </developer>
  </developers>

  <licenses>
    <license>
      <name>The Apache Software License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
      <distribution>repo</distribution>
    </license>
  </licenses>

  <organization>
    <name>Apache Software Foundation</name>
    <url>http://www.apache.org/</url>
  </organization>


On 12/27/05, Lee Meador <[EMAIL PROTECTED]> wrote:
>
> I'm replying to my own email. Duh?
>
> On 12/27/05, Lee Meador <[EMAIL PROTECTED]> wrote:
> >
> > Several things:
> >
> > 1) This page: 
> > http://mojo.codehaus.org/surefire-report-maven-plugin/howto.html
> > has an example of using the surefire report. Their example gives the
> > version number with SNAPSHOT on the end. That doesn't work. Your
> > example, without a version number, works to generate the junit report
> >
> > 2) There only seems to be a JUnit report on the parent project. I just
> > put the reporting stuff in the parent project's POM. The children don't have
> > it. The children generate reports with all the default text but the children
> > don't seem to generate the JUnit report. Does the one thing inherit and the
> > other not?
>
>
> The JUnit report only gets generated if there are JUnit tests in the child
> project.  That makes sense. I was looking for an empty report in a project
> with no tests yet. Oh well.
>
> 3) Your example has the <plugins> tag duplicated. It should look like
> > this:
> >
> > <reporting>
> >        <plugins>
> >             <plugin>
> >                 <groupId> org.apache.maven.plugins</groupId>
> >                 <artifactId>maven-javadoc-plugin</artifactId>
> >             </plugin>
> >             <plugin>
> >                 <groupId> org.apache.maven.plugins </groupId>
> >                 <artifactId>maven-checkstyle-plugin</artifactId>
> >             </plugin>
> >        </plugins>
> > </reporting>
> >
> > 4) How do I tell it my checkstyle xml configuration file's name so it
> > checks the right stuff.
> >
> > 5) Finally, and its really my fault for asking several questions at
> > once, how do I get it to fill in interesting values for.
> >
> > Document Description
> > Continuous Integration
> > Dependencies
> > Issue Tracking
> > Mailing Lists
> > Project License
> > Project Team
> > Source Repository
> >
> > There are currently only defaults in the generated reports.
>
>
> One correction, the "dependencies" section does have lists of any of my
> projects upon which the project depends and any 3rd party libraries on which
> it depends--stuff like Spring and commons-logging.
>
> thanks.
> >
> > -- Lee Meador
>
>
> And one other thing--is there a way to tie the reports together in some
> way so you can click around and get to all the related projects or see them
> in a unified report or something?
>
> On 12/22/05, Allan Ramirez < [EMAIL PROTECTED]> wrote:
> >
> > > Hi Lee,
> > >
> > > Have a look in
> > > http://docs.codehaus.org/display/MAVENUSER/FAQs#FAQs-HowdoIconvertmy%3Creports%3EfromMaven1toMaven2%3F
> > >
> > >
> > > just replace the value in <artifactId> element to the report plugin
> > > you
> > > want to generate
> > > i.e.
> > >
> > > <reporting>
> > >        <plugins>
> > >             <plugin>
> > >                 <groupId> org.apache.maven.plugins</groupId>
> > >                 <artifactId>maven-javadoc-plugin</artifactId>
> > >             </plugin>
> > >        </plugins>
> > >        <plugins>
> > >             <plugin>
> > >                 <groupId>org.apache.maven.plugins</groupId>
> > >                 <artifactId>maven-checkstyle-plugin</artifactId>
> > >             </plugin>
> > >        </plugins>
> > > </reporting>
> > >
> > > junit test report was renamed to surefire report plugin and currently
> > > hosted at mojo codehaus
> > >
> > >        <plugins>
> > >             <plugin>
> > >                 <groupId>org.codehaus.mojo</groupId>
> > >                 <artifactId>surefire-report-maven-plugin</artifactId>
> > >             </plugin>
> > >        </plugins>
> > >
> > > You may also refer to this page for more plugins at codehaus
> > >
> > > http://docs.codehaus.org/display/MAVENUSER/FAQs#FAQs-Whereistheotherplugin%3F
> > >
> > > -allan
> > >
> > > Lee Meador wrote:
> > >
> > > >I want to generate interesting reports.
> > > >
> > > >All I have been able to find says that you can get some reports by
> > > adding
> > > >this
> > > >
> > > ><reporting>
> > > >        <plugins>
> > > >            <plugin>
> > > >                <groupId>org.apache.maven.plugins</groupId>
> > > >                
> > > > <artifactId>maven-project-info-reports-plugin</artifactId>
> > >
> > > >            </plugin>
> > > >       </plugins>
> > > ></reporting>
> > > >
> > > >to the POM.
> > > >
> > > >I did that and got a dummy report with nothing interesting in it.
> > > >
> > > >Here are the main topics that look like you put some info somewhere
> > > to make
> > > >it appear in the site docs. Maybe someone will fill in some doc links
> > > or
> > > >mention where they go.
> > > >
> > > >Document Description
> > > >Continuous Integration
> > > >Dependencies
> > > >Issue Tracking
> > > >Mailing Lists
> > > >Project License
> > > >Project Team
> > > >Source Repository
> > > >
> > > >How do I get things (that I remember from a previous project with
> > > Maven 1)
> > > >like:
> > > >
> > > >javadoc
> > > >checkstyle report
> > > >junit test results
> > > >lists of recent changes in the source repository
> > > >
> > > >Finally, I am generating an EAR with a WAR (or two) and some EJBs and
> > > some
> > > >other JAR files in it. All told there are about 10 "parts" each with
> > > its own
> > > >POM and a parent pom for building the whole thing. It builds and the
> > > report
> > > >stuff seems to get built for each of the subprojects.
> > > >
> > > >Is the parent going to have stuff consolidated from the children or
> > > are
> > > >there going to be links in there somewhere? I'm not sure what I'm
> > > going to
> > > >end up with.
> > > >
> > > >Really, I have searched the archives of this list and almost all I
> > > can find
> > > >is folks complaining about the surefire report plugin not working.
> > > But I
> > > >can't even get it to find that plugin in the central repository.
> > > >
> > > >And the docs seem to be missing something that I can't seem to see. I
> > > have
> > > >site docs but nothing is in them.
> > > >
> > > >-- Lee Meador
> > > >Sent from gmail. My real email address is [EMAIL PROTECTED]
> > > >
> > > >
> > > >
> > > >------------------------------------------------------------------------
> > >
> > > >
> > > >No virus found in this incoming message.
> > > >Checked by AVG Free Edition.
> > > >Version: 7.1.371 / Virus Database: 267.14.3/209 - Release Date:
> > > 12/21/2005
> > > >
> > > >
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > --
> > -- Lee Meador
> > Sent from gmail. My real email address is [EMAIL PROTECTED]
> >
>
>
>
> --
> -- Lee Meador
> Sent from gmail. My real email address is [EMAIL PROTECTED]
>



--
-- Lee Meador
Sent from gmail. My real email address is [EMAIL PROTECTED]

Reply via email to