this can be done simply by adding a profile activated with ${basedir} property: 
I just added instruction at the end of Wiki page [1]

Regards,

Hervé

[1] https://cwiki.apache.org/confluence/display/MAVEN/Maven+3.x+and+site+plugin

Le jeudi 22 avril 2010, Niall Pemberton a écrit :
> On Tue, Apr 20, 2010 at 8:48 AM, Olivier Lamy <ol...@apache.org> wrote:
> > No.
> > It's 3.x prerequisite.
> 
> It would be good if there was some mechanism so that the site
> generation could be made to work with either m2 or m3. Perhaps by
> activating different profiles dependant on the maven version -
> something like:
> 
>   <build>
>     <pluginManagement>
>       <plugins>
>         <plugin>
>           <groupId>org.apache.maven.plugins</groupId>
>           <artifactId>maven-site-plugin</artifactId>
>           <version>${site.plugin.version}</version>
>         </plugin>
>       </plugins>
>     </pluginManagement>
>   </build>
> 
>   <profiles>
>     <profile>
>       <activation>
>         <maven>2</maven>
>       </activation>
>       <properties>
>         <site.plugin.version>2.0.1</site.plugin.version>
>       </properties>
>     </profile>
> 
>     <profile>
>       <activation>
>         <maven>3</maven>
>       </activation>
>       <properties>
>         <site.plugin.version>3.0-beta-1</site.plugin.version>
>       </properties>
>     </profile>
>   </profiles>
> 
> > 2010/4/20 Brett Porter <br...@apache.org>:
> >> On 20/04/2010, at 5:10 PM, Olivier Lamy wrote:
> >>> Hi,
> >>>
> >>> 2010/4/20 Hervé BOUTEMY <herve.bout...@free.fr>:
> >>>> what about releasing maven-site-plugin 3.0-beta-1?
> >>>
> >>> Yup I can do that and start releasing all needed stuff.
> >>>
> >>>> Olivier, is there something critical missing?
> >>>
> >>> No except some spare time :-)
> >>
> >> Does that also work with Maven 2.x, or will we end up having two strands
> >> of development on it?
> >>
> >> - Brett
> >>
> >> --
> >> Brett Porter
> >> br...@apache.org
> >> http://brettporter.wordpress.com/
> >>
> >>
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
> >> For additional commands, e-mail: dev-h...@maven.apache.org
> >
> > --
> > Olivier
> > http://twitter.com/olamy
> > http://fr.linkedin.com/in/olamy
> > http://www.viadeo.com/fr/profile/olivier.lamy7
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
> > For additional commands, e-mail: dev-h...@maven.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
> For additional commands, e-mail: dev-h...@maven.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org

Reply via email to