m202 lack of documentation

View: New views
7 Messages — Rating Filter:   Alert me  

m202 lack of documentation

by dhoffer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I had used m201 to create a basic pom using the archetype mechanism.
All the basic functionality worked fine such as compiling, packaging
jar, etc.  I have since upgraded to m202 and the same functionality
works fine.  Now however I am trying to add functionality such as add
JUnit test results to the site goal.  

I cannot find documentation on how definitively to do this with m2.
When I do try something, I get either pos parse errors or
NullPointerExceptions.

Is there some documentation available that would help newbie with
maven2?  Even if it is draft documents?

-dh


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


Re: m202 lack of documentation

by Dennis Lundberg :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dave Hoffer wrote:

> I had used m201 to create a basic pom using the archetype mechanism.
> All the basic functionality worked fine such as compiling, packaging
> jar, etc.  I have since upgraded to m202 and the same functionality
> works fine.  Now however I am trying to add functionality such as add
> JUnit test results to the site goal.  
>
> I cannot find documentation on how definitively to do this with m2.
> When I do try something, I get either pos parse errors or
> NullPointerExceptions.
>
> Is there some documentation available that would help newbie with
> maven2?  Even if it is draft documents?
>
> -dh

General documentation is here:
   http://maven.apache.org/guides/index.html

A reference that is useful when you get parse errors in your pom is here:
   http://maven.apache.org/maven-model/maven.html


--
Dennis Lundberg

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


Parent Message unknown RE: m202 lack of documentation

by dhoffer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dennis,

I find some documentation here but not what I am looking for.  Let me
give an example:  To get started with Maven I bought a book titled
"Maven - A Developer's Notebook'.  In the book they discuss adding to
the basic reporting structure given with the site goal.  For example to
add junit test results you add the following to your pom.

<reports>
  <report>maven-junit-report-plugin</report>
</reports>

In the doc links mentioned I don't find anything that explains how to do
this in m2.

When I try ways of doing this by guessing I end up with errors.

-dh


-----Original Message-----
From: Dennis Lundberg [mailto:dennis.lundberg@...]
Sent: Sunday, January 22, 2006 8:25 AM
To: Maven Users List
Subject: Re: m202 lack of documentation

Dave Hoffer wrote:

> I had used m201 to create a basic pom using the archetype mechanism.
> All the basic functionality worked fine such as compiling, packaging
> jar, etc.  I have since upgraded to m202 and the same functionality
> works fine.  Now however I am trying to add functionality such as add
> JUnit test results to the site goal.  
>
> I cannot find documentation on how definitively to do this with m2.
> When I do try something, I get either pos parse errors or
> NullPointerExceptions.
>
> Is there some documentation available that would help newbie with
> maven2?  Even if it is draft documents?
>
> -dh

General documentation is here:
   http://maven.apache.org/guides/index.html

A reference that is useful when you get parse errors in your pom is
here:
   http://maven.apache.org/maven-model/maven.html


--
Dennis Lundberg

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


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


Re: m202 lack of documentation

by Dennis Lundberg :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dave,

I believe that the book you are referring to is for Maven 1. Have a look
at the section called "Configuring Reports" in this document:
   http://maven.apache.org/guides/getting-started/index.html

--
Dennis Lundberg

Dave Hoffer wrote:

