This is indeed too many steps involved and if you try it for a
multi-module project it breaks down. Unless you replicate a substantial
set of the pom properties, which makes the idea of pom inheritance less
appealing.

Resource filtering happens during compilation, which means all
sub-modules try to filter as well even if you just want it to occur for
the parent project. IFAIK there is no way to prevent pom properties
inheritance.

IMHO multi-module site generation needs a re-design. 
* POM properties filtering should be built-in for site.xml and text
docs, like apt.
* There should be built-in support for report aggregation, so it doesn't
need to be implemented 
    by each report plug-in.

I find myself wasting too much time just with trial-and-error to get
site generation work.

        /Jens


>> -----Original Message-----
>> From: Gregory Kick [mailto:[EMAIL PROTECTED]
>> Sent: den 12 januari 2007 04:32
>> To: Maven Users List
>> Subject: applying filters to a site
>> 
>> after looking through the thread at
>> 
>>
http://www.nabble.com/-M2--Insert-variables-in-xdoc-apt-files-tf1956665.
html
>> 
>> i've gotten filters applied to a site using:
>> 
>> <resources>
>>             <resource>
>>                 <directory>src/site</directory>
>>                 <targetPath>../filtered-site</targetPath>
>>                 <filtering>true</filtering>
>>             </resource>
>>         </resources>
>> <filters>
>>             <filter>site-filter.properties</filter>
>>         </filters>
>> 
>> and
>> 
>> <plugin>
>>                 <groupId>org.apache.maven.plugins</groupId>
>>                 <artifactId>maven-site-plugin</artifactId>
>>                 <configuration>
>> 
>>
<siteDirectory>${project.build.directory}/filtered-site</siteDirectory>
>>                 </configuration>
>>             </plugin>
>> 
>> 
>> Is there a better way to get this done?  It seems like there are way
>> too many steps involved...
>> 
>> --
>> Gregory Kick
>> [EMAIL PROTECTED]
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to