You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Steve Cohen <sc...@javactivity.org> on 2004/04/21 04:31:15 UTC

commons projects and maven

Aargh!
How does one build a commons subproject site with maven?
I am trying to build the site for commons-net.

I got the following error message:

/home/scohen/workspace/commons-build/menus/menus.dtd (No such file or 
directory)

Oh, I see, there's a commons-build

Download that and try to build it with maven.  It failed too:
com.werken.werkz.NoSuchGoalException: No goal [java:jar-resources]

but at least menus.dtd was downloaded.

So I try to build commons-net again:

Now comes

BUILD FAILED
File...... file:/home/scohen/.maven/plugins/maven-xdoc-plugin-1.6/plugin.jelly
Element... attainGoal
Line...... 639
Column.... 48
No goal [maven-license-plugin:register]
Total time: 6 seconds
Finished at: Tue Apr 20 21:23:36 CDT 2004

Can someone tell me what I'm missing?  BTW I'm running maven-1.0-rc2




---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Re: commons projects and maven

Posted by Steve Cohen <sc...@javactivity.org>.
I no longer have the output, but my sense of the matter is the same as Mark's.
The 'culprit' is j-coverage.

On Tuesday 20 April 2004 11:34 pm, Phil Steitz wrote:
> Mark R. Diggory wrote:
> > Steve Cohen wrote:
> >> I wish I understood what the heck it was doing.  It does too much.
> >> I notice that it runs the unit tests twice.  Why?
> >
> > Can you attach the output? This would help me determine where its
> > happening twice.
>
> I may be wrong, but I suspect that the tests running twice is due to the
> j-coverage plugin running the tests to generate the coverage report (like
> clover does) in addition to the test run kicked off by the build element.
>   That's what I always see when I ask for clover reports.  It would be
> cool if maven could pick this up and just run the tests once.
>
> Phil
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Re: commons projects and maven

Posted by "Jeffrey D. Brekke" <jb...@wi.rr.com>.
> I may be wrong, but I suspect that the tests running twice is due to
> the j-coverage plugin running the tests to generate the coverage
> report (like clover does) in addition to the test run kicked off by
> the build element. That's what I always see when I ask for clover
> reports.  It would be cool if maven could pick this up and just run
> the tests once.

This is correct, the tests run first then run again when jcoverage
instruments the code for coverage reporting.  I've not heard of
getting around this, even with Clover.

-- 
=====================================================================
Jeffrey D. Brekke                                   jbrekke@wi.rr.com
Wisconsin,  USA                                     brekke@apache.org
                                                    ekkerbj@yahoo.com


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Re: commons projects and maven

Posted by Phil Steitz <ph...@steitz.com>.
Mark R. Diggory wrote:
> Steve Cohen wrote:
> 

>>
>>
>> I wish I understood what the heck it was doing.  It does too much.
>> I notice that it runs the unit tests twice.  Why?

>>
> Can you attach the output? This would help me determine where its 
> happening twice.

I may be wrong, but I suspect that the tests running twice is due to the 
j-coverage plugin running the tests to generate the coverage report (like 
clover does) in addition to the test run kicked off by the build element. 
  That's what I always see when I ask for clover reports.  It would be 
cool if maven could pick this up and just run the tests once.

Phil





---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Re: commons projects and maven

Posted by "Mark R. Diggory" <md...@latte.harvard.edu>.
Steve Cohen wrote:

>On Tuesday 20 April 2004 10:12 pm, Jeffrey D. Brekke wrote:
>  
>
>>I do this ( and just re-did it from scratch ):
>>
>>cvs co -d commons-build jakarta-commons/commons-build
>>cvs co -d net jakarta-commons/net
>>cd net
>>maven site
>>
>>Maybe your rc-2 install isn't quite right?  Did you delete the
>>.maven/plugins directory?
>>    
>>
>
>No, maybe that's my problem.  I see, the maven docs told me that but I missed 
>it.
>  
>
You know, I've tried to use rc2 (following the rules) on the 
commons-build top level site and the math site and got failures in the 
xdoc generation. I'm unsure that the new xdoc plugin version in the cvs 
that fixes the issues has actually been released yet. I'd been 
interested in seeing how it went.

Given that we use our own site.jsl for the commons, the site shouldn't 
look any different from  in terms of css L&F.

>>It really does work, I've been using maven all along.
>>
>>    
>>
>
>I wish I understood what the heck it was doing.  It does too much.
>I notice that it runs the unit tests twice.  Why?
>
>OK, success.  I generated the site now.  I will take a look at it and if all 
>is well, push it out tomorrow or thursday.
>
>  
>
Can you attach the output? This would help me determine where its 
happening twice.

-Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Re: commons projects and maven

Posted by Steve Cohen <sc...@javactivity.org>.
On Tuesday 20 April 2004 10:12 pm, Jeffrey D. Brekke wrote:
> I do this ( and just re-did it from scratch ):
>
> cvs co -d commons-build jakarta-commons/commons-build
> cvs co -d net jakarta-commons/net
> cd net
> maven site
>
> Maybe your rc-2 install isn't quite right?  Did you delete the
> .maven/plugins directory?

No, maybe that's my problem.  I see, the maven docs told me that but I missed 
it.

>
> It really does work, I've been using maven all along.
>

I wish I understood what the heck it was doing.  It does too much.
I notice that it runs the unit tests twice.  Why?

OK, success.  I generated the site now.  I will take a look at it and if all 
is well, push it out tomorrow or thursday.



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Re: commons projects and maven

Posted by "Jeffrey D. Brekke" <jb...@wi.rr.com>.
I do this ( and just re-did it from scratch ):

cvs co -d commons-build jakarta-commons/commons-build
cvs co -d net jakarta-commons/net
cd net
maven site

Maybe your rc-2 install isn't quite right?  Did you delete the
.maven/plugins directory?

It really does work, I've been using maven all along.

>>>>> On Tue, 20 Apr 2004 21:31:15 -0500, Steve Cohen <sc...@javactivity.org> said:

> Aargh!  How does one build a commons subproject site with maven?  I
> am trying to build the site for commons-net.

> I got the following error message:

> /home/scohen/workspace/commons-build/menus/menus.dtd (No such file
> or directory)

> Oh, I see, there's a commons-build

> Download that and try to build it with maven.  It failed too:
> com.werken.werkz.NoSuchGoalException: No goal [java:jar-resources]

> but at least menus.dtd was downloaded.

> So I try to build commons-net again:

> Now comes

> BUILD FAILED
> File...... file:/home/scohen/.maven/plugins/maven-xdoc-plugin-1.6/plugin.jelly
> Element... attainGoal Line...... 639 Column.... 48 No goal
> [maven-license-plugin:register] Total time: 6 seconds Finished at:
> Tue Apr 20 21:23:36 CDT 2004

> Can someone tell me what I'm missing?  BTW I'm running maven-1.0-rc2




> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org

-- 
=====================================================================
Jeffrey D. Brekke                                   jbrekke@wi.rr.com
Wisconsin,  USA                                     brekke@apache.org
                                                    ekkerbj@yahoo.com


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org