> Dennis,
>
> I find some documentation here but not what I am looking for.  Let me
> give an example:  To get started with Maven I bought a book titled
> "Maven - A Developer's Notebook'.  In the book they discuss adding to
> the basic reporting structure given with the site goal.  For example to
> add junit test results you add the following to your pom.
>
> <reports>
>   <report>maven-junit-report-plugin</report>
> </reports>
>
> In the doc links mentioned I don't find anything that explains how to do
> this in m2.
>
> When I try ways of doing this by guessing I end up with errors.
>
> -dh
>
>
> -----Original Message-----
> From: Dennis Lundberg [mailto:dennis.lundberg@...]
> Sent: Sunday, January 22, 2006 8:25 AM
> To: Maven Users List
> Subject: Re: m202 lack of documentation
>
> Dave Hoffer wrote:
>> I had used m201 to create a basic pom using the archetype mechanism.
>> All the basic functionality worked fine such as compiling, packaging
>> jar, etc.  I have since upgraded to m202 and the same functionality
>> works fine.  Now however I am trying to add functionality such as add
>> JUnit test results to the site goal.  
>>
>> I cannot find documentation on how definitively to do this with m2.
>> When I do try something, I get either pos parse errors or
>> NullPointerExceptions.
>>
>> Is there some documentation available that would help newbie with
>> maven2?  Even if it is draft documents?
>>
>> -dh
>
> General documentation is here:
>    http://maven.apache.org/guides/index.html
>
> A reference that is useful when you get parse errors in your pom is
> here:
>    http://maven.apache.org/maven-model/maven.html
>
>

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


Parent Message unknown RE: m202 lack of documentation

by dhoffer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dennis,

Yes the book is for Maven1, I didn't know that when I bought it.  I am
now trying to learn and use Maven2 given this book and the web site and
I am not having an easy time of it.

The link you provided does say to add the following to my pom, which I
did.  (I do not think this changed the results of the generated site but
I am not sure.)

<reporting>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-project-info-reports-plugin</artifactId>
      </plugin>
    </plugins>
  </reporting>

It does not say how to add junit test results and if I was doing Clover
test coverage testing, how to add that.

Now it does discuss the site.xml file which is disused in the Creating a
Site Descriptor section.  However, I don't know if I need this.  When I
ran the site goal it already made the site with default layouts, which
is fine with me at this point.  

At this point, I have no idea if I need the site.xml, how to make one,
where it goes, etc.

I really need a book on Maven2 but I don't think this is available yet.
Given the web-site information, I have a hard time knowing what I need
to do.

Any help is surely appreciated.

-dh

-----Original Message-----
From: Dennis Lundberg [mailto:dennis.lundberg@...]
Sent: Sunday, January 22, 2006 2:41 PM
To: Maven Users List
Subject: Re: m202 lack of documentation

Dave,

I believe that the book you are referring to is for Maven 1. Have a look

at the section called "Configuring Reports" in this document:
   http://maven.apache.org/guides/getting-started/index.html

--
Dennis Lundberg

Dave Hoffer wrote:
> Dennis,
>
> I find some documentation here but not what I am looking for.  Let me
> give an example:  To get started with Maven I bought a book titled
> "Maven - A Developer's Notebook'.  In the book they discuss adding to
> the basic reporting structure given with the site goal.  For example
to
> add junit test results you add the following to your pom.
>
> <reports>
>   <report>maven-junit-report-plugin</report>
> </reports>
>
> In the doc links mentioned I don't find anything that explains how to
do

> this in m2.
>
> When I try ways of doing this by guessing I end up with errors.
>
> -dh
>
>
> -----Original Message-----
> From: Dennis Lundberg [mailto:dennis.lundberg@...]
> Sent: Sunday, January 22, 2006 8:25 AM
> To: Maven Users List
> Subject: Re: m202 lack of documentation
>
> Dave Hoffer wrote:
>> I had used m201 to create a basic pom using the archetype mechanism.
>> All the basic functionality worked fine such as compiling, packaging
>> jar, etc.  I have since upgraded to m202 and the same functionality
>> works fine.  Now however I am trying to add functionality such as add
>> JUnit test results to the site goal.  
>>
>> I cannot find documentation on how definitively to do this with m2.
>> When I do try something, I get either pos parse errors or
>> NullPointerExceptions.
>>
>> Is there some documentation available that would help newbie with
>> maven2?  Even if it is draft documents?
>>
>> -dh
>
> General documentation is here:
>    http://maven.apache.org/guides/index.html
>
> A reference that is useful when you get parse errors in your pom is
> here:
>    http://maven.apache.org/maven-model/maven.html
>
>

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


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


