You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jules Gosnell <ju...@coredevelopers.net> on 2006/04/11 01:37:06 UTC

Re: m2.0.3 - aggregated reports at top-level... - javadoc plugin flaw ?

Brett Porter wrote:

>Still thinking, one alternative is to do nothing with the
>repositories, and build the javadoc plugin from source locally.
>  
>
This is the route that I chose.
I pulled the latest maven-javadoc-plugin from svn, built and installed 
it in my ~/.m2/repository.
I added a version elt to the javadoc plugin elt in the reporting elt in 
my top-level pom.

Result -
 with configuration/aggregate=false, everything runs as normal...
 setting configuration/aggregate=true breaks build pretty quickly 
because the plugin loads the src for all modules without appearing to 
load dependencies from their poms. Javadoccing then produces numerous 
errors as classes cannot be resolved.

One of the reasons that my project (wadi.codehaus.org) is broken into 
modules is that different modules require different versions of the same 
classes... So, I guess that even if the plugin did pull all the deps 
from the modules' poms, my build would still break, since it would 
suffer from multiple versions of the same class on the javadoc classpath.

Conclusion-
It doesn't look like WADI will be aggregating its javadoc in the near 
future :-(

Thanks to everyone for all their help with this,

Jules

>- Brett
>
>On 4/11/06, Brett Porter <br...@gmail.com> wrote:
>  
>
>>certainly a limitation. You can lock in the non-bleeding edge
>>versions, but that's a bit tedious.
>>
>>The Javadoc plugin is up for release right now (the vote passed, it
>>just hasn't been done). So if you just use that to test for a day or
>>two, you will be able to remove the snapshots again and set the
>>javadoc version to 2.0.
>>
>>- Brett
>>
>>On 4/11/06, Jules Gosnell <ju...@coredevelopers.net> wrote:
>>    
>>
>>>Brett Porter wrote:
>>>
>>>      
>>>
>>>>2.0-20060330.003327-1 from cvs.apache.org/maven-snapshot-repository
>>>>
>>>>Add <aggregate>true</aggregate> to the configuration in the root project.
>>>>
>>>>
>>>>
>>>>        
>>>>
>>>Brett,
>>>
>>>Thanks for this - unfortunately - no dice :-(.
>>>
>>>Adding :
>>>
>>>  <pluginRepositories>
>>>    <pluginRepository>
>>>      <id>maven-snapshot-repository</id>
>>>      <name>Maven Snapshot Repository</name>
>>>      <url>http://cvs.apache.org/maven-snapshot-repository</url>
>>>      <snapshots>
>>>        <enabled>false</enabled>
>>>      </snapshots>
>>>    </pluginRepository>
>>>  </pluginRepositories>
>>>
>>> to my top-level pom breaks my build immediately:
>>>
>>>[INFO]
>>>------------------------------------------------------------------------
>>>[ERROR] BUILD ERROR
>>>[INFO]
>>>------------------------------------------------------------------------
>>>[INFO] Error building POM (may not be this project's POM).
>>>
>>>
>>>Project ID: org.apache.maven.plugins:maven-site-plugin
>>>
>>>Reason: Error getting POM for
>>>'org.apache.maven.plugins:maven-site-plugin' from the repository: Failed
>>>to resolve artifact, possibly due to a repository list that is not
>>>appropriately equipped for this artifact's metadata.
>>>  org.apache.maven.plugins:maven-site-plugin:pom:2.0-SNAPSHOT
>>>
>>>from the specified remote repositories:
>>>  central (http://repo1.maven.org/maven2),
>>>  maven-snapshot-repository
>>>(http://cvs.apache.org/maven-snapshot-repository)
>>>
>>>I make no explicit reference to the site-plugin in my pom.
>>>
>>>If I enable snapshots, mvn happily goes off and upgrades every plugin -
>>>but this is a little too bleeding edge for my build...
>>>
>>>Is there a way to specify a plugin-repo on a per-plugin basis - I could
>>>not find one :-(
>>>
>>>Apologies for failing to follow simple instructions...
>>>
>>>Jules
>>>
>>>      
>>>
>>>>- Brett
>>>>
>>>>On 4/11/06, Jules Gosnell <ju...@coredevelopers.net> wrote:
>>>>
>>>>
>>>>        
>>>>
>>>>>Brett Porter wrote:
>>>>>
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>>>Surefire - no, there is no mechanism for this currently.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>            
>>>>>>
>>>>>any plans ?
>>>>>
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>>>Javadoc - only in the next release of the Javadoc plugin.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>            
>>>>>>
>>>>>is there a snapshot that I can pull down from somewhere ? If someone
>>>>>could point me to the correct repo and an example pom, I would be very
>>>>>grateful.
>>>>>
>>>>>Thanks again,
>>>>>
>>>>>Jules
>>>>>
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>>>- Brett
>>>>>>
>>>>>>On 4/11/06, Mike Perham <Mi...@webifysolutions.com> wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>            
>>>>>>
>>>>>>>Jules, I had it working last week.  Something changed when I tried to
>>>>>>>reproduce it from scratch this morning and now I can't get it working.
>>>>>>>
>>>>>>>-----Original Message-----
>>>>>>>From: Jules Gosnell [mailto:jules@coredevelopers.net]
>>>>>>>Sent: Monday, April 10, 2006 2:03 PM
>>>>>>>To: Maven Users List
>>>>>>>Subject: m2.0.3 - aggregated reports at top-level...
>>>>>>>
>>>>>>>After much googling and gnashing of teeth I gave up on trying to
>>>>>>>integrate an aggregated clover report with my site build. I spent less
>>>>>>>time on surefire and javadoc reports.
>>>>>>>
>>>>>>>Does aggregation of any of these reports work in 2.0.3 ? If so, can
>>>>>>>anyone please point me at a concrete example of a working top-level pom.
>>>>>>>
>>>>>>>Thanks, Guys,
>>>>>>>
>>>>>>>
>>>>>>>Jules
>>>>>>>
>>>>>>>--
>>>>>>>"Open Source is a self-assembling organism. You dangle a piece of string
>>>>>>>into a super-saturated solution and a whole operating-system
>>>>>>>crystallises out around it."
>>>>>>>
>>>>>>>/**********************************
>>>>>>>* Jules Gosnell
>>>>>>>* Partner
>>>>>>>* Core Developers Network (Europe)
>>>>>>>*
>>>>>>>*    www.coredevelopers.net
>>>>>>>*
>>>>>>>* Open Source Training & Support.
>>>>>>>**********************************/
>>>>>>>
>>>>>>>
>>>>>>>---------------------------------------------------------------------
>>>>>>>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
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>            
>>>>>>
>>>>>--
>>>>>"Open Source is a self-assembling organism. You dangle a piece of
>>>>>string into a super-saturated solution and a whole operating-system
>>>>>crystallises out around it."
>>>>>
>>>>>/**********************************
>>>>>* Jules Gosnell
>>>>>* Partner
>>>>>* Core Developers Network (Europe)
>>>>>*
>>>>>*    www.coredevelopers.net
>>>>>*
>>>>>* Open Source Training & Support.
>>>>>**********************************/
>>>>>
>>>>>
>>>>>---------------------------------------------------------------------
>>>>>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
>>>>
>>>>
>>>>
>>>>        
>>>>
>>>--
>>>"Open Source is a self-assembling organism. You dangle a piece of
>>>string into a super-saturated solution and a whole operating-system
>>>crystallises out around it."
>>>
>>>/**********************************
>>> * Jules Gosnell
>>> * Partner
>>> * Core Developers Network (Europe)
>>> *
>>> *    www.coredevelopers.net
>>> *
>>> * Open Source Training & Support.
>>> **********************************/
>>>
>>>
>>>---------------------------------------------------------------------
>>>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
>
>  
>


-- 
"Open Source is a self-assembling organism. You dangle a piece of
string into a super-saturated solution and a whole operating-system
crystallises out around it."

/**********************************
 * Jules Gosnell
 * Partner
 * Core Developers Network (Europe)
 *
 *    www.coredevelopers.net
 *
 * Open Source Training & Support.
 **********************************/


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