Re: m202 lack of documentation

by dennisl-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dave Hoffer wrote:

> Dennis,
>
> Yes the book is for Maven1, I didn't know that when I bought it.  I am
> now trying to learn and use Maven2 given this book and the web site and
> I am not having an easy time of it.
>
> The link you provided does say to add the following to my pom, which I
> did.  (I do not think this changed the results of the generated site but
> I am not sure.)
>
> <reporting>
>     <plugins>
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-project-info-reports-plugin</artifactId>
>       </plugin>
>     </plugins>
>   </reporting>

The section "How do I use plug-ins?" on the same page explains how to
add plugins (and thereby their reports).

> It does not say how to add junit test results and if I was doing Clover
> test coverage testing, how to add that.

For unit-testing you want to add the maven-surefire-plugin:
   http://maven.apache.org/plugins/maven-surefire-plugin/

To see what plugins are available:
   http://maven.apache.org/plugins/

> Now it does discuss the site.xml file which is disused in the Creating a
> Site Descriptor section.  However, I don't know if I need this.  When I
> ran the site goal it already made the site with default layouts, which
> is fine with me at this point.  
>
> At this point, I have no idea if I need the site.xml, how to make one,
> where it goes, etc.

I you don't know - then you don't need it.

> I really need a book on Maven2 but I don't think this is available yet.
> Given the web-site information, I have a hard time knowing what I need
> to do.

There is a book on Maven 2 coming out:
   http://www.mavenbook.org/

> Any help is surely appreciated.
>
> -dh
>
> -----Original Message-----
> From: Dennis Lundberg [mailto:dennis.lundberg@...]
> Sent: Sunday, January 22, 2006 2:41 PM
> To: Maven Users List
> Subject: Re: m202 lack of documentation
>
> Dave,
>
> I believe that the book you are referring to is for Maven 1. Have a look
>
> at the section called "Configuring Reports" in this document:
>    http://maven.apache.org/guides/getting-started/index.html
>


--
Dennis Lundberg

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


Re: m202 lack of documentation

by allan ramirez-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Dave,

I guess this is what you are looking for,

http://mojo.codehaus.org/surefire-report-maven-plugin/index.html

-allan

Dave Hoffer wrote:

>Dennis,
>
>Yes the book is for Maven1, I didn't know that when I bought it.  I am
>now trying to learn and use Maven2 given this book and the web site and
>I am not having an easy time of it.
>
>The link you provided does say to add the following to my pom, which I
>did.  (I do not think this changed the results of the generated site but
>I am not sure.)
>
><reporting>
>    <plugins>
>      <plugin>
>        <groupId>org.apache.maven.plugins</groupId>
>        <artifactId>maven-project-info-reports-plugin</artifactId>
>      </plugin>
>    </plugins>
>  </reporting>
>
>It does not say how to add junit test results and if I was doing Clover
>test coverage testing, how to add that.
>
>Now it does discuss the site.xml file which is disused in the Creating a
>Site Descriptor section.  However, I don't know if I need this.  When I
>ran the site goal it already made the site with default layouts, which
>is fine with me at this point.  
>
>At this point, I have no idea if I need the site.xml, how to make one,
>where it goes, etc.
>
>I really need a book on Maven2 but I don't think this is available yet.
>Given the web-site information, I have a hard time knowing what I need
>to do.
>
>Any help is surely appreciated.
>
>-dh
>
>-----Original Message-----
>From: Dennis Lundberg [mailto:dennis.lundberg@...]
>Sent: Sunday, January 22, 2006 2:41 PM
>To: Maven Users List
>Subject: Re: m202 lack of documentation
>
>Dave,
>
>I believe that the book you are referring to is for Maven 1. Have a look
>
>at the section called "Configuring Reports" in this document:
>   http://maven.apache.org/guides/getting-started/index.html
>
>  
>

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